Increase post list initial and batch items to render

This commit is contained in:
Elias Nahum 2021-09-20 18:01:04 -03:00
parent 2c9b74387e
commit a9939ec230
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -214,8 +214,8 @@ const PostList = ({currentTimezone, currentUsername, isTimezoneEnabled, lastView
keyExtractor={(item) => (typeof item === 'string' ? item : item.id)}
style={{flex: 1}}
contentContainerStyle={{paddingTop: 5}}
initialNumToRender={10}
maxToRenderPerBatch={Platform.select({android: 5})}
initialNumToRender={25}
maxToRenderPerBatch={25}
removeClippedSubviews={true}
onViewableItemsChanged={onViewableItemsChanged}
viewabilityConfig={VIEWABILITY_CONFIG}