NestableScrollContainer with NestableDraggableFlatList, VirtualizedLists should never be nested inside plain ScrollViews with the same orientation
See original GitHub issueIssue Description
I use NestableScrollContainer and NestableDraggableFlatList exactly as in the example, but I get the following scrollview nesting error in console:
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead.
my code:
<NestableScrollContainer>
<NestableDraggableFlatList
scrollEnabled={false}
data={data1}
renderItem={renderItem}
keyExtractor={(index) => `${index}`}
onDragEnd={({ data }) => setData1(data)}
/>
<NestableDraggableFlatList
scrollEnabled={false}
data={data2}
renderItem={renderItem}
keyExtractor={(index) => `${index}`}
onDragEnd={({ data }) => setData2(data)}
/>
<NestableDraggableFlatList
scrollEnabled={false}
data={data3}
renderItem={renderItem}
keyExtractor={(index) => `${index}`}
onDragEnd={({ data }) => setData3(data)}
/>
</NestableScrollContainer>
Platform & Dependencies
- react-native-draggable-flatlist version: 3.1.2
- Platform: iOS/Android
- React Native: 0.69
- Reanimated version: 2.8.0
- React Native Gesture Handler version: 2.2.1
Issue Analytics
- State:
- Created 8 months ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
VirtualizedLists should never be nested inside plain ScrollViews
Errors : VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other ...
Read more >virtualizedlists should never be nested inside plain ... - You.com
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another ......
Read more >How to Fix 'VirtualizedLists should never be nested inside ...
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.
Read more >react-native-draggable-flatlist - npm
NestableScrollContainer extends the ScrollView from react-native-gesture-handler , and NestableDraggableFlatList extends DraggableFlatList , so ...
Read more >VirtualizedLists should never be nested inside ... - YouTube
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList - backed container ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
try nesting the NestableScrollContainer in a view as in their example https://github.com/computerjazz/react-native-draggable-flatlist/blob/main/Example/screens/NestedScreen.tsx . it got rid of the error for me
+1