A few perf params for android

This commit is contained in:
Eric Bailey
2025-06-25 10:24:15 -05:00
parent 4c1515169a
commit 521d707f99
+14 -3
View File
@@ -522,7 +522,7 @@ export function PostThread({uri}: {uri: string}) {
})} })}
onStartReached={onStartReached} onStartReached={onStartReached}
onEndReached={onEndReached} onEndReached={onEndReached}
onEndReachedThreshold={2} onEndReachedThreshold={4}
onStartReachedThreshold={1} onStartReachedThreshold={1}
/** /**
* NATIVE ONLY * NATIVE ONLY
@@ -530,6 +530,7 @@ export function PostThread({uri}: {uri: string}) {
*/ */
maintainVisibleContentPosition={{minIndexForVisible: 0}} maintainVisibleContentPosition={{minIndexForVisible: 0}}
desktopFixedHeight desktopFixedHeight
sideBorders={false}
ListFooterComponent={ ListFooterComponent={
<ListFooter <ListFooter
/* /*
@@ -551,8 +552,18 @@ export function PostThread({uri}: {uri: string}) {
/> />
} }
initialNumToRender={initialNumToRender} initialNumToRender={initialNumToRender}
windowSize={11} /**
sideBorders={false} * Default: 21
*/
windowSize={platform({android: 11})}
/**
* Default: 10
*/
maxToRenderPerBatch={platform({android: 5})}
/**
* Default: 50
*/
updateCellsBatchingPeriod={platform({android: 25})}
/> />
)} )}