@react-native-oh-tpl/react-native-gesture-handler 2.12.6-2 → 2.12.9-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/harmony/gesture_handler/BuildProfile.ets +6 -0
- package/harmony/gesture_handler/build-profile.json5 +13 -2
- package/harmony/gesture_handler/hvigorfile.ts +1 -1
- package/harmony/gesture_handler/index.ets +1 -1
- package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
- package/harmony/gesture_handler/oh-package.json5 +10 -11
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +75 -6
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +14 -8
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +4 -28
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentInstance.h +27 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +32 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +17 -12
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +5 -2
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerPackage.h +72 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +4 -28
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentInstance.h +123 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +25 -0
- package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +16 -1
- package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +2 -2
- package/harmony/gesture_handler/src/main/ets/{GestureHandlerArkUIAdapter.ets → GestureHandlerArkUIAdapter.ts} +2 -1
- package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +2 -2
- package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +5 -5
- package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +20 -1
- package/harmony/gesture_handler/src/main/ets/{RNGHRootTouchHandler.ets → RNGHRootTouchHandlerArkTS.ts} +5 -3
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerCAPI.ts +87 -0
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +4 -3
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +65 -7
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +7 -11
- package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +17 -5
- package/harmony/gesture_handler/src/main/ets/View.ts +1 -1
- package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +1 -1
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerButton.ts +140 -0
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +25 -0
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerRootView.ts +101 -0
- package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +3 -0
- package/harmony/gesture_handler/src/main/ets/types.ts +25 -0
- package/harmony/gesture_handler/src/main/module.json5 +6 -6
- package/harmony/gesture_handler/ts.ts +2 -1
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js +6 -3
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +5 -13
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
- package/lib/commonjs/handlers/createHandler.js +31 -28
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/index.js +42 -19
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +10 -0
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +11 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +11 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/module/RNGestureHandlerModule.js +3 -2
- package/lib/module/RNGestureHandlerModule.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js +3 -11
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/handlers/createHandler.js +20 -19
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/index.js +6 -14
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js +3 -0
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/typescript/RNGestureHandlerModule.d.ts +2 -6
- package/lib/typescript/RNGestureHandlerModule.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
- package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -1
- package/lib/typescript/handlers/createHandler.d.ts +11 -11
- package/lib/typescript/handlers/createHandler.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +9 -8
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +15 -0
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -0
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +15 -0
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +7 -0
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -0
- package/package.json +9 -13
- package/src/RNGestureHandlerModule.ts +3 -4
- package/src/components/GestureHandlerRootView.tsx +4 -15
- package/src/handlers/createHandler.tsx +4 -5
- package/src/index.ts +13 -13
- package/src/specs/NativeRNGestureHandlerModule.ts +26 -0
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -0
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -0
- package/README.md +0 -1
- package/harmony/gesture_handler/LICENSE +0 -21
- package/harmony/gesture_handler/OAT.xml +0 -44
- package/harmony/gesture_handler/README.OpenSource +0 -11
- package/harmony/gesture_handler/README.md +0 -1
- package/lib/commonjs/components/GestureButtons.js +0 -186
- package/lib/commonjs/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.js +0 -9
- package/lib/commonjs/components/GestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/RNGestureHandlerButton.js +0 -23
- package/lib/commonjs/components/RNGestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchable.js +0 -247
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableOpacity.js +0 -58
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +0 -18
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/index.js +0 -21
- package/lib/commonjs/components/touchables/index.js.map +0 -1
- package/lib/commonjs/handlers/NativeViewGestureHandler.js +0 -19
- package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PanGestureHandler.js +0 -103
- package/lib/commonjs/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/TapGestureHandler.js +0 -22
- package/lib/commonjs/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/createNativeWrapper.js +0 -64
- package/lib/commonjs/handlers/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerCommon.js +0 -22
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector.js +0 -554
- package/lib/commonjs/handlers/gestures/GestureDetector.js.map +0 -1
- package/lib/commonjs/init.js +0 -24
- package/lib/commonjs/init.js.map +0 -1
- package/lib/module/components/GestureButtons.js +0 -168
- package/lib/module/components/GestureButtons.js.map +0 -1
- package/lib/module/components/GestureHandlerButton.js +0 -3
- package/lib/module/components/GestureHandlerButton.js.map +0 -1
- package/lib/module/components/RNGestureHandlerButton.js +0 -17
- package/lib/module/components/RNGestureHandlerButton.js.map +0 -1
- package/lib/module/components/touchables/GenericTouchable.js +0 -238
- package/lib/module/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/module/components/touchables/TouchableOpacity.js +0 -49
- package/lib/module/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +0 -9
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/module/components/touchables/index.js +0 -8
- package/lib/module/components/touchables/index.js.map +0 -1
- package/lib/module/handlers/NativeViewGestureHandler.js +0 -12
- package/lib/module/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/module/handlers/PanGestureHandler.js +0 -92
- package/lib/module/handlers/PanGestureHandler.js.map +0 -1
- package/lib/module/handlers/TapGestureHandler.js +0 -14
- package/lib/module/handlers/TapGestureHandler.js.map +0 -1
- package/lib/module/handlers/createNativeWrapper.js +0 -57
- package/lib/module/handlers/createNativeWrapper.js.map +0 -1
- package/lib/module/handlers/gestureHandlerCommon.js +0 -15
- package/lib/module/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector.js +0 -543
- package/lib/module/handlers/gestures/GestureDetector.js.map +0 -1
- package/lib/module/init.js +0 -17
- package/lib/module/init.js.map +0 -1
- package/lib/typescript/components/GestureButtons.d.ts +0 -122
- package/lib/typescript/components/GestureButtons.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerButton.d.ts +0 -5
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +0 -1
- package/lib/typescript/components/RNGestureHandlerButton.d.ts +0 -2
- package/lib/typescript/components/RNGestureHandlerButton.d.ts.map +0 -1
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +0 -68
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +0 -26
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +0 -8
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +0 -1
- package/lib/typescript/components/touchables/index.d.ts +0 -4
- package/lib/typescript/components/touchables/index.d.ts.map +0 -1
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +0 -29
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts +0 -140
- package/lib/typescript/handlers/PanGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts +0 -58
- package/lib/typescript/handlers/TapGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/createNativeWrapper.d.ts +0 -4
- package/lib/typescript/handlers/createNativeWrapper.d.ts.map +0 -1
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +0 -2
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts +0 -24
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts.map +0 -1
- package/lib/typescript/init.d.ts +0 -3
- package/lib/typescript/init.d.ts.map +0 -1
- package/src/components/GestureButtons.tsx +0 -334
- package/src/components/GestureHandlerButton.tsx +0 -5
- package/src/components/RNGestureHandlerButton.tsx +0 -23
- package/src/components/touchables/GenericTouchable.tsx +0 -301
- package/src/components/touchables/TouchableOpacity.tsx +0 -76
- package/src/components/touchables/TouchableWithoutFeedback.tsx +0 -14
- package/src/components/touchables/index.ts +0 -7
- package/src/handlers/NativeViewGestureHandler.ts +0 -55
- package/src/handlers/PanGestureHandler.ts +0 -327
- package/src/handlers/TapGestureHandler.ts +0 -95
- package/src/handlers/createNativeWrapper.tsx +0 -81
- package/src/handlers/gestureHandlerCommon.ts +0 -15
- package/src/handlers/gestures/GestureDetector.tsx +0 -823
- package/src/init.ts +0 -18
@@ -1,122 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
3
|
-
import { NativeViewGestureHandlerProps } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
4
|
-
export interface RawButtonProps extends NativeViewGestureHandlerProps {
|
5
|
-
/**
|
6
|
-
* Defines if more than one button could be pressed simultaneously. By default
|
7
|
-
* set true.
|
8
|
-
*/
|
9
|
-
exclusive?: boolean;
|
10
|
-
/**
|
11
|
-
* Android only.
|
12
|
-
*
|
13
|
-
* Defines color of native ripple animation used since API level 21.
|
14
|
-
*/
|
15
|
-
rippleColor?: any;
|
16
|
-
/**
|
17
|
-
* Android only.
|
18
|
-
*
|
19
|
-
* Defines radius of native ripple animation used since API level 21.
|
20
|
-
*/
|
21
|
-
rippleRadius?: number | null;
|
22
|
-
/**
|
23
|
-
* Android only.
|
24
|
-
*
|
25
|
-
* Set this to true if you want the ripple animation to render outside the view bounds.
|
26
|
-
*/
|
27
|
-
borderless?: boolean;
|
28
|
-
/**
|
29
|
-
* Android only.
|
30
|
-
*
|
31
|
-
* Defines whether the ripple animation should be drawn on the foreground of the view.
|
32
|
-
*/
|
33
|
-
foreground?: boolean;
|
34
|
-
/**
|
35
|
-
* Android only.
|
36
|
-
*
|
37
|
-
* Set this to true if you don't want the system to play sound when the button is pressed.
|
38
|
-
*/
|
39
|
-
touchSoundDisabled?: boolean;
|
40
|
-
}
|
41
|
-
export interface BaseButtonProps extends RawButtonProps {
|
42
|
-
/**
|
43
|
-
* Called when the button gets pressed (analogous to `onPress` in
|
44
|
-
* `TouchableHighlight` from RN core).
|
45
|
-
*/
|
46
|
-
onPress?: (pointerInside: boolean) => void;
|
47
|
-
/**
|
48
|
-
* Called when the button gets pressed and is held for `delayLongPress`
|
49
|
-
* milliseconds.
|
50
|
-
*/
|
51
|
-
onLongPress?: () => void;
|
52
|
-
/**
|
53
|
-
* Called when button changes from inactive to active and vice versa. It
|
54
|
-
* passes active state as a boolean variable as a first parameter for that
|
55
|
-
* method.
|
56
|
-
*/
|
57
|
-
onActiveStateChange?: (active: boolean) => void;
|
58
|
-
style?: StyleProp<ViewStyle>;
|
59
|
-
testID?: string;
|
60
|
-
/**
|
61
|
-
* Delay, in milliseconds, after which the `onLongPress` callback gets called.
|
62
|
-
* Defaults to 600.
|
63
|
-
*/
|
64
|
-
delayLongPress?: number;
|
65
|
-
}
|
66
|
-
export interface RectButtonProps extends BaseButtonProps {
|
67
|
-
/**
|
68
|
-
* Background color that will be dimmed when button is in active state.
|
69
|
-
*/
|
70
|
-
underlayColor?: string;
|
71
|
-
/**
|
72
|
-
* iOS only.
|
73
|
-
*
|
74
|
-
* Opacity applied to the underlay when button is in active state.
|
75
|
-
*/
|
76
|
-
activeOpacity?: number;
|
77
|
-
}
|
78
|
-
export interface BorderlessButtonProps extends BaseButtonProps {
|
79
|
-
/**
|
80
|
-
* iOS only.
|
81
|
-
*
|
82
|
-
* Opacity applied to the button when it is in an active state.
|
83
|
-
*/
|
84
|
-
activeOpacity?: number;
|
85
|
-
}
|
86
|
-
export declare const RawButton: React.ForwardRefExoticComponent<import("react-native-gesture-handler/src/components/GestureButtons").RawButtonProps & import("../handlers/NativeViewGestureHandler").NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
|
87
|
-
export declare class BaseButton extends React.Component<BaseButtonProps> {
|
88
|
-
static defaultProps: {
|
89
|
-
delayLongPress: number;
|
90
|
-
};
|
91
|
-
private lastActive;
|
92
|
-
private longPressTimeout;
|
93
|
-
private longPressDetected;
|
94
|
-
constructor(props: BaseButtonProps);
|
95
|
-
private handleEvent;
|
96
|
-
private onLongPress;
|
97
|
-
private onHandlerStateChange;
|
98
|
-
private onGestureEvent;
|
99
|
-
render(): React.JSX.Element;
|
100
|
-
}
|
101
|
-
export declare class RectButton extends React.Component<RectButtonProps> {
|
102
|
-
static defaultProps: {
|
103
|
-
activeOpacity: number;
|
104
|
-
underlayColor: string;
|
105
|
-
};
|
106
|
-
private opacity;
|
107
|
-
constructor(props: RectButtonProps);
|
108
|
-
private onActiveStateChange;
|
109
|
-
render(): React.JSX.Element;
|
110
|
-
}
|
111
|
-
export declare class BorderlessButton extends React.Component<BorderlessButtonProps> {
|
112
|
-
static defaultProps: {
|
113
|
-
activeOpacity: number;
|
114
|
-
borderless: boolean;
|
115
|
-
};
|
116
|
-
private opacity;
|
117
|
-
constructor(props: BorderlessButtonProps);
|
118
|
-
private onActiveStateChange;
|
119
|
-
render(): React.JSX.Element;
|
120
|
-
}
|
121
|
-
export { default as PureNativeButton } from './GestureHandlerButton';
|
122
|
-
//# sourceMappingURL=GestureButtons.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GestureButtons.d.ts","sourceRoot":"","sources":["../../../src/components/GestureButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAUtB,OAAO,EAEL,6BAA6B,EAC9B,MAAM,oEAAoE,CAAC;AAE5E,MAAM,WAAW,cAAe,SAAQ,6BAA6B;IACnE;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAElB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OA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AC,OAAO,CAAiB;gBAEpB,KAAK,EAAE,eAAe;IAKlC,OAAO,CAAC,mBAAmB,CAMzB;IAEF,MAAM;CA6BP;AAED,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC;IAC1E,MAAM,CAAC,YAAY;;;MAGjB;IAEF,OAAO,CAAC,OAAO,CAAiB;gBAEpB,KAAK,EAAE,qBAAqB;IAKxC,OAAO,CAAC,mBAAmB,CAMzB;IAEF,MAAM;CAaP;AAED,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { HostComponent } from 'react-native';
|
2
|
-
import { RawButtonProps } from 'react-native-gesture-handler/src/components/GestureButtons';
|
3
|
-
declare const _default: HostComponent<RawButtonProps>;
|
4
|
-
export default _default;
|
5
|
-
//# sourceMappingURL=GestureHandlerButton.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GestureHandlerButton.d.ts","sourceRoot":"","sources":["../../../src/components/GestureHandlerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAC;;AAG5F,wBAAuE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RNGestureHandlerButton.d.ts","sourceRoot":"","sources":["../../../src/components/RNGestureHandlerButton.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,KAiBlC,CAAC"}
|
@@ -1,68 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { Component } from 'react';
|
3
|
-
import { StyleProp, ViewStyle, TouchableWithoutFeedbackProps, Insets } from 'react-native';
|
4
|
-
import { GestureEvent, HandlerStateChangeEvent } from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
5
|
-
import { NativeViewGestureHandlerPayload } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
6
|
-
/**
|
7
|
-
* Each touchable is a states' machine which preforms transitions.
|
8
|
-
* On very beginning (and on the very end or recognition) touchable is
|
9
|
-
* UNDETERMINED. Then it moves to BEGAN. If touchable recognizes that finger
|
10
|
-
* travel outside it transits to special MOVED_OUTSIDE state. Gesture recognition
|
11
|
-
* finishes in UNDETERMINED state.
|
12
|
-
*/
|
13
|
-
export declare const TOUCHABLE_STATE: {
|
14
|
-
readonly UNDETERMINED: 0;
|
15
|
-
readonly BEGAN: 1;
|
16
|
-
readonly MOVED_OUTSIDE: 2;
|
17
|
-
};
|
18
|
-
declare type TouchableState = (typeof TOUCHABLE_STATE)[keyof typeof TOUCHABLE_STATE];
|
19
|
-
export interface GenericTouchableProps extends Omit<TouchableWithoutFeedbackProps, 'hitSlop'> {
|
20
|
-
onPress?: () => void;
|
21
|
-
onPressIn?: () => void;
|
22
|
-
onPressOut?: () => void;
|
23
|
-
onLongPress?: () => void;
|
24
|
-
nativeID?: string;
|
25
|
-
shouldActivateOnStart?: boolean;
|
26
|
-
disallowInterruption?: boolean;
|
27
|
-
containerStyle?: StyleProp<ViewStyle>;
|
28
|
-
hitSlop?: Insets | number;
|
29
|
-
}
|
30
|
-
interface InternalProps {
|
31
|
-
extraButtonProps: any;
|
32
|
-
onStateChange?: (oldState: TouchableState, newState: TouchableState) => void;
|
33
|
-
}
|
34
|
-
declare type Timeout = ReturnType<typeof setTimeout> | null | undefined;
|
35
|
-
/**
|
36
|
-
* GenericTouchable is not intented to be used as it is.
|
37
|
-
* Should be treated as a source for the rest of touchables
|
38
|
-
*/
|
39
|
-
export default class GenericTouchable extends Component<GenericTouchableProps & InternalProps> {
|
40
|
-
static defaultProps: {
|
41
|
-
delayLongPress: number;
|
42
|
-
extraButtonProps: {
|
43
|
-
rippleColor: string;
|
44
|
-
exclusive: boolean;
|
45
|
-
};
|
46
|
-
};
|
47
|
-
pressInTimeout: Timeout;
|
48
|
-
pressOutTimeout: Timeout;
|
49
|
-
longPressTimeout: Timeout;
|
50
|
-
longPressDetected: boolean;
|
51
|
-
pointerInside: boolean;
|
52
|
-
STATE: TouchableState;
|
53
|
-
handlePressIn(): void;
|
54
|
-
handleMoveOutside(): void;
|
55
|
-
handleGoToUndetermined(): void;
|
56
|
-
componentDidMount(): void;
|
57
|
-
reset(): void;
|
58
|
-
moveToState(newState: TouchableState): void;
|
59
|
-
onGestureEvent: ({ nativeEvent: { pointerInside }, }: GestureEvent<NativeViewGestureHandlerPayload>) => void;
|
60
|
-
onHandlerStateChange: ({ nativeEvent, }: HandlerStateChangeEvent<NativeViewGestureHandlerPayload>) => void;
|
61
|
-
onLongPressDetected: () => void;
|
62
|
-
componentWillUnmount(): void;
|
63
|
-
onMoveIn(): void;
|
64
|
-
onMoveOut(): void;
|
65
|
-
render(): React.JSX.Element;
|
66
|
-
}
|
67
|
-
export {};
|
68
|
-
//# sourceMappingURL=GenericTouchable.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GenericTouchable.d.ts","sourceRoot":"","sources":["../../../../src/components/touchables/GenericTouchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAGL,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,MAAM,EACP,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,YAAY,EACZ,uBAAuB,EACxB,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AAErH;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,aAAK,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAE7E,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,6BAA6B,EAAE,SAAS,CAAC;IAKtD,OAAO,CAAC,EA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|
1
|
-
import { Animated, TouchableOpacityProps as RNTouchableOpacityProps } from 'react-native';
|
2
|
-
import { GenericTouchableProps } from './GenericTouchable';
|
3
|
-
import * as React from 'react';
|
4
|
-
import { Component } from 'react';
|
5
|
-
export declare type TouchableOpacityProps = RNTouchableOpacityProps & GenericTouchableProps & {
|
6
|
-
useNativeAnimations?: boolean;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* TouchableOpacity bases on timing animation which has been used in RN's core
|
10
|
-
*/
|
11
|
-
export default class TouchableOpacity extends Component<TouchableOpacityProps> {
|
12
|
-
static defaultProps: {
|
13
|
-
activeOpacity: number;
|
14
|
-
delayLongPress: number;
|
15
|
-
extraButtonProps: {
|
16
|
-
rippleColor: string;
|
17
|
-
exclusive: boolean;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
getChildStyleOpacityWithDefault: () => number;
|
21
|
-
opacity: Animated.Value;
|
22
|
-
setOpacityTo: (value: number, duration: number) => void;
|
23
|
-
onStateChange: (_from: number, to: number) => void;
|
24
|
-
render(): React.JSX.Element;
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=TouchableOpacity.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TouchableOpacity.d.ts","sourceRoot":"","sources":["../../../../src/components/touchables/TouchableOpacity.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAIR,qBAAqB,IAAI,uBAAuB,EACjD,MAAM,cAAc,CAAC;AACtB,OAAyB,EAEvB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,oBAAY,qBAAqB,GAAG,uBAAuB,GACzD,qBAAqB,GAAG;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEJ;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IAC5E,MAAM,CAAC,YAAY;;;;;;;MAGjB;IAGF,+BAA+B,eAK7B;IAEF,OAAO,iBAA8D;IAErE,YAAY,UAAW,MAAM,YAAY,MAAM,UAO7C;IAEF,aAAa,UAAW,MAAM,MAAM,MAAM,UASxC;IAEF,MAAM;CAiBP"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import GenericTouchable, { GenericTouchableProps } from './GenericTouchable';
|
3
|
-
export declare type TouchableWithoutFeedbackProps = GenericTouchable;
|
4
|
-
declare const TouchableWithoutFeedback: React.ForwardRefExoticComponent<GenericTouchableProps & {
|
5
|
-
children?: React.ReactNode;
|
6
|
-
} & React.RefAttributes<GenericTouchable>>;
|
7
|
-
export default TouchableWithoutFeedback;
|
8
|
-
//# sourceMappingURL=TouchableWithoutFeedback.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TouchableWithoutFeedback.d.ts","sourceRoot":"","sources":["../../../../src/components/touchables/TouchableWithoutFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,gBAAgB,EAAE,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,oBAAY,6BAA6B,GAAG,gBAAgB,CAAC;AAE7D,QAAA,MAAM,wBAAwB;;0CAG8B,CAAC;AAI7D,eAAe,wBAAwB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/touchables/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGhE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { BaseGestureHandlerProps } from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
2
|
-
export declare const nativeViewGestureHandlerProps: readonly ["shouldActivateOnStart", "disallowInterruption"];
|
3
|
-
export interface NativeViewGestureConfig {
|
4
|
-
/**
|
5
|
-
* Android only.
|
6
|
-
*
|
7
|
-
* Determines whether the handler should check for an existing touch event on
|
8
|
-
* instantiation.
|
9
|
-
*/
|
10
|
-
shouldActivateOnStart?: boolean;
|
11
|
-
/**
|
12
|
-
* When `true`, cancels all other gesture handlers when this
|
13
|
-
* `NativeViewGestureHandler` receives an `ACTIVE` state event.
|
14
|
-
*/
|
15
|
-
disallowInterruption?: boolean;
|
16
|
-
}
|
17
|
-
export interface NativeViewGestureHandlerProps extends BaseGestureHandlerProps<NativeViewGestureHandlerPayload>, NativeViewGestureConfig {
|
18
|
-
}
|
19
|
-
export declare type NativeViewGestureHandlerPayload = {
|
20
|
-
/**
|
21
|
-
* True if gesture was performed inside of containing view, false otherwise.
|
22
|
-
*/
|
23
|
-
pointerInside: boolean;
|
24
|
-
};
|
25
|
-
export declare const nativeViewProps: readonly ["id", "enabled", "shouldCancelWhenOutside", "hitSlop", "cancelsTouchesInView", "userSelect", "activeCursor", "waitFor", "simultaneousHandlers", "onBegan", "onFailed", "onCancelled", "onActivated", "onEnded", "onGestureEvent", "onHandlerStateChange", "shouldActivateOnStart", "disallowInterruption"];
|
26
|
-
export declare const nativeViewHandlerName = "NativeViewGestureHandler";
|
27
|
-
export declare type NativeViewGestureHandler = typeof NativeViewGestureHandler;
|
28
|
-
export declare const NativeViewGestureHandler: import("react").ComponentType<NativeViewGestureHandlerProps & import("react").RefAttributes<any>>;
|
29
|
-
//# sourceMappingURL=NativeViewGestureHandler.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"NativeViewGestureHandler.d.ts","sourceRoot":"","sources":["../../../src/handlers/NativeViewGestureHandler.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EAExB,MAAM,gEAAgE,CAAC;AAExE,eAAO,MAAM,6BAA6B,4DAGhC,CAAC;AAEX,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,6BACf,SAAQ,uBAAuB,CAAC,+BAA+B,CAAC,EAC9D,uBAAuB;CAAG;AAE9B,oBAAY,+BAA+B,GAAG;IAC5C;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,eAAe,sTAGlB,CAAC;AAEX,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAEhE,oBAAY,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;AAEvE,eAAO,MAAM,wBAAwB,mGAOnC,CAAC"}
|
@@ -1,140 +0,0 @@
|
|
1
|
-
import { BaseGestureHandlerProps } from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
2
|
-
export declare const panGestureHandlerProps: readonly ["activeOffsetY", "activeOffsetX", "failOffsetY", "failOffsetX", "minDist", "minVelocity", "minVelocityX", "minVelocityY", "minPointers", "maxPointers", "avgTouches", "enableTrackpadTwoFingerGesture", "activateAfterLongPress"];
|
3
|
-
export declare const panGestureHandlerCustomNativeProps: readonly ["activeOffsetYStart", "activeOffsetYEnd", "activeOffsetXStart", "activeOffsetXEnd", "failOffsetYStart", "failOffsetYEnd", "failOffsetXStart", "failOffsetXEnd"];
|
4
|
-
export declare type PanGestureHandlerEventPayload = {
|
5
|
-
/**
|
6
|
-
* X coordinate of the current position of the pointer (finger or a leading
|
7
|
-
* pointer when there are multiple fingers placed) relative to the view
|
8
|
-
* attached to the handler. Expressed in point units.
|
9
|
-
*/
|
10
|
-
x: number;
|
11
|
-
/**
|
12
|
-
* Y coordinate of the current position of the pointer (finger or a leading
|
13
|
-
* pointer when there are multiple fingers placed) relative to the view
|
14
|
-
* attached to the handler. Expressed in point units.
|
15
|
-
*/
|
16
|
-
y: number;
|
17
|
-
/**
|
18
|
-
* X coordinate of the current position of the pointer (finger or a leading
|
19
|
-
* pointer when there are multiple fingers placed) relative to the window.
|
20
|
-
* The value is expressed in point units. It is recommended to use it instead
|
21
|
-
* of `x` in cases when the original view can be transformed as an effect of
|
22
|
-
* the gesture.
|
23
|
-
*/
|
24
|
-
absoluteX: number;
|
25
|
-
/**
|
26
|
-
* Y coordinate of the current position of the pointer (finger or a leading
|
27
|
-
* pointer when there are multiple fingers placed) relative to the window.
|
28
|
-
* The value is expressed in point units. It is recommended to use it instead
|
29
|
-
* of `y` in cases when the original view can be transformed as an
|
30
|
-
* effect of the gesture.
|
31
|
-
*/
|
32
|
-
absoluteY: number;
|
33
|
-
/**
|
34
|
-
* Translation of the pan gesture along X axis accumulated over the time of
|
35
|
-
* the gesture. The value is expressed in the point units.
|
36
|
-
*/
|
37
|
-
translationX: number;
|
38
|
-
/**
|
39
|
-
* Translation of the pan gesture along Y axis accumulated over the time of
|
40
|
-
* the gesture. The value is expressed in the point units.
|
41
|
-
*/
|
42
|
-
translationY: number;
|
43
|
-
/**
|
44
|
-
* Velocity of the pan gesture along the X axis in the current moment. The
|
45
|
-
* value is expressed in point units per second.
|
46
|
-
*/
|
47
|
-
velocityX: number;
|
48
|
-
/**
|
49
|
-
* Velocity of the pan gesture along the Y axis in the current moment. The
|
50
|
-
* value is expressed in point units per second.
|
51
|
-
*/
|
52
|
-
velocityY: number;
|
53
|
-
};
|
54
|
-
interface CommonPanProperties {
|
55
|
-
/**
|
56
|
-
* Minimum distance the finger (or multiple finger) need to travel before the
|
57
|
-
* handler activates. Expressed in points.
|
58
|
-
*/
|
59
|
-
minDist?: number;
|
60
|
-
/**
|
61
|
-
* Android only.
|
62
|
-
*/
|
63
|
-
avgTouches?: boolean;
|
64
|
-
/**
|
65
|
-
* Enables two-finger gestures on supported devices, for example iPads with
|
66
|
-
* trackpads. If not enabled the gesture will require click + drag, with
|
67
|
-
* enableTrackpadTwoFingerGesture swiping with two fingers will also trigger
|
68
|
-
* the gesture.
|
69
|
-
*/
|
70
|
-
enableTrackpadTwoFingerGesture?: boolean;
|
71
|
-
/**
|
72
|
-
* A number of fingers that is required to be placed before handler can
|
73
|
-
* activate. Should be a higher or equal to 0 integer.
|
74
|
-
*/
|
75
|
-
minPointers?: number;
|
76
|
-
/**
|
77
|
-
* When the given number of fingers is placed on the screen and handler hasn't
|
78
|
-
* yet activated it will fail recognizing the gesture. Should be a higher or
|
79
|
-
* equal to 0 integer.
|
80
|
-
*/
|
81
|
-
maxPointers?: number;
|
82
|
-
minVelocity?: number;
|
83
|
-
minVelocityX?: number;
|
84
|
-
minVelocityY?: number;
|
85
|
-
activateAfterLongPress?: number;
|
86
|
-
}
|
87
|
-
export interface PanGestureConfig extends CommonPanProperties {
|
88
|
-
activeOffsetYStart?: number;
|
89
|
-
activeOffsetYEnd?: number;
|
90
|
-
activeOffsetXStart?: number;
|
91
|
-
activeOffsetXEnd?: number;
|
92
|
-
failOffsetYStart?: number;
|
93
|
-
failOffsetYEnd?: number;
|
94
|
-
failOffsetXStart?: number;
|
95
|
-
failOffsetXEnd?: number;
|
96
|
-
}
|
97
|
-
export interface PanGestureHandlerProps extends BaseGestureHandlerProps<PanGestureHandlerEventPayload>, CommonPanProperties {
|
98
|
-
/**
|
99
|
-
* Range along X axis (in points) where fingers travels without activation of
|
100
|
-
* handler. Moving outside of this range implies activation of handler. Range
|
101
|
-
* can be given as an array or a single number. If range is set as an array,
|
102
|
-
* first value must be lower or equal to 0, a the second one higher or equal
|
103
|
-
* to 0. If only one number `p` is given a range of `(-inf, p)` will be used
|
104
|
-
* if `p` is higher or equal to 0 and `(-p, inf)` otherwise.
|
105
|
-
*/
|
106
|
-
activeOffsetY?: number | number[];
|
107
|
-
/**
|
108
|
-
* Range along X axis (in points) where fingers travels without activation of
|
109
|
-
* handler. Moving outside of this range implies activation of handler. Range
|
110
|
-
* can be given as an array or a single number. If range is set as an array,
|
111
|
-
* first value must be lower or equal to 0, a the second one higher or equal
|
112
|
-
* to 0. If only one number `p` is given a range of `(-inf, p)` will be used
|
113
|
-
* if `p` is higher or equal to 0 and `(-p, inf)` otherwise.
|
114
|
-
*/
|
115
|
-
activeOffsetX?: number | number[];
|
116
|
-
/**
|
117
|
-
* When the finger moves outside this range (in points) along Y axis and
|
118
|
-
* handler hasn't yet activated it will fail recognizing the gesture. Range
|
119
|
-
* can be given as an array or a single number. If range is set as an array,
|
120
|
-
* first value must be lower or equal to 0, a the second one higher or equal
|
121
|
-
* to 0. If only one number `p` is given a range of `(-inf, p)` will be used
|
122
|
-
* if `p` is higher or equal to 0 and `(-p, inf)` otherwise.
|
123
|
-
*/
|
124
|
-
failOffsetY?: number | number[];
|
125
|
-
/**
|
126
|
-
* When the finger moves outside this range (in points) along X axis and
|
127
|
-
* handler hasn't yet activated it will fail recognizing the gesture. Range
|
128
|
-
* can be given as an array or a single number. If range is set as an array,
|
129
|
-
* first value must be lower or equal to 0, a the second one higher or equal
|
130
|
-
* to 0. If only one number `p` is given a range of `(-inf, p)` will be used
|
131
|
-
* if `p` is higher or equal to 0 and `(-p, inf)` otherwise.
|
132
|
-
*/
|
133
|
-
failOffsetX?: number | number[];
|
134
|
-
}
|
135
|
-
export declare const panHandlerName = "PanGestureHandler";
|
136
|
-
export declare type PanGestureHandler = typeof PanGestureHandler;
|
137
|
-
export declare const PanGestureHandler: import("react").ComponentType<PanGestureHandlerProps & import("react").RefAttributes<any>>;
|
138
|
-
export declare function managePanProps(props: PanGestureHandlerProps): PanGestureHandlerProps & Partial<Record<"failOffsetXStart" | "failOffsetYStart" | "failOffsetXEnd" | "failOffsetYEnd" | "activeOffsetXStart" | "activeOffsetXEnd" | "activeOffsetYStart" | "activeOffsetYEnd", number>>;
|
139
|
-
export {};
|
140
|
-
//# sourceMappingURL=PanGestureHandler.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PanGestureHandler.d.ts","sourceRoot":"","sources":["../../../src/hand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1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,sBACf,SAAQ,uBAAuB,CAAC,6BAA6B,CAAC,EAC5D,mBAAmB;IACrB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAElC;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAElC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEhC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACjC;AAED,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAElD,oBAAY,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AAEzD,eAAO,MAAM,iBAAiB,4FAY5B,CAAC;AAsHH,wBAAgB,cAAc,CAAC,KAAK,EAAE,sBAAsB,2NAK3D"}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import { BaseGestureHandlerProps } from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
2
|
-
export declare const tapGestureHandlerProps: readonly ["maxDurationMs", "maxDelayMs", "numberOfTaps", "maxDeltaX", "maxDeltaY", "maxDist", "minPointers"];
|
3
|
-
export declare type TapGestureHandlerEventPayload = {
|
4
|
-
x: number;
|
5
|
-
y: number;
|
6
|
-
absoluteX: number;
|
7
|
-
absoluteY: number;
|
8
|
-
};
|
9
|
-
export interface TapGestureConfig {
|
10
|
-
/**
|
11
|
-
* Minimum number of pointers (fingers) required to be placed before the
|
12
|
-
* handler activates. Should be a positive integer.
|
13
|
-
* The default value is 1.
|
14
|
-
*/
|
15
|
-
minPointers?: number;
|
16
|
-
/**
|
17
|
-
* Maximum time, expressed in milliseconds, that defines how fast a finger
|
18
|
-
* must be released after a touch. The default value is 500.
|
19
|
-
*/
|
20
|
-
maxDurationMs?: number;
|
21
|
-
/**
|
22
|
-
* Maximum time, expressed in milliseconds, that can pass before the next tap
|
23
|
-
* if many taps are required. The default value is 500.
|
24
|
-
*/
|
25
|
-
maxDelayMs?: number;
|
26
|
-
/**
|
27
|
-
* Number of tap gestures required to activate the handler. The default value
|
28
|
-
* is 1.
|
29
|
-
*/
|
30
|
-
numberOfTaps?: number;
|
31
|
-
/**
|
32
|
-
* Maximum distance, expressed in points, that defines how far the finger is
|
33
|
-
* allowed to travel along the X axis during a tap gesture. If the finger
|
34
|
-
* travels further than the defined distance along the X axis and the handler
|
35
|
-
* hasn't yet activated, it will fail to recognize the gesture.
|
36
|
-
*/
|
37
|
-
maxDeltaX?: number;
|
38
|
-
/**
|
39
|
-
* Maximum distance, expressed in points, that defines how far the finger is
|
40
|
-
* allowed to travel along the Y axis during a tap gesture. If the finger
|
41
|
-
* travels further than the defined distance along the Y axis and the handler
|
42
|
-
* hasn't yet activated, it will fail to recognize the gesture.
|
43
|
-
*/
|
44
|
-
maxDeltaY?: number;
|
45
|
-
/**
|
46
|
-
* Maximum distance, expressed in points, that defines how far the finger is
|
47
|
-
* allowed to travel during a tap gesture. If the finger travels further than
|
48
|
-
* the defined distance and the handler hasn't yet
|
49
|
-
* activated, it will fail to recognize the gesture.
|
50
|
-
*/
|
51
|
-
maxDist?: number;
|
52
|
-
}
|
53
|
-
export interface TapGestureHandlerProps extends BaseGestureHandlerProps<TapGestureHandlerEventPayload>, TapGestureConfig {
|
54
|
-
}
|
55
|
-
export declare const tapHandlerName = "TapGestureHandler";
|
56
|
-
export declare type TapGestureHandler = typeof TapGestureHandler;
|
57
|
-
export declare const TapGestureHandler: import("react").ComponentType<TapGestureHandlerProps & import("react").RefAttributes<any>>;
|
58
|
-
//# sourceMappingURL=TapGestureHandler.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TapGestureHandler.d.ts","sourceRoot":"","sources":["../../../src/handlers/TapGestureHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EAExB,MAAM,gEAAgE,CAAC;AAExE,eAAO,MAAM,sBAAsB,8GAQzB,CAAC;AAEX,oBAAY,6BAA6B,GAAG;IAC1C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AACF,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBACf,SAAQ,uBAAuB,CAAC,6BAA6B,CAAC,EAC5D,gBAAgB;CAAG;AAEvB,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAElD,oBAAY,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AAEzD,eAAO,MAAM,iBAAiB,4FAY5B,CAAC"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { NativeViewGestureHandlerProps } from './NativeViewGestureHandler';
|
3
|
-
export default function createNativeWrapper<P>(Component: React.ComponentType<P>, config?: Readonly<NativeViewGestureHandlerProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P & NativeViewGestureHandlerProps> & React.RefAttributes<React.ComponentType<any>>>;
|
4
|
-
//# sourceMappingURL=createNativeWrapper.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createNativeWrapper.d.ts","sourceRoot":"","sources":["../../../src/handlers/createNativeWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,6BAA6B,EAE9B,MAAM,4BAA4B,CAAC;AAepC,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,CAAC,EAC3C,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,MAAM,GAAE,QAAQ,CAAC,6BAA6B,CAAM,6IAwDrD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"gestureHandlerCommon.d.ts","sourceRoot":"","sources":["../../../src/handlers/gestureHandlerCommon.ts"],"names":[],"mappings":"AAIA,wBAAgB,uBAAuB,SAUtC"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Why is this file patched?
|
3
|
-
* - replacing import to RNGestureHandlerModule - original code uses (old) Native Modules but RNOH supports only Turbo Modules
|
4
|
-
*/
|
5
|
-
import React from 'react';
|
6
|
-
import { GestureType, HandlerCallbacks } from 'react-native-gesture-handler/src/handlers/gestures/gesture';
|
7
|
-
import { SharedValue } from 'react-native-gesture-handler/src/handlers/gestures/reanimatedWrapper';
|
8
|
-
import { UserSelect } from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
9
|
-
import { ComposedGesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureComposition';
|
10
|
-
export declare type GestureConfigReference = {
|
11
|
-
config: GestureType[];
|
12
|
-
animatedEventHandler: unknown;
|
13
|
-
animatedHandlers: SharedValue<HandlerCallbacks<Record<string, unknown>>[] | null> | null;
|
14
|
-
firstExecution: boolean;
|
15
|
-
useReanimatedHook: boolean;
|
16
|
-
};
|
17
|
-
interface GestureDetectorProps {
|
18
|
-
gesture: ComposedGesture | GestureType;
|
19
|
-
userSelect?: UserSelect;
|
20
|
-
children?: React.ReactNode;
|
21
|
-
}
|
22
|
-
export declare const GestureDetector: (props: GestureDetectorProps) => React.JSX.Element;
|
23
|
-
export {};
|
24
|
-
//# sourceMappingURL=GestureDetector.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GestureDetector.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gestures/GestureDetector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EACL,WAAW,EACX,gBAAgB,EAIjB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAc,WAAW,EAAE,MAAM,sEAAsE,CAAC;AAG/G,OAAO,EAQL,UAAU,EACX,MAAM,gEAAgE,CAAC;AAkBxE,OAAO,EAAE,eAAe,EAAE,MAAM,uEAAuE,CAAC;AAgCxG,oBAAY,sBAAsB,GAAG;IACnC,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,gBAAgB,EAAE,WAAW,CAC3B,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,GAAG,IAAI,CACnD,GAAG,IAAI,CAAC;IACT,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AA6gBF,UAAU,oBAAoB;IAC5B,OAAO,EAAE,eAAe,GAAG,WAAW,CAAC;IACvC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAOD,eAAO,MAAM,eAAe,UAAW,oBAAoB,sBA4K1D,CAAC"}
|
package/lib/typescript/init.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,SAEzB;AAID,wBAAgB,qBAAqB,SAKpC"}
|