From 21c7b59de3811dd05d47446412958b0fc3db4bfd Mon Sep 17 00:00:00 2001 From: George Rusu Date: Fri, 11 Jun 2021 09:44:19 -0700 Subject: Replace index k with new unique key --- src/screens/main/NotificationsScreen.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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} -- cgit v1.2.3-70-g09d2