a react native wrapper to drag any component
npm install rn-draggableimport { Draggable } from 'rn-draggable';
// ...
<Draggable>
<YourCompomemt />
</Draggable>Draggable accept the following props
-onGrant: Function (fired when the draggable component is initiated)
-onMove: Function (fired when the draggable component is being dragged)
-onRelease: Function (fired when the draggable component is released).
const myFunction=()=>{...}
<Draggable onGrant={myFunction}>
{/*...*/}
</Draggable>See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library