react-native-gesture-handler
Version:
Experimental implementation of a new declarative API for gesture handling in react-native
10 lines (9 loc) • 504 B
TypeScript
import { BaseGesture, BaseGestureConfig } from './gesture';
import { LongPressGestureConfig, LongPressGestureHandlerEventPayload } from '../LongPressGestureHandler';
export declare class LongPressGesture extends BaseGesture<LongPressGestureHandlerEventPayload> {
config: BaseGestureConfig & LongPressGestureConfig;
constructor();
minDuration(duration: number): this;
maxDistance(distance: number): this;
}
export declare type LongPressGestureType = InstanceType<typeof LongPressGesture>;