Install
npm install @mgcrea/react-native-dnd --save
# or
yarn add @mgcrea/react-native-dnd
# or
pnpm add @mgcrea/react-native-dnd
Dependencies
This package relies on :
- react-native-reanimated@>=3 🔗
- react-native-gesture-handler@>=2 🔗
- react-native-haptic-feedback@>=2 🔗
You first need to add them as dependencies:
npm install react-native-reanimated react-native-gesture-handler react-native-haptic-feedback --save
# or
yarn add react-native-reanimated react-native-gesture-handler react-native-haptic-feedback
# or
pnpm add react-native-reanimated react-native-gesture-handler react-native-haptic-feedback
Then you must follow their respective installation instructions: