diff options
author | Brian Kim <brian@tagg.id> | 2021-06-15 17:15:43 +0900 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-06-15 17:15:43 +0900 |
commit | 4a422e43c6a6deaeff5d8fcc692138454653e4b9 (patch) | |
tree | 2e86ab879ea35e879581eb64be955d0e5481ff80 /src/screens/main/NotificationsScreen.tsx | |
parent | c57b4959c90cec90dd0936f75a9086a4430b66b1 (diff) | |
parent | db0678d647f774dcb1cd60513985d9b6fbd0e28b (diff) |
Merge with master
Diffstat (limited to 'src/screens/main/NotificationsScreen.tsx')
-rw-r--r-- | src/screens/main/NotificationsScreen.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx index ebcccc8e..03842b0a 100644 --- a/src/screens/main/NotificationsScreen.tsx +++ b/src/screens/main/NotificationsScreen.tsx @@ -19,6 +19,7 @@ import {SafeAreaView} from 'react-native-safe-area-context'; import {useDispatch, useSelector} from 'react-redux'; import FindFriendsBlueIcon from '../../assets/icons/findFriends/find-friends-blue-icon.svg'; import {TabsGradient} from '../../components'; +import EmptyContentView from '../../components/common/EmptyContentView'; import {Notification} from '../../components/notifications'; import {NewChatPrompt} from '../../components/notifications/NotificationPrompts'; import { @@ -28,7 +29,6 @@ import { import {RootState} from '../../store/rootReducer'; import {NotificationType, ScreenType} from '../../types'; import {getDateAge, normalize, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; -import EmptyContentView from '../../components/common/EmptyContentView'; const NotificationsScreen: React.FC = () => { const {newNotificationReceived} = useSelector( @@ -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} |