0.4.0 • Published 3 years ago
react-native-ios-drag-and-drop v0.4.0
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
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