UNPKG

react-native-gesture-handler

Version:

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

33 lines 1.54 kB
import type { LongPressGestureHandlerEventPayload } from '../GestureHandlerEventPayload'; import type { LongPressGestureConfig } from '../LongPressGestureHandler'; import type { BaseGestureConfig } from './gesture'; import { BaseGesture } from './gesture'; /** * @deprecated `LongPressGesture` is deprecated and will be removed in the future. Please use `useLongPressGesture` instead. */ export declare class LongPressGesture extends BaseGesture<LongPressGestureHandlerEventPayload> { config: BaseGestureConfig & LongPressGestureConfig; constructor(); /** * Minimum time, expressed in milliseconds, that a finger must remain pressed on the corresponding view. * The default value is 500. * @param duration */ minDuration(duration: number): this; /** * Maximum distance, expressed in points, that defines how far the finger is allowed to travel during a long press gesture. * @param distance * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/long-press-gesture#maxdistancevalue-number */ maxDistance(distance: number): this; /** * Determine exact number of points required to handle the long press gesture. * @param pointers */ numberOfPointers(pointers: number): this; } /** * @deprecated `LongPressGestureType` is deprecated and will be removed in the future. Please use `LongPressGesture` instead. */ export type LongPressGestureType = InstanceType<typeof LongPressGesture>; //# sourceMappingURL=longPressGesture.d.ts.map