UNPKG

react-native-gesture-handler

Version:

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

41 lines (32 loc) 1.05 kB
import type { BaseGestureConfig, ExcludeInternalConfigProps, GestureEvent, SingleGesture, } from '../../../types'; export type PinchGestureNativeProperties = Record<string, never>; // We want to keep `{}` because it does not break ts-server suggestions // eslint-disable-next-line @typescript-eslint/ban-types export type PinchHandlerData = {}; export type PinchExtendedHandlerData = { scale: number; velocity: number; focalX: number; focalY: number; scaleChange: number; }; export type PinchGestureProperties = PinchGestureNativeProperties; export type PinchGestureInternalConfig = BaseGestureConfig< PinchGestureProperties, PinchHandlerData, PinchExtendedHandlerData >; export type PinchGestureConfig = ExcludeInternalConfigProps<PinchGestureInternalConfig>; export type PinchGestureEvent = GestureEvent<PinchHandlerData>; export type PinchGestureActiveEvent = GestureEvent<PinchExtendedHandlerData>; export type PinchGesture = SingleGesture< PinchGestureProperties, PinchHandlerData, PinchExtendedHandlerData >;