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>
|
</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
|
||||||
|
@ -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={
|
||||||
|
@ -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 }) => {
|
||||||
|
@ -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%',
|
||||||
|
Loading…
Reference in New Issue
Block a user