API reference
react-native-reorderable
react-native-reorderable/flash-list
Install @shopify/flash-list@^2.3.2 to use this optional entrypoint.
react-native-reorderable/legend-list
Install @legendapp/list@^3.3.3 to use this optional entrypoint.
Shared container props
Reorder callback
sourceIds is canonical pre-move collection/item order, not selection chronology. beforeId: null means the end of the destination collection. nextOrder is a proposal computed against the latest rendered order; render it to accept the commit, delay it, or keep the prior order to restore.
Drop callback
canDrop(itemIds) is evaluated once when a pointer drag activates and that result remains fixed for the interaction. Accessible drop evaluates it when the action is invoked. onDrop reports a completed delivery; it is not a veto point.
Virtualized geometry
getItemLayout supplies exact { index, length, offset } geometry for flat lists. Section-list callbacks supply { length, offset }, where offset includes every preceding row plus section headers and footers. Without exact geometry the wrappers adapt measured sizes, using estimatedItemSize (default 64) until measurement is available.
The wrappers own vertical orientation, cell rendering, scrolling, stable identity, and other correctness-critical props. Horizontal, inverted, masonry, and multi-column layouts are deliberate v1 exclusions.