You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've implemented drag/drop for a list with a single column of items. Everything works well. Changing numColumns to 2 stops the drag and drop from working.
The behaviour is not consistent - sometimes it drags/drops an entire row of the list but most of the time nothing happens at all.
To Reproduce
start with a working DraggableFlatList example, then add numColumns={2} to the props
Platform & Dependencies
Please list any applicable dependencies in addition to those below (react-navigation etc).
react-native-draggable-flatlist version: 4.0.1
Platform: Android
React Native or Expo version: 52.0.18
Reanimated version: 3.16.1
React Native Gesture Handler version: 2.20.2
Additional context
Just wondering whether multiple columns are officially supported?
The text was updated successfully, but these errors were encountered:
The error you're encountering occurs because numColumns is not supported when horizontal is set to true in DraggableFlatList. These two props are mutually exclusive in React Native'sFlatList implementation.
You can handle the grid layout manually by Adding Styles
This package has external dependencies of react-native-reanimated and react-native-gesture-handler which must be installed separately. Before opening an issue related to animations or gestures please verify that you have completed ALL installation steps, including the changes to MainActivity.
Describe the bug
I've implemented drag/drop for a list with a single column of items. Everything works well. Changing
numColumns
to 2 stops the drag and drop from working.The behaviour is not consistent - sometimes it drags/drops an entire row of the list but most of the time nothing happens at all.
To Reproduce
start with a working DraggableFlatList example, then add
numColumns={2}
to the propsPlatform & Dependencies
Please list any applicable dependencies in addition to those below (react-navigation etc).
Additional context
Just wondering whether multiple columns are officially supported?
The text was updated successfully, but these errors were encountered: