0.1.1 • Published 3 months ago

react-native-viewdrop-ios v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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>;
MethodDescription
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

0.1.1

3 months ago

0.1.0

10 months ago