fixed keyExtractor issue from notifications list

This commit is contained in:
Nouman Tahir 2021-08-06 19:17:51 +05:00
parent f95d53dacd
commit b913158270

View File

@ -196,7 +196,7 @@ class NotificationView extends PureComponent {
_notifications && _notifications.length > 0 ? (
<SectionList
sections={_notifications}
keyExtractor={(item, index) => item.title + index}
keyExtractor={(item, index) => `${item.id}-${index}`}
onEndReached={() => getActivities(selectedFilter, true)}
ListFooterComponent={this._renderFooterLoading}
ListEmptyComponent={<ListPlaceHolder />}