UNPKG

react-native-gesture-handler

Version:

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

15 lines (14 loc) 645 B
import { BaseGestureConfig, BaseGesture } from './gesture'; import { TapGestureConfig, TapGestureHandlerEventPayload } from '../TapGestureHandler'; export declare class TapGesture extends BaseGesture<TapGestureHandlerEventPayload> { config: BaseGestureConfig & TapGestureConfig; constructor(); minPointers(minPointers: number): this; numberOfTaps(count: number): this; maxDistance(maxDist: number): this; maxDuration(duration: number): this; maxDelay(delay: number): this; maxDeltaX(delta: number): this; maxDeltaY(delta: number): this; } export declare type TapGestureType = InstanceType<typeof TapGesture>;