React-Native another VirtualizedList-backed container

Tags: , ,

After upgrading to react-native 0.61 i get a lot of warnings like that:

VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.

What is the other VirtualizedList-backed container that i should use, and why is it now advised not to use like that?


If someone’s still looking for a suggestion to the problem that @Ponleu and @David Schilling have described here (regarding content that goes above the FlatList), then this is the approach I took:

<SafeAreaView style={{flex: 1}}>
      ListFooterComponent={ContentThatGoesBelowTheFlatList} />

You can read more about this here:

Hopefully it helps someone. 🙂

Source: stackoverflow