reanimated-dnd

Implement drag-and-drop interactions in React Native with DropProvider components.

1.1k|43|Updated May 15, 2025
One-click install
npx skills add https://github.com/entropyconquers/react-native-reanimated-dnd --skill reanimated-dnd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reanimated-dnd
Source: https://github.com/entropyconquers/react-native-reanimated-dnd/tree/main/.agents/skills/reanimated-dnd
Command: npx skills add https://github.com/entropyconquers/react-native-reanimated-dnd --skill reanimated-dnd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build and orchestrate drag-and-drop interactions in React Native without implementing custom gesture handling, state synchronization, or animation pipelines.

Core Features & Use Cases

  • DropProvider-based architecture enabling draggable, droppable, sortable, and grid components with smooth, UI-thread animations.
  • Supports vertical and horizontal lists, 2D grids, axis constraints, bounded dragging, collision detection, and dynamic item heights.
  • Ideal for apps needing sortable lists/grids, drag-and-drop between zones, and live reordering with visual feedback.

Quick Start

Install the library and wrap your app with DropProvider, then start composing Draggable and Droppable components.

Frequently Asked Questions about reanimated-dnd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement drag-and-drop interactions in React Native without custom gesture handling?

You can build drag-and-drop interactions in React Native by wrapping your app with a DropProvider and composing Draggable, Droppable, Sortable, and SortableGrid components. This architecture abstracts away custom gesture handling, state synchronization, and animation pipelines.

Can I create a sortable grid with dynamic item heights in React Native?

Yes, you can create a sortable grid with dynamic item heights in React Native using dedicated SortableGrid components. The library specifically supports 2D grids, collision detection, and dynamic item heights alongside vertical and horizontal lists.

Do I need react-native-reanimated and react-native-gesture-handler to build sortable lists?

Yes, you need react-native-reanimated, react-native-gesture-handler, and react-native-worklets as peer libraries to operate. These dependencies enable the smooth UI-thread animations required for high-performance sortable lists and drag-and-drop zones.

What is the best way to handle collision detection and axis constraints for draggable items in React Native?

The best way to handle collision detection and axis constraints for draggable items is using a DropProvider-based architecture. It provides fine-grained control over bounded dragging, collision detection, and axis constraints directly within its draggable and droppable components.

Does this drag-and-drop approach support dragging items between different droppable zones?

Yes, this drag-and-drop approach supports dragging items between different droppable zones in React Native. By composing Draggable and Droppable components within a DropProvider, you can orchestrate drag-and-drop interactions between zones with live visual feedback.

Why do my React Native drag-and-drop list animations stutter during live reordering?

Drag-and-drop list animations stutter when running on the JavaScript thread instead of the UI thread. Using a library built on react-native-reanimated and react-native-worklets ensures your live reordering animations run on the UI thread for high performance.