mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 12:55:21 +08:00
32 lines
716 B
TypeScript
32 lines
716 B
TypeScript
import * as React from 'react';
|
|
import { View } from 'react-native';
|
|
import type {
|
|
PanGestureHandlerProperties,
|
|
TapGestureHandlerProperties,
|
|
} from 'react-native-gesture-handler';
|
|
|
|
const Dummy: any = ({ children }: { children: React.ReactNode }) => (
|
|
<>{children}</>
|
|
);
|
|
|
|
export const PanGestureHandler = Dummy as React.ComponentType<
|
|
PanGestureHandlerProperties
|
|
>;
|
|
|
|
export const TapGestureHandler = Dummy as React.ComponentType<
|
|
TapGestureHandlerProperties
|
|
>;
|
|
|
|
export const GestureHandlerRootView = View;
|
|
|
|
export const GestureState = {
|
|
UNDETERMINED: 0,
|
|
FAILED: 1,
|
|
BEGAN: 2,
|
|
CANCELLED: 3,
|
|
ACTIVE: 4,
|
|
END: 5,
|
|
};
|
|
|
|
export type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';
|