1 | import type { AnimatedRef } from '../hook/commonTypes';
|
2 | import type { Component } from 'react';
|
3 | type ScrollTo = <T extends Component>(animatedRef: AnimatedRef<T>, x: number, y: number, animated: boolean) => void;
|
4 | /**
|
5 | * Lets you synchronously scroll to a given position 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 | * @param x - The x position you want to scroll to.
|
11 | * @param y - The y position you want to scroll to.
|
12 | * @param animated - Whether the scrolling should be smooth or instant.
|
13 | * @see https://docs.swmansion.com/react-native-reanimated/docs/scroll/scrollTo
|
14 | */
|
15 | export declare let scrollTo: ScrollTo;
|
16 | export {};
|
17 | //# sourceMappingURL=scrollTo.d.ts.map |
\ | No newline at end of file |