Skip to content

Commit

Permalink
fix: multiple children with same key bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Feb 15, 2024
1 parent cea9861 commit d9810fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/ProfilePages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ const ProfilePages = ({ route, navigation }) => {
<ProfileGridPosts>
{selectedPostFormat == "One" && (<FlatList
data={images.posts}
keyExtractor={(item) => item.imageKey}
keyExtractor={(item) => item._id}
renderItem={({ item, index }) => <ImagePost post={item} index={index} dispatch={dispatchImages} colors={colors} colorsIndexNum={indexNum}/> }
ListFooterComponent={<ListFooters feedData={images} loadMoreFunction={loadImages} postFormat="image"/>}
ItemSeparatorComponent={() => <View style={{height: 10}}/>}
Expand Down

0 comments on commit d9810fd

Please sign in to comment.