A few perf params for android
This commit is contained in:
@@ -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})}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user