### React Native DnD Quick Example
Source: https://react-native-reanimated-dnd.netlify.app/docs/intro/index
A basic implementation of drag-and-drop using React Native Reanimated DnD, Gesture Handler, and Reanimated. It demonstrates a draggable item and a droppable area with console logging on drop.
```javascript
import React from 'react';
import { View, Text } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { DropProvider, Draggable, Droppable } from 'react-native-reanimated-dnd';
export default function App() {
return (
Drag me!
console.log('Dropped:', data)}>
Drop here!
);
}
```
--------------------------------
### Sortable List Implementation
Source: https://react-native-reanimated-dnd.netlify.app/docs/intro/index
Example of using the Sortable component for creating reorderable lists. It requires data, a renderItem function, and itemHeight. The onMove callback handles the reordering logic.
```javascript
(
{
// Handle reordering
const newItems = [...items];
const [movedItem] = newItems.splice(from, 1);
newItems.splice(to, 0, movedItem);
setItems(newItems);
}}
>
)}
itemHeight={60}
/>
```
--------------------------------
### Droppable Component Usage
Source: https://react-native-reanimated-dnd.netlify.app/docs/intro/index
Shows how to create a drop zone using the Droppable component. It accepts an onDrop callback function to handle dropped items.
```javascript
handleDrop(data)}>
```
--------------------------------
### Draggable Component Usage
Source: https://react-native-reanimated-dnd.netlify.app/docs/intro/index
Demonstrates how to make a component draggable using the Draggable component from React Native Reanimated DnD. It supports passing a data payload.
```javascript
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.