1 | import type { SharedValue } from '../commonTypes';
|
2 | import type { AnimatedScrollView } from '../component/ScrollView';
|
3 | import 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 | */
|
13 | export declare const useScrollViewOffset: typeof useScrollViewOffsetWeb;
|
14 | declare function useScrollViewOffsetWeb(animatedRef: AnimatedRef<AnimatedScrollView> | null, providedOffset?: SharedValue<number>): SharedValue<number>;
|
15 | export {};
|
16 | //# sourceMappingURL=useScrollViewOffset.d.ts.map |
\ | No newline at end of file |