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> </CustomText>
)} )}
renderItem={listItem} renderItem={listItem}
windowSize={4}
contentContainerStyle={{ contentContainerStyle={{
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding, paddingHorizontal: StyleConstants.Spacing.Global.PagePadding,
minHeight: 32 * 2 + StyleConstants.Spacing.M * 3 minHeight: 32 * 2 + StyleConstants.Spacing.M * 3

View File

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

View File

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

View File

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