Answers for "react native flatlist use index as key"

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
0

react native flatlist use index as key

keyExtractor={(item, index) => index.toString()}
Posted by: Guest on September-27-2021

Code answers related to "react native flatlist use index as key"

Code answers related to "Javascript"

Browse Popular Code Answers by Language