react-native-reanimated-dnd
Version:
A powerful drag-and-drop library for React Native using Reanimated 3
7 lines (6 loc) • 628 B
TypeScript
import React from "react";
import { SortableItemProps, SortableHandleProps } from "../types/sortable";
export declare function SortableItem<T>({ id, data, positions, direction, lowerBound, leftBound, autoScrollDirection, autoScrollHorizontalDirection, itemsCount, itemHeight, itemWidth, gap, paddingHorizontal, containerHeight, containerWidth, children, style, animatedStyle: customAnimatedStyle, onMove, onDragStart, onDrop, onDragging, onDraggingHorizontal, }: SortableItemProps<T>): React.JSX.Element;
export declare namespace SortableItem {
var Handle: ({ children, style }: SortableHandleProps) => React.JSX.Element;
}