When I use FlatList
component inside ScrollView
I see a warning:
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.
Before and after FlatList
I use a lot of other components and my screen is long.
I tried to wrap content with SafeAreaView
and it doesn't help me, because in this case I can't scroll the content. I also tried to use ListHeaderComponent={SafeAreaView}
and ListFooterComponent={SafeAreaView}
in <FlatList>
.
I use:
- "react": "16.9.0",
- "react-native": "0.61.5",