react-native-draggable-flatlist
Version:
A drag-and-drop-enabled FlatList component for React Native
13 lines (12 loc) • 567 B
TypeScript
import React from "react";
declare type Props<T> = {
activeKey: string | null;
keyExtractor: (item: T, index: number) => string;
horizontal: boolean;
layoutAnimationDisabled: boolean;
children: React.ReactNode;
};
declare type DraggableFlatListContextValue<T> = Omit<Props<T>, "children">;
export default function DraggableFlatListProvider<T>({ activeKey, keyExtractor, horizontal, layoutAnimationDisabled, children, }: Props<T>): JSX.Element;
export declare function useDraggableFlatListContext<T>(): DraggableFlatListContextValue<T>;
export {};