React Native & Expo errors · Error 09 of 12
“VirtualizedLists should never be nested inside plain ScrollViews”
By Muhammad Abdullah, full-stack, mobile and ai automation developer · Last reviewed
VirtualizedLists should never be nested inside plain ScrollViews with the same orientationShort answer
A FlatList or SectionList is inside a ScrollView that scrolls the same way, which breaks list virtualization and performance. Remove the outer ScrollView and put the extra content in the list’s header or footer.
Common causes
- Wrapping a whole screen in a ScrollView that also contains a FlatList.
How to fix it
Render the surrounding content through the list itself:
<FlatList data={items} renderItem={renderItem} ListHeaderComponent={<ProfileHeader />} ListFooterComponent={<Footer />} />For several groups of rows, use one SectionList instead of several FlatLists.