1 | import type { Animated } from 'react-native';
|
2 | import type { PagerViewProps } from 'react-native-pager-view';
|
3 | export type Route = {
|
4 | key: string;
|
5 | icon?: string;
|
6 | title?: string;
|
7 | accessible?: boolean;
|
8 | accessibilityLabel?: string;
|
9 | testID?: string;
|
10 | };
|
11 | export type Event = {
|
12 | defaultPrevented: boolean;
|
13 | preventDefault(): void;
|
14 | };
|
15 | export type Scene<T extends Route> = {
|
16 | route: T;
|
17 | };
|
18 | export type NavigationState<T extends Route> = {
|
19 | index: number;
|
20 | routes: T[];
|
21 | };
|
22 | export type Layout = {
|
23 | width: number;
|
24 | height: number;
|
25 | };
|
26 | export type Listener = (value: number) => void;
|
27 | export type SceneRendererProps = {
|
28 | layout: Layout;
|
29 | position: Animated.AnimatedInterpolation<number>;
|
30 | jumpTo: (key: string) => void;
|
31 | };
|
32 | export type EventEmitterProps = {
|
33 | addEnterListener: (listener: Listener) => () => void;
|
34 | };
|
35 | export type PagerProps = Omit<PagerViewProps, 'initialPage' | 'scrollEnabled' | 'onPageScroll' | 'onPageSelected' | 'onPageScrollStateChanged' | 'keyboardDismissMode' | 'children'> & {
|
36 | keyboardDismissMode?: 'none' | 'on-drag' | 'auto';
|
37 | swipeEnabled?: boolean;
|
38 | animationEnabled?: boolean;
|
39 | onSwipeStart?: () => void;
|
40 | onSwipeEnd?: () => void;
|
41 | };
|
42 |
|
\ | No newline at end of file |