UNPKG

react-native-draggable-flatlist

Version:
13 lines (12 loc) 567 B
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 {};