UNPKG

create-expo-cljs-app

Version:

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

28 lines (21 loc) 698 B
import { BaseGestureConfig, BaseGesture } from './gesture'; import { NativeViewGestureConfig, NativeViewGestureHandlerPayload, } from '../NativeViewGestureHandler'; export class NativeGesture extends BaseGesture<NativeViewGestureHandlerPayload> { public config: BaseGestureConfig & NativeViewGestureConfig = {}; constructor() { super(); this.handlerName = 'NativeViewGestureHandler'; } shouldActivateOnStart(value: boolean) { this.config.shouldActivateOnStart = value; return this; } disallowInterruption(value: boolean) { this.config.disallowInterruption = value; return this; } } export type NativeGestureType = InstanceType<typeof NativeGesture>;