React Native Draggable View
npm install react-native-draggable-reanimated---
This package requires these, please make sure you had installed them:
- react-native-gesture-handler
- react-native-reanimated V2

$ npm install react-native-draggable-reanimated --save
- OR
$ yarn add react-native-draggable-reanimated
- All in one
$ npm install react-native-draggable-reanimated react-native-gesture-handler react-native-reanimated --save && cd ios && pod install
javascript
import DraggableView from 'react-native-draggable-reanimated'; initValue={{ x: 100, y: 100 }}
onRelease={(val) => {
console.log(val);
}}>
style={{
backgroundColor: 'red',
width: BOX_SIZE,
height: BOX_SIZE,
}}
/>
``This module is MIT licensed
---