UNPKG

878 BTypeScriptView Raw
1import type { SharedValue } from '../commonTypes';
2import type { AnimatedScrollView } from '../component/ScrollView';
3import type { AnimatedRef } from './commonTypes';
4/**
5 * Lets you synchronously get the current offset of a `ScrollView`.
6 *
7 * @param animatedRef - An [animated
8 * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef)
9 * attached to an Animated.ScrollView component.
10 * @returns A shared value which holds the current offset of the `ScrollView`.
11 * @see https://docs.swmansion.com/react-native-reanimated/docs/scroll/useScrollViewOffset
12 */
13export declare const useScrollViewOffset: typeof useScrollViewOffsetWeb;
14declare function useScrollViewOffsetWeb(animatedRef: AnimatedRef<AnimatedScrollView> | null, providedOffset?: SharedValue<number>): SharedValue<number>;
15export {};
16//# sourceMappingURL=useScrollViewOffset.d.ts.map
\No newline at end of file