UNPKG

@attio/react-native-bottom-sheet-toolbox

Version:
15 lines 1.13 kB
import type { SectionList } from "react-native"; import type Animated from "react-native-reanimated"; import { type FlatList, type ScrollView } from "react-native-gesture-handler"; import { type AnimatedRef, type SharedValue } from "react-native-reanimated"; export type Scrollable<T> = FlatList<T> | ScrollView | SectionList<T> | Animated.FlatList<T> | Animated.ScrollView | any; export interface UseBottomSheetScrollGestureArgs<T> { scrollRef: AnimatedRef<Scrollable<T>>; scrollOffsetYSharedValue: SharedValue<number>; scrollContentHeightSharedValue: SharedValue<number | null>; scrollLayoutHeightSharedValue: SharedValue<number | null>; inverted: boolean; isFrozenSharedValue?: SharedValue<boolean>; } export declare function useBottomSheetScrollGesture<T>({ scrollRef, scrollOffsetYSharedValue, scrollContentHeightSharedValue, scrollLayoutHeightSharedValue, inverted, isFrozenSharedValue, }: UseBottomSheetScrollGestureArgs<T>): import("react-native-gesture-handler/lib/typescript/handlers/gestures/gestureComposition").SimultaneousGesture; //# sourceMappingURL=use-bottom-sheet-scroll-gesture.d.ts.map