Implements high-performance drag-and-drop, sortable lists, and interactive grids in React Native applications using Reanimated 4.
This skill provides specialized guidance for integrating the react-native-reanimated-dnd library into React Native projects to achieve fluid, 60fps drag-and-drop interfaces. It streamlines the implementation of complex UI patterns including vertical and horizontal sortable lists, 2D reorderable grids, and sophisticated drop zone logic. By leveraging Reanimated 4 worklets, it ensures all animations run on the UI thread for maximum performance, while offering deep support for features like dynamic item heights, axis constraints, and customizable collision detection algorithms.
Características Principales
01Pre-built Sortable and SortableGrid components for easy list reordering
02Sophisticated collision detection with center, intersect, and contain modes
031,004 GitHub stars
04Support for dynamic and variable-height items in sortable lists
0560fps UI-thread animations via Reanimated 4 and Worklets
06Customizable drag handles and axis-locking for precise movement control
Casos de Uso
01Developing complex drag-to-drop interfaces with multiple target zones
02Creating interactive photo galleries with draggable grid layouts
03Building reorderable task boards, kanban views, or todo lists