mgcrea / react-native-dnd

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

FlatList use? #2

Closed kylegillen closed 1 year ago

kylegillen commented 1 year ago

Any plans to have an API for use with FlatList?

mgcrea commented 1 year ago

I've landed an initial implementation of a <DraggableFlatlist /> in the 1.7.0 release.

Here is an usage example: https://github.com/mgcrea/react-native-dnd/blob/master/example/src/FlatListExample.tsx

Simulator Screen Recording - iPhone SE (3rd generation) - 2023-09-12 at 16 53 41

The current over scroll is a bit messy and I'm looking into ways to improve it.

Feel free to open new issues regarding the current implementation!