UNPKG

react-native-gesture-handler

Version:

Experimental implementation of a new declarative API for gesture handling in react-native

12 lines (11 loc) 627 B
import { ContinousBaseGesture } from './gesture'; import { PinchGestureHandlerEventPayload } from '../PinchGestureHandler'; import { GestureUpdateEvent } from '../gestureHandlerCommon'; export declare type PinchGestureChangeEventPayload = { scaleChange: number; }; export declare class PinchGesture extends ContinousBaseGesture<PinchGestureHandlerEventPayload, PinchGestureChangeEventPayload> { constructor(); onChange(callback: (event: GestureUpdateEvent<PinchGestureHandlerEventPayload & PinchGestureChangeEventPayload>) => void): this; } export declare type PinchGestureType = InstanceType<typeof PinchGesture>;