1 | import * as React from 'react';
|
2 | import type { ScrollView } from 'react-native';
|
3 | type ScrollOptions = {
|
4 | x?: number;
|
5 | y?: number;
|
6 | animated?: boolean;
|
7 | };
|
8 | type ScrollableView = {
|
9 | scrollToTop(): void;
|
10 | } | {
|
11 | scrollTo(options: ScrollOptions): void;
|
12 | } | {
|
13 | scrollToOffset(options: {
|
14 | offset: number;
|
15 | animated?: boolean;
|
16 | }): void;
|
17 | } | {
|
18 | scrollResponderScrollTo(options: ScrollOptions): void;
|
19 | };
|
20 | type ScrollableWrapper = {
|
21 | getScrollResponder(): React.ReactNode | ScrollView;
|
22 | } | {
|
23 | getNode(): ScrollableView;
|
24 | } | ScrollableView;
|
25 | export declare function useScrollToTop(ref: React.RefObject<ScrollableWrapper>): void;
|
26 | export {};
|
27 |
|
\ | No newline at end of file |