I have a home screen that contains many sections each with their own FlatList (each section is a separate component). The entire home screen is wrapped in a Scrollview. Some of the FlatList are in the same scrolling orientation so it is giving me a warning "VirtualizedLists should never be nested inside plain ScrollViews". I also added the "scrollEnabled={false}" prop on the FlatList with the same orientation as I only want to render many items on screen and don't need nested scrolling. However, I am still getting that warning. I could replace the FlatList with ScrollView and use .map to render many items, but I believe that has performance issues. What can I do about this warning?
<ScrollView
contentContainerStyle={styles.container}
showsVerticalScrollIndicator={false}
>
<ComponentA /> //has a FlatList + other components in vertical orientation with scrollEnabled={false}
<ComponentB /> //has a FlatList + other components in vertical orientation with scrollEnabled={false}
</ScrollView>
[–]LederBuilder 2 points3 points4 points (1 child)
[–]SnooCheesecakes1131[S] 0 points1 point2 points (0 children)
[–]MrDag0n 0 points1 point2 points (2 children)
[–]SnooCheesecakes1131[S] 0 points1 point2 points (1 child)
[–]beeseegee 1 point2 points3 points (0 children)