react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
34 lines (31 loc) • 873 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NativeGesture = void 0;
var _gesture = require("./gesture");
class NativeGesture extends _gesture.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;
}
}
exports.NativeGesture = NativeGesture;
//# sourceMappingURL=nativeGesture.js.map