mgcrea / react-native-dnd

Modern and easy-to-use drag&drop library for react-native.
https://mgcrea.github.io/react-native-dnd/
MIT License
135 stars 12 forks source link

Source code of demo #1

Closed XIGUATANG closed 6 months ago

XIGUATANG commented 1 year ago

I want to know the source code of the demo.

mgcrea commented 6 months ago

I've re-written the draggable grid from the ground up and I'm currently improving the docs.

There is now two easy-to-use components DraggableStack and DraggableGrid.

The draggable stack can only sort on a single axis but handles variable width. I also have a DraggableFlatList in the works but there is still some issues when trying to sort out of bounds in specific situations.

I have added updated examples here: https://github.com/mgcrea/react-native-dnd/tree/master/example/src/pages

Let me know if there is anything unclear.