nuclearpasta / react-native-drax

A drag-and-drop system for React Native
MIT License
554 stars 69 forks source link

question: for re-ordering example, is it possible to make it to be 2 columns? #122

Closed JonathanSum closed 2 years ago

JonathanSum commented 2 years ago

image question: for re-ordering example, is it possible to make it to be 2 columns? Thank you for answering

lafiosca commented 2 years ago

Hi @JonathanSum. It depends what you mean, but essentially: not quite yet, at least not smoothly. If you want a single multi-column list, there are several issues and PRs related to that such as #14 #67 #99 and the feature hasn't been completed yet. If you mean you want two separate DraxLists that you can drag between, that is also not supported yet but will hopefully be added at some point (see #71 #75 etc). Folks have invented some workarounds and experiments for these things which you may be able to find by digging around those links.

lafiosca commented 2 years ago

I'm going to close this issue for now, but if I haven't actually answered the question, please let me know and we can reopen it.

JonathanSum commented 2 years ago

image Hi. Thank you for answering. It is something similar to this. I hope it can be scrollable if the list is too long.

lafiosca commented 2 years ago

So this just appears to be a multi-column list. You can use the numColumns prop that a vanilla FlatList has, but as per #14 there will be some cosmetic issues when dragging items around.