UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

28 lines (21 loc) 681 B
import { BaseGesture, BaseGestureConfig } from './gesture'; import { LongPressGestureConfig, LongPressGestureHandlerEventPayload, } from '../LongPressGestureHandler'; export class LongPressGesture extends BaseGesture<LongPressGestureHandlerEventPayload> { public config: BaseGestureConfig & LongPressGestureConfig = {}; constructor() { super(); this.handlerName = 'LongPressGestureHandler'; } minDuration(duration: number) { this.config.minDurationMs = duration; return this; } maxDistance(distance: number) { this.config.maxDist = distance; return this; } } export type LongPressGestureType = InstanceType<typeof LongPressGesture>;