Description
react-native-drag-sort is a React Native component for drag-and-drop sorting of items in a grid or list. You give it a data source and render each item, and users can press and drag items into a new order. The README recommends choosing one of three components by layout. DragSortableView suits items with a fixed width and height that do not need to scroll. AutoDragSortableView suits fixed-size items in a list that scrolls. AnySizeDragSortableView suits items of arbitrary size that scroll. The API reference lists props for the data source, item size and margins, a long-press delay, and callbacks such as onDragStart, onDragEnd and onDataChange, which runs whenever the data changes. Other options set whether dragging is allowed at all, whether items can be dragged freely, and how much an item scales and fades while it is moved. A GIF in the README shows several example pages, including one for drag-to-delete. The README is written in English and Chinese.…
Highlights
- Drag-and-drop sorting for React Native lists and grids
- Three components chosen by item size and scrolling
- Drag callbacks for start, end and data change
- Long-press delay and scale and opacity while dragging
- Example pages in a demo GIF
Ratings & Reviews
No ratings yet
Be the first to rate react-native-drag-sort.
People also visit

react-sortable-hoc
Set of higher-order components to turn any list into a sortable, touch-friendly

react-native-tree-multi-select
Super-fast, customizable tree view component for React Native

react-sortable-tree
Drag-and-drop sortable component for nested data and hierarchies
react-native-drag-sort FAQ
What is react-native-drag-sort?
A React Native component that lets users drag items to reorder them in a grid or list.
Which component should I use?
Use DragSortableView for fixed-size items that do not scroll, AutoDragSortableView for fixed-size items that scroll, and AnySizeDragSortableView for items of any size that scroll.
Can I turn dragging off?
Yes. The sortable prop lets you disallow dragging, and the isDragFreely prop controls whether the drag is limited to a space.
Can I react when the order changes?
Yes. onDataChange is called every time the data changes, and onDragStart and onDragEnd fire at the start and end of a drag.
Does the README show what it looks like?
Yes. It has a GIF of several example pages, including sorting, a fixed-item page and a drag-to-delete page.
What are the best react-native-drag-sort alternatives?
Popular alternatives to react-native-drag-sort include react-drag-listview, sortablejs and react-sortable-hoc. See all react-native-drag-sort alternatives
















