Skip to main content

Getting Started

1. Prerequisites

Before getting started, you need to install and configure the following dependencies:

Required Dependencies

  • react-native-reanimated (3.x or 4.x): Required for animations

  • react-native-gesture-handler (2.x or 3.x): Required for gesture handling

Gesture Handler compatibility

On iOS with the New Architecture, gesture-handler 2.x has a known limitation: a sortable can stop recognizing drags after its screen is detached and re-attached (for example bottom tabs with detachInactiveScreens={false}), which can leave a dragged item stuck (see #349).

This is not fixable on the 2.x API and is resolved by gesture-handler 3.x, which the library uses automatically when it is installed. Gesture Handler 3.x requires the New Architecture, so on the Old Architecture (Paper) keep using 2.x, where the issue does not occur.

Optional Dependencies

Haptic feedback is optional. The library automatically detects which haptics package is available and uses the first one it finds, in this order:

2. Installation

npm install react-native-sortables

3. Next Steps

Head over to one of the following sections to learn how to use the library: