From 521d707f996a18da4dfb39823820caa0d44ac5e4 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 25 Jun 2025 10:24:15 -0500 Subject: [PATCH] A few perf params for android --- src/screens/PostThread/index.tsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/screens/PostThread/index.tsx b/src/screens/PostThread/index.tsx index 350fc41aee..ced321181a 100644 --- a/src/screens/PostThread/index.tsx +++ b/src/screens/PostThread/index.tsx @@ -522,7 +522,7 @@ export function PostThread({uri}: {uri: string}) { })} onStartReached={onStartReached} onEndReached={onEndReached} - onEndReachedThreshold={2} + onEndReachedThreshold={4} onStartReachedThreshold={1} /** * NATIVE ONLY @@ -530,6 +530,7 @@ export function PostThread({uri}: {uri: string}) { */ maintainVisibleContentPosition={{minIndexForVisible: 0}} desktopFixedHeight + sideBorders={false} ListFooterComponent={ } initialNumToRender={initialNumToRender} - windowSize={11} - sideBorders={false} + /** + * Default: 21 + */ + windowSize={platform({android: 11})} + /** + * Default: 10 + */ + maxToRenderPerBatch={platform({android: 5})} + /** + * Default: 50 + */ + updateCellsBatchingPeriod={platform({android: 25})} /> )}