UNPKG

react-native-gesture-handler

Version:

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

29 lines (26 loc) 739 B
"use strict"; import { BaseGesture } from './gesture'; export class NativeGesture extends BaseGesture { config = {}; constructor() { super(); this.handlerName = 'NativeViewGestureHandler'; } /** * When true, underlying handler will activate unconditionally when in `BEGAN` or `UNDETERMINED` state. * @param value */ shouldActivateOnStart(value) { this.config.shouldActivateOnStart = value; return this; } /** * When true, cancels all other gesture handlers when this `NativeViewGestureHandler` receives an `ACTIVE` state event. * @param value */ disallowInterruption(value) { this.config.disallowInterruption = value; return this; } } //# sourceMappingURL=nativeGesture.js.map