UNPKG

583 BTypeScriptView Raw
1import * as React from 'react';
2import { View } from 'react-native';
3import type { PanGestureHandlerProperties } from 'react-native-gesture-handler';
4
5const Dummy: any = ({ children }: { children: React.ReactNode }) => (
6 <>{children}</>
7);
8
9export const PanGestureHandler =
10 Dummy as React.ComponentType<PanGestureHandlerProperties>;
11
12export const GestureHandlerRootView = View;
13
14export const GestureState = {
15 UNDETERMINED: 0,
16 FAILED: 1,
17 BEGAN: 2,
18 CANCELLED: 3,
19 ACTIVE: 4,
20 END: 5,
21};
22
23export type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';