Configure feed FlatList (removeClippedSubviews=true) to improve scroll performance (#136)
This commit is contained in:
@@ -103,6 +103,7 @@ export const Feed = observer(function Feed({
|
|||||||
onScroll={onScroll}
|
onScroll={onScroll}
|
||||||
onRefresh={onRefresh}
|
onRefresh={onRefresh}
|
||||||
onEndReached={onEndReached}
|
onEndReached={onEndReached}
|
||||||
|
removeClippedSubviews={true}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ export function ViewSelector({
|
|||||||
onRefresh={onRefresh}
|
onRefresh={onRefresh}
|
||||||
onEndReached={onEndReached}
|
onEndReached={onEndReached}
|
||||||
contentContainerStyle={s.contentContainer}
|
contentContainerStyle={s.contentContainer}
|
||||||
|
removeClippedSubviews={true}
|
||||||
/>
|
/>
|
||||||
</HorzSwipe>
|
</HorzSwipe>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user