UNPKG

react-native-gesture-handler

Version:

Declarative API exposing native platform touch and gesture system to React Native

23 lines (19 loc) 800 B
import { PinchGestureHandlerEventPayload } from './GestureHandlerEventPayload'; import createHandler from './createHandler'; import { BaseGestureHandlerProps, baseGestureHandlerProps, } from './gestureHandlerCommon'; export interface PinchGestureHandlerProps extends BaseGestureHandlerProps<PinchGestureHandlerEventPayload> {} export const pinchHandlerName = 'PinchGestureHandler'; export type PinchGestureHandler = typeof PinchGestureHandler; // eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file export const PinchGestureHandler = createHandler< PinchGestureHandlerProps, PinchGestureHandlerEventPayload >({ name: pinchHandlerName, allowedProps: baseGestureHandlerProps, config: {}, });