Answers for "flatlist Warning: Each child in a list should have a unique "key" prop."

0

flatlist Warning: Each child in a list should have a unique "key" prop.

<FlatList
  keyExtractor={(item, index) => index.toString()} //Add this line
  style={{...}}
  data={...}
  renderItem={info => {...}}/>
Posted by: Guest on April-16-2022

Code answers related to "flatlist Warning: Each child in a list should have a unique "key" prop."

Code answers related to "Javascript"

Browse Popular Code Answers by Language