Try using default windowSize

This commit is contained in:
xmflsct 2023-02-17 14:04:30 +01:00
parent 3b9369b509
commit 542dfe4723
4 changed files with 1 additions and 5 deletions

View File

@ -249,7 +249,6 @@ const EmojisList = () => {
</CustomText>
)}
renderItem={listItem}
windowSize={4}
contentContainerStyle={{
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding,
minHeight: 32 * 2 + StyleConstants.Spacing.M * 3

View File

@ -251,13 +251,12 @@ const Timeline: React.FC<Props> = ({
ref={customFLRef || flRef}
scrollEventThrottle={16}
onScroll={onScroll}
windowSize={5}
data={flattenPages(data)}
{...(customProps?.renderItem
? { renderItem: customProps.renderItem }
: { renderItem: ({ item }) => <TimelineDefault item={item} queryKey={queryKey} /> })}
initialNumToRender={3}
maxToRenderPerBatch={3}
maxToRenderPerBatch={2}
onEndReached={() => !disableInfinity && !isFetchingNextPage && fetchNextPage()}
onEndReachedThreshold={0.75}
ListFooterComponent={

View File

@ -284,7 +284,6 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
return (
<FlatList
ref={flRef}
windowSize={5}
data={query.data?.pages?.[0].body}
extraData={query.dataUpdatedAt}
renderItem={({ item, index }) => {

View File

@ -36,7 +36,6 @@ const TabSharedUsers: React.FC<TabSharedStackScreenProps<'Tab-Shared-Users'>> =
return (
<FlatList
windowSize={7}
data={flattenPages(data)}
style={{
minHeight: '100%',