Skip to content

evgenusov/react-native-ios-drag-and-drop

Repository files navigation

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