Warning: Each child in a list should have a unique "key" prop.
Opened this issue · 2 comments
skardtechDeveloper commented
I got an error in home.jsx in flatlist.
Lagnajit09 commented
<FlatList
data={posts}
keyExtractor={(item) => item.$id}
renderItem={({ item, index }) => <VideoCard key={index} video={item} />}
You should try to add a index as a key like this.
AwwdLabs commented
key={index} when you are mapping anything out. Which is the <VideoCard? by the looks of it, so the key={index} is required by its parent