UNPKG

@kietpt2003/react-native-core-ui

Version:
20 lines 1.04 kB
import React from "react"; import { FlatList } from "react-native-gesture-handler"; import Animated, { type SharedValue, WithSpringConfig } from "react-native-reanimated"; import { CellData, DraggableFlatListProps } from "../../constants/DraggableFlatList/types"; type RefContextValue<T> = { propsRef: React.MutableRefObject<DraggableFlatListProps<T>>; animationConfigRef: SharedValue<WithSpringConfig>; cellDataRef: React.MutableRefObject<Map<string, CellData>>; keyToIndexRef: React.MutableRefObject<Map<string, number>>; containerRef: React.RefObject<Animated.View>; flatlistRef: React.RefObject<FlatList<T>> | React.ForwardedRef<FlatList<T>>; scrollViewRef: React.RefObject<Animated.ScrollView>; }; export default function RefProvider<T>({ children, flatListRef, }: { children: React.ReactNode; flatListRef?: React.ForwardedRef<FlatList<T>> | null; }): import("react/jsx-runtime").JSX.Element; export declare function useRefs<T>(): RefContextValue<T>; export {}; //# sourceMappingURL=refContext.d.ts.map