UNPKG

623 BTypeScriptView Raw
1import { ContinousBaseGesture } from './gesture';
2import type { PinchGestureHandlerEventPayload } from '../GestureHandlerEventPayload';
3import { GestureUpdateEvent } from '../gestureHandlerCommon';
4export type PinchGestureChangeEventPayload = {
5 scaleChange: number;
6};
7export declare class PinchGesture extends ContinousBaseGesture<PinchGestureHandlerEventPayload, PinchGestureChangeEventPayload> {
8 constructor();
9 onChange(callback: (event: GestureUpdateEvent<PinchGestureHandlerEventPayload & PinchGestureChangeEventPayload>) => void): this;
10}
11export type PinchGestureType = InstanceType<typeof PinchGesture>;