diff --git a/src/components/StarterPack/ProfileStarterPacks.tsx b/src/components/StarterPack/ProfileStarterPacks.tsx index 5149ba6c3a..7c4b323c13 100644 --- a/src/components/StarterPack/ProfileStarterPacks.tsx +++ b/src/components/StarterPack/ProfileStarterPacks.tsx @@ -201,40 +201,48 @@ export function ProfileStarterPacks({ [isTabletOrDesktop, t.atoms.border_contrast_low], ) + const list = ( + + ) + return ( - - - + {IS_IOS ? ( + + {list} + + ) : ( + list + )} ) } diff --git a/src/screens/Profile/Sections/Labels.tsx b/src/screens/Profile/Sections/Labels.tsx index 8a8ecb92e1..6a2edf0c73 100644 --- a/src/screens/Profile/Sections/Labels.tsx +++ b/src/screens/Profile/Sections/Labels.tsx @@ -159,40 +159,45 @@ export function ProfileLabelsSection({ [labelerInfo, isSubscribed, numItems, t], ) + const list = ( + + } + ListFooterComponent={ + + } + animatedProps={IS_IOS ? animatedProps : undefined} + /> + ) + return ( - - - } - ListFooterComponent={ - - } - animatedProps={animatedProps} - /> - + {IS_IOS ? ( + + {list} + + ) : ( + list + )} ) } diff --git a/src/view/com/feeds/ProfileFeedgens.tsx b/src/view/com/feeds/ProfileFeedgens.tsx index ef135e4be5..4a611a665b 100644 --- a/src/view/com/feeds/ProfileFeedgens.tsx +++ b/src/view/com/feeds/ProfileFeedgens.tsx @@ -286,32 +286,40 @@ export function ProfileFeedgens({ isEmpty, ]) + const list = ( + + ) + return ( - - - + {IS_IOS ? ( + + {list} + + ) : ( + list + )} ) } diff --git a/src/view/com/lists/ProfileLists.tsx b/src/view/com/lists/ProfileLists.tsx index f8c6c668a0..18c793d673 100644 --- a/src/view/com/lists/ProfileLists.tsx +++ b/src/view/com/lists/ProfileLists.tsx @@ -285,32 +285,40 @@ export function ProfileLists({ isEmpty, ]) + const list = ( + + ) + return ( - - - + {IS_IOS ? ( + + {list} + + ) : ( + list + )} ) } diff --git a/src/view/com/posts/PostFeed.tsx b/src/view/com/posts/PostFeed.tsx index 60203eb730..6e9bae16a6 100644 --- a/src/view/com/posts/PostFeed.tsx +++ b/src/view/com/posts/PostFeed.tsx @@ -1045,45 +1045,53 @@ let PostFeed = ({ return {} }) + const list = ( + item.key} + renderItem={renderItem} + ListFooterComponent={FeedFooter} + ListHeaderComponent={ListHeaderComponent} + refreshing={isPTRing} + onRefresh={() => void onRefresh()} + headerOffset={headerOffset} + progressViewOffset={progressViewOffset} + contentContainerStyle={{ + minHeight: Dimensions.get('window').height * 1.5, + }} + onScrolledDownChange={handleScrolledDownChange} + onEndReached={() => void onEndReached()} + onEndReachedThreshold={2} // number of posts left to trigger load more + removeClippedSubviews={true} + extraData={extraData} + desktopFixedHeight={ + desktopFixedHeightOffset ? desktopFixedHeightOffset : true + } + initialNumToRender={initialNumToRenderOverride ?? initialNumToRender} + windowSize={9} + maxToRenderPerBatch={IS_IOS ? 5 : 1} + updateCellsBatchingPeriod={40} + onItemSeen={onItemSeen} + animatedProps={IS_IOS ? animatedProps : undefined} + /> + ) + return ( - - item.key} - renderItem={renderItem} - ListFooterComponent={FeedFooter} - ListHeaderComponent={ListHeaderComponent} - refreshing={isPTRing} - onRefresh={() => void onRefresh()} - headerOffset={headerOffset} - progressViewOffset={progressViewOffset} - contentContainerStyle={{ - minHeight: Dimensions.get('window').height * 1.5, - }} - onScrolledDownChange={handleScrolledDownChange} - onEndReached={() => void onEndReached()} - onEndReachedThreshold={2} // number of posts left to trigger load more - removeClippedSubviews={true} - extraData={extraData} - desktopFixedHeight={ - desktopFixedHeightOffset ? desktopFixedHeightOffset : true - } - initialNumToRender={initialNumToRenderOverride ?? initialNumToRender} - windowSize={9} - maxToRenderPerBatch={IS_IOS ? 5 : 1} - updateCellsBatchingPeriod={40} - onItemSeen={onItemSeen} - animatedProps={animatedProps} - /> - + {IS_IOS ? ( + + {list} + + ) : ( + list + )} ) }