0.4.0 • Published 3 years ago

react-native-ios-drag-and-drop v0.4.0

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

react-native-ios-drag-and-drop

Implementation iOS drag and drop feature for React Native

Installation

yarn add react-native-ios-drag-and-drop

Example

IMG_42544228c8a2ac85df03.gif

Usage

import { DragAndDropView, DropEvent } from 'react-native-ios-drag-and-drop';

// Add View
<DragAndDropView style={...} enabled={true} onDrop={onDrop}>
...
</DragAndDropView>

// Define onDrop callback


const onDrop = ({ nativeEvent }: NativeSyntheticEvent<DropEvent>) => {
    ...
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT