UNPKG

854 BTypeScriptView Raw
1import { BaseGestureConfig, BaseGesture } from './gesture';
2import { NativeViewGestureConfig } from '../NativeViewGestureHandler';
3import type { NativeViewGestureHandlerPayload } from '../GestureHandlerEventPayload';
4export declare class NativeGesture extends BaseGesture<NativeViewGestureHandlerPayload> {
5 config: BaseGestureConfig & NativeViewGestureConfig;
6 constructor();
7 /**
8 * When true, underlying handler will activate unconditionally when in `BEGAN` or `UNDETERMINED` state.
9 * @param value
10 */
11 shouldActivateOnStart(value: boolean): this;
12 /**
13 * When true, cancels all other gesture handlers when this `NativeViewGestureHandler` receives an `ACTIVE` state event.
14 * @param value
15 */
16 disallowInterruption(value: boolean): this;
17}
18export type NativeGestureType = InstanceType<typeof NativeGesture>;