mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-24 00:46:27 +03:00
fix: GU-2766 add key prop in flash list
This commit is contained in:
parent
ebd3278d6a
commit
1657f49091
@ -171,6 +171,7 @@ const CommentsView = ({
|
||||
<FlashList
|
||||
contentContainerStyle={{ padding: 0, ...styles.list, ...styleOerride, }}
|
||||
data={comments}
|
||||
keyExtractor={(item) => item.author + item.permlink}
|
||||
renderItem={_renderItem}
|
||||
ListEmptyComponent={_renderEmptyContent()}
|
||||
ListHeaderComponent={postContentView}
|
||||
|
@ -313,6 +313,7 @@ const PostComments = forwardRef(
|
||||
<FlashList
|
||||
ref={commentsListRef}
|
||||
style={styles.list}
|
||||
keyExtractor={(item) => `${item.author}/${item.permlink}`}
|
||||
contentContainerStyle={styles.listContent}
|
||||
ListHeaderComponent={_postContentView}
|
||||
ListEmptyComponent={_renderEmptyContent}
|
||||
|
@ -272,6 +272,7 @@ const postsListContainer = (
|
||||
data={cacheInjectedData}
|
||||
showsVerticalScrollIndicator={false}
|
||||
renderItem={_renderItem}
|
||||
keyExtractor={(content, index) => `${content.author}/${content.permlink}-${index}`}
|
||||
onEndReachedThreshold={1}
|
||||
maxToRenderPerBatch={5}
|
||||
initialNumToRender={3}
|
||||
|
Loading…
Reference in New Issue
Block a user