0.1.1 • Published 3 months ago
react-native-viewdrop-ios v0.1.1
react-native-viewdrop-ios
ViewDrop is a module for React Native that will allow View to use a native iOS feature to transfer pictures, videos, files, and more through a simple Drag & Drop action.
Installation
npm install react-native-viewdrop-ios
Usage
import { ViewDrop } from 'react-native-viewdrop-ios';
// ...
<ViewDrop style={styles.container}
onImageReceived={setImage}
onDropItemDetected={() => some logic for start dropping}
>
// your views
</ViewDrop>;
Method | Description |
---|---|
onImageReceived | (image : base64_string) => void |
onDropItemDetected | () => void |
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library