mirror of
https://github.com/tooot-app/app
synced 2024-12-26 17:32:26 +01:00
Try using default windowSize
This commit is contained in:
parent
3b9369b509
commit
542dfe4723
@ -249,7 +249,6 @@ const EmojisList = () => {
|
||||
</CustomText>
|
||||
)}
|
||||
renderItem={listItem}
|
||||
windowSize={4}
|
||||
contentContainerStyle={{
|
||||
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding,
|
||||
minHeight: 32 * 2 + StyleConstants.Spacing.M * 3
|
||||
|
@ -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={
|
||||
|
@ -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 }) => {
|
||||
|
@ -36,7 +36,6 @@ const TabSharedUsers: React.FC<TabSharedStackScreenProps<'Tab-Shared-Users'>> =
|
||||
|
||||
return (
|
||||
<FlatList
|
||||
windowSize={7}
|
||||
data={flattenPages(data)}
|
||||
style={{
|
||||
minHeight: '100%',
|
||||
|
Loading…
Reference in New Issue
Block a user