News
react-native-sortables just hit 600 ⭐ — flexible drag-and-drop sorting for React Native
A few months ago I released react-native-sortables — yesterday it crossed 600 ⭐ on GitHub!
Here’s what it can do:
🚀 Key Features
🎯 Flexible layouts: Works with both Grid and Flex layouts, handles items of different sizes, and lets you tune spacing & arrangement.
✨ Interactive features: Smooth layout animations for items order change, addition and removal, haptic feedback out of the box, multiple reordering modes (insert or swap) and much more.
👩💻 Developer-friendly: Simple, highly customizable API with full TypeScript types. Runs on the New & Old React Native Architecture, Expo and bare projects and has the web support.
I attach a showcase video so you can see it in action. I’d love any feedback, bug reports, or feature requests — and if you find it useful, a ⭐ is always appreciated.
hey, I am struggling to implement the sectioned list drag and drop that you did in your app, could you share some code snippet that can help me 🙏 I'll be indebted thank you
I think one of the best things about being a programmer is the amazing community. Almost anything you can think of someone made an awesome library for it. Thanks a lot. I'm working on an app right now that is going to need drag and drop soon.
I am planning to implement it during holiday after finishing the current semester on studies. I will have more time then and would be able to add more cool features. I will likely post information about that when it's released, so stay tuned.
It would open up the door for creating a pretty faithful re-implementation of the Windows Phone start screen, the amount of work needed before to handle a dynamic rearrangeable grid was not worth it for a half-funny screenshot and a few seconds of "ha-ha that's neat".
But if you now end up implementing it I'll be nothing less than obligated to do it (and finally get that itch scratched)
You have to manually set dimensions of each view and use the Sortable.Flex component. Since this is a flex-based layout, you will have all items aligned in the same way (top-left by default), so you won't be able to truly achieve the behavior that you want but maybe it will be sufficient for some simpler case.
I attached a gif that shows what I mean. I cannot put the small square in the right "column", because of the flex layout.
Ah, I see. I think for my use case, the behavior I’ll need is for the layout to be fixed, and the items to grow or shrink accordingly when they get reordered.
8
u/imanateater Jun 14 '25
This is the best library for drag and drop! Using it in my fitness app project for a single column lists and it works great. Thank you!