UNPKG

1.56 kBTypeScriptView Raw
1/// <reference types="react" />
2import type { NativeViewGestureHandlerPayload } from './GestureHandlerEventPayload';
3import { BaseGestureHandlerProps } from './gestureHandlerCommon';
4export declare const nativeViewGestureHandlerProps: readonly ["shouldActivateOnStart", "disallowInterruption"];
5export interface NativeViewGestureConfig {
6 /**
7 * Android only.
8 *
9 * Determines whether the handler should check for an existing touch event on
10 * instantiation.
11 */
12 shouldActivateOnStart?: boolean;
13 /**
14 * When `true`, cancels all other gesture handlers when this
15 * `NativeViewGestureHandler` receives an `ACTIVE` state event.
16 */
17 disallowInterruption?: boolean;
18}
19export interface NativeViewGestureHandlerProps extends BaseGestureHandlerProps<NativeViewGestureHandlerPayload>, NativeViewGestureConfig {
20}
21export declare const nativeViewProps: readonly ["id", "enabled", "shouldCancelWhenOutside", "hitSlop", "cancelsTouchesInView", "userSelect", "activeCursor", "mouseButton", "enableContextMenu", "touchAction", "waitFor", "simultaneousHandlers", "blocksHandlers", "onBegan", "onFailed", "onCancelled", "onActivated", "onEnded", "onGestureEvent", "onHandlerStateChange", "shouldActivateOnStart", "disallowInterruption"];
22export declare const nativeViewHandlerName = "NativeViewGestureHandler";
23export type NativeViewGestureHandler = typeof NativeViewGestureHandler;
24export declare const NativeViewGestureHandler: import("react").ComponentType<NativeViewGestureHandlerProps & import("react").RefAttributes<any>>;