aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Rusu <george@tagg.id>2021-06-11 09:44:19 -0700
committerGeorge Rusu <george@tagg.id>2021-06-11 09:44:19 -0700
commit21c7b59de3811dd05d47446412958b0fc3db4bfd (patch)
tree10de339f2387b2f7536512e60c9c64a3735efac0
parenta2acb2e97d4ba30713c77e1e44d7c7a069f95034 (diff)
Replace index k with new unique key
-rw-r--r--src/screens/main/NotificationsScreen.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx
index ebcccc8e..7592a565 100644
--- a/src/screens/main/NotificationsScreen.tsx
+++ b/src/screens/main/NotificationsScreen.tsx
@@ -290,7 +290,9 @@ const NotificationsScreen: React.FC = () => {
contentContainerStyle={styles.container}
stickySectionHeadersEnabled={false}
sections={sectionedNotifications}
- keyExtractor={(_item, index) => index.toString()}
+ keyExtractor={(item, index) =>
+ item.timestamp.toString() + index.toString()
+ }
renderItem={renderNotification}
renderSectionHeader={renderSectionHeader}
renderSectionFooter={renderSectionFooter}