react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
31 lines (26 loc) • 1.24 kB
text/typescript
import createHandler from './createHandler';
import type { BaseGestureHandlerProps } from './gestureHandlerCommon';
import { baseGestureHandlerProps } from './gestureHandlerCommon';
import type { PinchGestureHandlerEventPayload } from './GestureHandlerEventPayload';
/**
* @deprecated PinchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pinch()` instead.
*/
export interface PinchGestureHandlerProps
extends BaseGestureHandlerProps<PinchGestureHandlerEventPayload> {}
export const pinchHandlerName = 'PinchGestureHandler';
/**
* @deprecated PinchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pinch()` instead.
*/
export type PinchGestureHandler = typeof PinchGestureHandler;
/**
* @deprecated PinchGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Pinch()` instead.
*/
// 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: {},
});