Answers for "how to use flatlist keyextractor"

0

how to use flatlist keyextractor

<FlatList 
  data={[{name: 'a'}, {name: 'b'}]} 
  renderItem={
    ({item}) => <Text>{item.name}</Text>
  } 
  keyExtractor={(item, index) => index.toString()}
/>
Posted by: Guest on December-08-2020

Code answers related to "how to use flatlist keyextractor"

Code answers related to "Javascript"

Browse Popular Code Answers by Language