adrianhajdin/aora

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

Opened this issue · 2 comments

I got an error in home.jsx in flatlist.

<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.

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