diff options
author | Ivan Chen <ivan@tagg.id> | 2021-06-11 17:12:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-11 17:12:16 -0400 |
commit | 4add0eed33032012fb945fb02a928aed426b9465 (patch) | |
tree | 4206596615a30e9e042a2925dbbd5c9bc29b9990 | |
parent | 17d3f1255bd7692772b675b09685a92b305e8d9b (diff) | |
parent | 2fde5947258a702f6ee51b436f00aa3be5d7c2b2 (diff) |
Merge pull request #465 from grusuTagg/tma910-moment-thumbnail
[TMA-910] Fix Moment Thumbnail Delay
-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} |