@react-native-oh-tpl/react-native-gesture-handler 2.14.16 → 2.14.17-rc.0
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/DrawerLayout/index.ts +2 -2
- package/Swipeable/index.ts +2 -2
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
- package/lib/module/RNGestureHandlerModule.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.d.ts +2 -2
- package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
- package/lib/typescript/handlers/createHandler.d.ts +11 -11
- package/lib/typescript/index.d.ts +47 -47
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +14 -14
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +14 -14
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +6 -6
- package/package.json +83 -78
- package/src/RNGestureHandlerModule.ts +4 -4
- package/src/components/GestureHandlerRootView.tsx +23 -23
- package/src/handlers/createHandler.tsx +534 -534
- package/src/index.ts +172 -172
- package/src/specs/NativeRNGestureHandlerModule.ts +26 -26
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -18
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -6
- package/harmony/gesture_handler/BuildProfile.ets +0 -17
- package/harmony/gesture_handler/build-profile.json5 +0 -12
- package/harmony/gesture_handler/hvigorfile.ts +0 -2
- package/harmony/gesture_handler/index.ets +0 -2
- package/harmony/gesture_handler/oh-package-lock.json5 +0 -19
- package/harmony/gesture_handler/oh-package.json5 +0 -12
- package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +0 -8
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +0 -12
- package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.cpp +0 -123
- package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.h +0 -15
- package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerButtonComponentInstance.h +0 -27
- package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.h +0 -245
- package/harmony/gesture_handler/src/main/ets/RNOHPackage.ets +0 -17
- package/harmony/gesture_handler/src/main/ets/core/CircularBuffer.ts +0 -42
- package/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts +0 -739
- package/harmony/gesture_handler/src/main/ets/core/GestureHandlerOrchestrator.ts +0 -344
- package/harmony/gesture_handler/src/main/ets/core/GestureHandlerRegistry.ts +0 -63
- package/harmony/gesture_handler/src/main/ets/core/IncomingEvent.ts +0 -78
- package/harmony/gesture_handler/src/main/ets/core/InteractionManager.ts +0 -144
- package/harmony/gesture_handler/src/main/ets/core/LeastSquareSolver.ts +0 -182
- package/harmony/gesture_handler/src/main/ets/core/Multiset.ts +0 -26
- package/harmony/gesture_handler/src/main/ets/core/OutgoingEvent.ts +0 -34
- package/harmony/gesture_handler/src/main/ets/core/OutgoingEventDispatcher.ts +0 -12
- package/harmony/gesture_handler/src/main/ets/core/PointerTracker.ts +0 -239
- package/harmony/gesture_handler/src/main/ets/core/RNGHError.ts +0 -5
- package/harmony/gesture_handler/src/main/ets/core/RNGHLogger.ts +0 -16
- package/harmony/gesture_handler/src/main/ets/core/State.ts +0 -47
- package/harmony/gesture_handler/src/main/ets/core/Vector2D.ts +0 -80
- package/harmony/gesture_handler/src/main/ets/core/VelocityTracker.ts +0 -106
- package/harmony/gesture_handler/src/main/ets/core/View.ts +0 -21
- package/harmony/gesture_handler/src/main/ets/core/ViewRegistry.ts +0 -7
- package/harmony/gesture_handler/src/main/ets/core/index.ts +0 -15
- package/harmony/gesture_handler/src/main/ets/detectors/ScaleGestureDetector.ts +0 -169
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/FlingGestureHandler.ts +0 -219
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/GestureHandlerFactory.ts +0 -67
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/LongPressGestureHandler.ts +0 -139
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/ManualGestureHandler.ts +0 -50
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/NativeViewGestureHandler.ts +0 -124
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/PanGestureHandler.ts +0 -375
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/PinchGestureHandler.ts +0 -174
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/RotationGestureHandler.ts +0 -172
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/TapGestureHandler.ts +0 -216
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/detectors/RotationGestureDetector.ts +0 -167
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/index.ts +0 -1
- package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerPackage.ts +0 -25
- package/harmony/gesture_handler/src/main/ets/rnoh/Logger.ts +0 -107
- package/harmony/gesture_handler/src/main/ets/rnoh/OutgoingEventDispatchers.ts +0 -94
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootViewController.ts +0 -196
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHView.ts +0 -89
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewController.ts +0 -255
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewRegistry.ts +0 -19
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerModule.ts +0 -267
- package/harmony/gesture_handler/src/main/ets/rnoh/RNOHGestureResponder.ts +0 -15
- package/harmony/gesture_handler/src/main/ets/rnoh/RNOHScrollLocker.ts +0 -25
- package/harmony/gesture_handler/src/main/ets/rnoh/types.ts +0 -25
- package/harmony/gesture_handler/src/main/module.json5 +0 -9
- package/harmony/gesture_handler/src/main/resources/base/element/color.json +0 -8
- package/harmony/gesture_handler/src/main/resources/base/element/string.json +0 -16
- package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
- package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +0 -5
- package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +0 -16
- package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +0 -16
- package/harmony/gesture_handler/ts.ts +0 -2
package/src/index.ts
CHANGED
@@ -1,172 +1,172 @@
|
|
1
|
-
declare const global: {
|
2
|
-
isFormsStackingContext: (node: unknown) => boolean | null; // JSI function
|
3
|
-
};
|
4
|
-
|
5
|
-
global.isFormsStackingContext = () => true; // TODO: add using JSI
|
6
|
-
|
7
|
-
import { initialize } from 'react-native-gesture-handler/src/init';
|
8
|
-
|
9
|
-
export { Directions } from 'react-native-gesture-handler/src/Directions';
|
10
|
-
export { State } from 'react-native-gesture-handler/src/State';
|
11
|
-
export { default as gestureHandlerRootHOC } from 'react-native-gesture-handler/src/components/gestureHandlerRootHOC';
|
12
|
-
export { default as GestureHandlerRootView } from './components/GestureHandlerRootView';
|
13
|
-
export type {
|
14
|
-
// event types
|
15
|
-
GestureEvent,
|
16
|
-
HandlerStateChangeEvent,
|
17
|
-
// event payloads types
|
18
|
-
GestureEventPayload,
|
19
|
-
HandlerStateChangeEventPayload,
|
20
|
-
// pointer events
|
21
|
-
GestureTouchEvent,
|
22
|
-
TouchData,
|
23
|
-
// new api event types
|
24
|
-
GestureUpdateEvent,
|
25
|
-
GestureStateChangeEvent,
|
26
|
-
} from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
27
|
-
export type { GestureType } from 'react-native-gesture-handler/src/handlers/gestures/gesture';
|
28
|
-
export type {
|
29
|
-
TapGestureHandlerEventPayload,
|
30
|
-
TapGestureHandlerProps,
|
31
|
-
} from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
32
|
-
export type {
|
33
|
-
ForceTouchGestureHandlerEventPayload,
|
34
|
-
ForceTouchGestureHandlerProps,
|
35
|
-
} from 'react-native-gesture-handler/src/handlers/ForceTouchGestureHandler';
|
36
|
-
export type { ForceTouchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
|
37
|
-
export type {
|
38
|
-
LongPressGestureHandlerEventPayload,
|
39
|
-
LongPressGestureHandlerProps,
|
40
|
-
} from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
41
|
-
export type {
|
42
|
-
PanGestureHandlerEventPayload,
|
43
|
-
PanGestureHandlerProps,
|
44
|
-
} from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
45
|
-
export type { PanGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
|
46
|
-
export type {
|
47
|
-
PinchGestureHandlerEventPayload,
|
48
|
-
PinchGestureHandlerProps,
|
49
|
-
} from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
50
|
-
export type { PinchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
|
51
|
-
export type {
|
52
|
-
RotationGestureHandlerEventPayload,
|
53
|
-
RotationGestureHandlerProps,
|
54
|
-
} from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
55
|
-
export type {
|
56
|
-
FlingGestureHandlerEventPayload,
|
57
|
-
FlingGestureHandlerProps,
|
58
|
-
} from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
59
|
-
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
60
|
-
// export { ForceTouchGestureHandler } from './handlers/ForceTouchGestureHandler';
|
61
|
-
export { LongPressGestureHandler } from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
62
|
-
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
63
|
-
export { PinchGestureHandler } from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
64
|
-
export { RotationGestureHandler } from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
65
|
-
export { FlingGestureHandler } from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
66
|
-
export { default as createNativeWrapper } from 'react-native-gesture-handler/src/handlers/createNativeWrapper';
|
67
|
-
export type {
|
68
|
-
NativeViewGestureHandlerPayload,
|
69
|
-
NativeViewGestureHandlerProps,
|
70
|
-
} from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
71
|
-
export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
|
72
|
-
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
73
|
-
export type { TapGestureType as TapGesture } from 'react-native-gesture-handler/src/handlers/gestures/tapGesture';
|
74
|
-
export type { PanGestureType as PanGesture } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
|
75
|
-
export type { FlingGestureType as FlingGesture } from 'react-native-gesture-handler/src/handlers/gestures/flingGesture';
|
76
|
-
export type { LongPressGestureType as LongPressGesture } from 'react-native-gesture-handler/src/handlers/gestures/longPressGesture';
|
77
|
-
export type { PinchGestureType as PinchGesture } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
|
78
|
-
export type { RotationGestureType as RotationGesture } from 'react-native-gesture-handler/src/handlers/gestures/rotationGesture';
|
79
|
-
export type { ForceTouchGestureType as ForceTouchGesture } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
|
80
|
-
export type { NativeGestureType as NativeGesture } from 'react-native-gesture-handler/src/handlers/gestures/nativeGesture';
|
81
|
-
export type { ManualGestureType as ManualGesture } from 'react-native-gesture-handler/src/handlers/gestures/manualGesture';
|
82
|
-
export type {
|
83
|
-
ComposedGestureType as ComposedGesture,
|
84
|
-
RaceGestureType as RaceGesture,
|
85
|
-
SimultaneousGestureType as SimultaneousGesture,
|
86
|
-
ExclusiveGestureType as ExclusiveGesture,
|
87
|
-
} from 'react-native-gesture-handler/src/handlers/gestures/gestureComposition';
|
88
|
-
export type { GestureStateManagerType as GestureStateManager } from 'react-native-gesture-handler/src/handlers/gestures/gestureStateManager';
|
89
|
-
export { NativeViewGestureHandler } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
90
|
-
export type {
|
91
|
-
RawButtonProps,
|
92
|
-
BaseButtonProps,
|
93
|
-
RectButtonProps,
|
94
|
-
BorderlessButtonProps,
|
95
|
-
} from 'react-native-gesture-handler/src/components/GestureButtons';
|
96
|
-
export {
|
97
|
-
RawButton,
|
98
|
-
BaseButton,
|
99
|
-
RectButton,
|
100
|
-
BorderlessButton,
|
101
|
-
PureNativeButton,
|
102
|
-
} from 'react-native-gesture-handler/src/components/GestureButtons';
|
103
|
-
export {
|
104
|
-
TouchableHighlight,
|
105
|
-
TouchableNativeFeedback,
|
106
|
-
TouchableOpacity,
|
107
|
-
TouchableWithoutFeedback,
|
108
|
-
} from 'react-native-gesture-handler/src/components/touchables';
|
109
|
-
export {
|
110
|
-
ScrollView,
|
111
|
-
Switch,
|
112
|
-
TextInput,
|
113
|
-
DrawerLayoutAndroid,
|
114
|
-
FlatList,
|
115
|
-
RefreshControl,
|
116
|
-
} from 'react-native-gesture-handler/src/components/GestureComponents';
|
117
|
-
export type {
|
118
|
-
//events
|
119
|
-
GestureHandlerGestureEvent,
|
120
|
-
GestureHandlerStateChangeEvent,
|
121
|
-
//event payloads
|
122
|
-
GestureHandlerGestureEventNativeEvent,
|
123
|
-
GestureHandlerStateChangeNativeEvent,
|
124
|
-
NativeViewGestureHandlerGestureEvent,
|
125
|
-
NativeViewGestureHandlerStateChangeEvent,
|
126
|
-
TapGestureHandlerGestureEvent,
|
127
|
-
TapGestureHandlerStateChangeEvent,
|
128
|
-
ForceTouchGestureHandlerGestureEvent,
|
129
|
-
ForceTouchGestureHandlerStateChangeEvent,
|
130
|
-
LongPressGestureHandlerGestureEvent,
|
131
|
-
LongPressGestureHandlerStateChangeEvent,
|
132
|
-
PanGestureHandlerGestureEvent,
|
133
|
-
PanGestureHandlerStateChangeEvent,
|
134
|
-
PinchGestureHandlerGestureEvent,
|
135
|
-
PinchGestureHandlerStateChangeEvent,
|
136
|
-
RotationGestureHandlerGestureEvent,
|
137
|
-
RotationGestureHandlerStateChangeEvent,
|
138
|
-
FlingGestureHandlerGestureEvent,
|
139
|
-
FlingGestureHandlerStateChangeEvent,
|
140
|
-
// handlers props
|
141
|
-
NativeViewGestureHandlerProperties,
|
142
|
-
TapGestureHandlerProperties,
|
143
|
-
LongPressGestureHandlerProperties,
|
144
|
-
PanGestureHandlerProperties,
|
145
|
-
PinchGestureHandlerProperties,
|
146
|
-
RotationGestureHandlerProperties,
|
147
|
-
FlingGestureHandlerProperties,
|
148
|
-
ForceTouchGestureHandlerProperties,
|
149
|
-
// buttons props
|
150
|
-
RawButtonProperties,
|
151
|
-
BaseButtonProperties,
|
152
|
-
RectButtonProperties,
|
153
|
-
BorderlessButtonProperties,
|
154
|
-
} from 'react-native-gesture-handler/src/handlers/gestureHandlerTypesCompat';
|
155
|
-
|
156
|
-
export { default as Swipeable } from 'react-native-gesture-handler/src/components/Swipeable';
|
157
|
-
export type {
|
158
|
-
DrawerLayoutProps,
|
159
|
-
DrawerPosition,
|
160
|
-
DrawerState,
|
161
|
-
DrawerType,
|
162
|
-
DrawerLockMode,
|
163
|
-
DrawerKeyboardDismissMode,
|
164
|
-
} from 'react-native-gesture-handler/src/components/DrawerLayout';
|
165
|
-
export { default as DrawerLayout } from 'react-native-gesture-handler/src/components/DrawerLayout';
|
166
|
-
|
167
|
-
export {
|
168
|
-
enableExperimentalWebImplementation,
|
169
|
-
enableLegacyWebImplementation,
|
170
|
-
} from 'react-native-gesture-handler/src/EnableNewWebImplementation';
|
171
|
-
|
172
|
-
initialize();
|
1
|
+
declare const global: {
|
2
|
+
isFormsStackingContext: (node: unknown) => boolean | null; // JSI function
|
3
|
+
};
|
4
|
+
|
5
|
+
global.isFormsStackingContext = () => true; // TODO: add using JSI
|
6
|
+
|
7
|
+
import { initialize } from 'react-native-gesture-handler/src/init';
|
8
|
+
|
9
|
+
export { Directions } from 'react-native-gesture-handler/src/Directions';
|
10
|
+
export { State } from 'react-native-gesture-handler/src/State';
|
11
|
+
export { default as gestureHandlerRootHOC } from 'react-native-gesture-handler/src/components/gestureHandlerRootHOC';
|
12
|
+
export { default as GestureHandlerRootView } from './components/GestureHandlerRootView';
|
13
|
+
export type {
|
14
|
+
// event types
|
15
|
+
GestureEvent,
|
16
|
+
HandlerStateChangeEvent,
|
17
|
+
// event payloads types
|
18
|
+
GestureEventPayload,
|
19
|
+
HandlerStateChangeEventPayload,
|
20
|
+
// pointer events
|
21
|
+
GestureTouchEvent,
|
22
|
+
TouchData,
|
23
|
+
// new api event types
|
24
|
+
GestureUpdateEvent,
|
25
|
+
GestureStateChangeEvent,
|
26
|
+
} from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
27
|
+
export type { GestureType } from 'react-native-gesture-handler/src/handlers/gestures/gesture';
|
28
|
+
export type {
|
29
|
+
TapGestureHandlerEventPayload,
|
30
|
+
TapGestureHandlerProps,
|
31
|
+
} from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
32
|
+
export type {
|
33
|
+
ForceTouchGestureHandlerEventPayload,
|
34
|
+
ForceTouchGestureHandlerProps,
|
35
|
+
} from 'react-native-gesture-handler/src/handlers/ForceTouchGestureHandler';
|
36
|
+
export type { ForceTouchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
|
37
|
+
export type {
|
38
|
+
LongPressGestureHandlerEventPayload,
|
39
|
+
LongPressGestureHandlerProps,
|
40
|
+
} from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
41
|
+
export type {
|
42
|
+
PanGestureHandlerEventPayload,
|
43
|
+
PanGestureHandlerProps,
|
44
|
+
} from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
45
|
+
export type { PanGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
|
46
|
+
export type {
|
47
|
+
PinchGestureHandlerEventPayload,
|
48
|
+
PinchGestureHandlerProps,
|
49
|
+
} from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
50
|
+
export type { PinchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
|
51
|
+
export type {
|
52
|
+
RotationGestureHandlerEventPayload,
|
53
|
+
RotationGestureHandlerProps,
|
54
|
+
} from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
55
|
+
export type {
|
56
|
+
FlingGestureHandlerEventPayload,
|
57
|
+
FlingGestureHandlerProps,
|
58
|
+
} from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
59
|
+
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
60
|
+
// export { ForceTouchGestureHandler } from './handlers/ForceTouchGestureHandler';
|
61
|
+
export { LongPressGestureHandler } from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
62
|
+
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
63
|
+
export { PinchGestureHandler } from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
64
|
+
export { RotationGestureHandler } from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
65
|
+
export { FlingGestureHandler } from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
66
|
+
export { default as createNativeWrapper } from 'react-native-gesture-handler/src/handlers/createNativeWrapper';
|
67
|
+
export type {
|
68
|
+
NativeViewGestureHandlerPayload,
|
69
|
+
NativeViewGestureHandlerProps,
|
70
|
+
} from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
71
|
+
export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
|
72
|
+
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
73
|
+
export type { TapGestureType as TapGesture } from 'react-native-gesture-handler/src/handlers/gestures/tapGesture';
|
74
|
+
export type { PanGestureType as PanGesture } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
|
75
|
+
export type { FlingGestureType as FlingGesture } from 'react-native-gesture-handler/src/handlers/gestures/flingGesture';
|
76
|
+
export type { LongPressGestureType as LongPressGesture } from 'react-native-gesture-handler/src/handlers/gestures/longPressGesture';
|
77
|
+
export type { PinchGestureType as PinchGesture } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
|
78
|
+
export type { RotationGestureType as RotationGesture } from 'react-native-gesture-handler/src/handlers/gestures/rotationGesture';
|
79
|
+
export type { ForceTouchGestureType as ForceTouchGesture } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
|
80
|
+
export type { NativeGestureType as NativeGesture } from 'react-native-gesture-handler/src/handlers/gestures/nativeGesture';
|
81
|
+
export type { ManualGestureType as ManualGesture } from 'react-native-gesture-handler/src/handlers/gestures/manualGesture';
|
82
|
+
export type {
|
83
|
+
ComposedGestureType as ComposedGesture,
|
84
|
+
RaceGestureType as RaceGesture,
|
85
|
+
SimultaneousGestureType as SimultaneousGesture,
|
86
|
+
ExclusiveGestureType as ExclusiveGesture,
|
87
|
+
} from 'react-native-gesture-handler/src/handlers/gestures/gestureComposition';
|
88
|
+
export type { GestureStateManagerType as GestureStateManager } from 'react-native-gesture-handler/src/handlers/gestures/gestureStateManager';
|
89
|
+
export { NativeViewGestureHandler } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
90
|
+
export type {
|
91
|
+
RawButtonProps,
|
92
|
+
BaseButtonProps,
|
93
|
+
RectButtonProps,
|
94
|
+
BorderlessButtonProps,
|
95
|
+
} from 'react-native-gesture-handler/src/components/GestureButtons';
|
96
|
+
export {
|
97
|
+
RawButton,
|
98
|
+
BaseButton,
|
99
|
+
RectButton,
|
100
|
+
BorderlessButton,
|
101
|
+
PureNativeButton,
|
102
|
+
} from 'react-native-gesture-handler/src/components/GestureButtons';
|
103
|
+
export {
|
104
|
+
TouchableHighlight,
|
105
|
+
TouchableNativeFeedback,
|
106
|
+
TouchableOpacity,
|
107
|
+
TouchableWithoutFeedback,
|
108
|
+
} from 'react-native-gesture-handler/src/components/touchables';
|
109
|
+
export {
|
110
|
+
ScrollView,
|
111
|
+
Switch,
|
112
|
+
TextInput,
|
113
|
+
DrawerLayoutAndroid,
|
114
|
+
FlatList,
|
115
|
+
RefreshControl,
|
116
|
+
} from 'react-native-gesture-handler/src/components/GestureComponents';
|
117
|
+
export type {
|
118
|
+
//events
|
119
|
+
GestureHandlerGestureEvent,
|
120
|
+
GestureHandlerStateChangeEvent,
|
121
|
+
//event payloads
|
122
|
+
GestureHandlerGestureEventNativeEvent,
|
123
|
+
GestureHandlerStateChangeNativeEvent,
|
124
|
+
NativeViewGestureHandlerGestureEvent,
|
125
|
+
NativeViewGestureHandlerStateChangeEvent,
|
126
|
+
TapGestureHandlerGestureEvent,
|
127
|
+
TapGestureHandlerStateChangeEvent,
|
128
|
+
ForceTouchGestureHandlerGestureEvent,
|
129
|
+
ForceTouchGestureHandlerStateChangeEvent,
|
130
|
+
LongPressGestureHandlerGestureEvent,
|
131
|
+
LongPressGestureHandlerStateChangeEvent,
|
132
|
+
PanGestureHandlerGestureEvent,
|
133
|
+
PanGestureHandlerStateChangeEvent,
|
134
|
+
PinchGestureHandlerGestureEvent,
|
135
|
+
PinchGestureHandlerStateChangeEvent,
|
136
|
+
RotationGestureHandlerGestureEvent,
|
137
|
+
RotationGestureHandlerStateChangeEvent,
|
138
|
+
FlingGestureHandlerGestureEvent,
|
139
|
+
FlingGestureHandlerStateChangeEvent,
|
140
|
+
// handlers props
|
141
|
+
NativeViewGestureHandlerProperties,
|
142
|
+
TapGestureHandlerProperties,
|
143
|
+
LongPressGestureHandlerProperties,
|
144
|
+
PanGestureHandlerProperties,
|
145
|
+
PinchGestureHandlerProperties,
|
146
|
+
RotationGestureHandlerProperties,
|
147
|
+
FlingGestureHandlerProperties,
|
148
|
+
ForceTouchGestureHandlerProperties,
|
149
|
+
// buttons props
|
150
|
+
RawButtonProperties,
|
151
|
+
BaseButtonProperties,
|
152
|
+
RectButtonProperties,
|
153
|
+
BorderlessButtonProperties,
|
154
|
+
} from 'react-native-gesture-handler/src/handlers/gestureHandlerTypesCompat';
|
155
|
+
|
156
|
+
export { default as Swipeable } from 'react-native-gesture-handler/src/components/Swipeable';
|
157
|
+
export type {
|
158
|
+
DrawerLayoutProps,
|
159
|
+
DrawerPosition,
|
160
|
+
DrawerState,
|
161
|
+
DrawerType,
|
162
|
+
DrawerLockMode,
|
163
|
+
DrawerKeyboardDismissMode,
|
164
|
+
} from 'react-native-gesture-handler/src/components/DrawerLayout';
|
165
|
+
export { default as DrawerLayout } from 'react-native-gesture-handler/src/components/DrawerLayout';
|
166
|
+
|
167
|
+
export {
|
168
|
+
enableExperimentalWebImplementation,
|
169
|
+
enableLegacyWebImplementation,
|
170
|
+
} from 'react-native-gesture-handler/src/EnableNewWebImplementation';
|
171
|
+
|
172
|
+
initialize();
|
@@ -1,26 +1,26 @@
|
|
1
|
-
import { TurboModuleRegistry, TurboModule } from 'react-native';
|
2
|
-
import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
-
|
4
|
-
export interface Spec extends TurboModule {
|
5
|
-
handleSetJSResponder: (tag: Int32, blockNativeResponder: boolean) => void;
|
6
|
-
handleClearJSResponder: () => void;
|
7
|
-
createGestureHandler: (
|
8
|
-
handlerName: string,
|
9
|
-
handlerTag: Int32,
|
10
|
-
// Record<> is not supported by codegen
|
11
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
12
|
-
config: Object
|
13
|
-
) => void;
|
14
|
-
attachGestureHandler: (
|
15
|
-
handlerTag: Int32,
|
16
|
-
newView: Int32,
|
17
|
-
actionType: Int32
|
18
|
-
) => void;
|
19
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
20
|
-
updateGestureHandler: (handlerTag: Int32, newConfig: Object) => void;
|
21
|
-
dropGestureHandler: (handlerTag: Int32) => void;
|
22
|
-
install: () => boolean;
|
23
|
-
flushOperations: () => void;
|
24
|
-
}
|
25
|
-
|
26
|
-
export default TurboModuleRegistry.getEnforcing<Spec>('RNGestureHandlerModule');
|
1
|
+
import { TurboModuleRegistry, TurboModule } from 'react-native';
|
2
|
+
import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
+
|
4
|
+
export interface Spec extends TurboModule {
|
5
|
+
handleSetJSResponder: (tag: Int32, blockNativeResponder: boolean) => void;
|
6
|
+
handleClearJSResponder: () => void;
|
7
|
+
createGestureHandler: (
|
8
|
+
handlerName: string,
|
9
|
+
handlerTag: Int32,
|
10
|
+
// Record<> is not supported by codegen
|
11
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
12
|
+
config: Object
|
13
|
+
) => void;
|
14
|
+
attachGestureHandler: (
|
15
|
+
handlerTag: Int32,
|
16
|
+
newView: Int32,
|
17
|
+
actionType: Int32
|
18
|
+
) => void;
|
19
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
20
|
+
updateGestureHandler: (handlerTag: Int32, newConfig: Object) => void;
|
21
|
+
dropGestureHandler: (handlerTag: Int32) => void;
|
22
|
+
install: () => boolean;
|
23
|
+
flushOperations: () => void;
|
24
|
+
}
|
25
|
+
|
26
|
+
export default TurboModuleRegistry.getEnforcing<Spec>('RNGestureHandlerModule');
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
2
|
-
import type {
|
3
|
-
Int32,
|
4
|
-
WithDefault,
|
5
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
6
|
-
import type { ViewProps, ColorValue } from 'react-native';
|
7
|
-
|
8
|
-
interface NativeProps extends ViewProps {
|
9
|
-
exclusive?: WithDefault<boolean, true>;
|
10
|
-
foreground?: boolean;
|
11
|
-
borderless?: boolean;
|
12
|
-
enabled?: WithDefault<boolean, true>;
|
13
|
-
rippleColor?: ColorValue;
|
14
|
-
rippleRadius?: Int32;
|
15
|
-
touchSoundDisabled?: WithDefault<boolean, false>;
|
16
|
-
}
|
17
|
-
|
18
|
-
export default codegenNativeComponent<NativeProps>('RNGestureHandlerButton');
|
1
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
2
|
+
import type {
|
3
|
+
Int32,
|
4
|
+
WithDefault,
|
5
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
6
|
+
import type { ViewProps, ColorValue } from 'react-native';
|
7
|
+
|
8
|
+
interface NativeProps extends ViewProps {
|
9
|
+
exclusive?: WithDefault<boolean, true>;
|
10
|
+
foreground?: boolean;
|
11
|
+
borderless?: boolean;
|
12
|
+
enabled?: WithDefault<boolean, true>;
|
13
|
+
rippleColor?: ColorValue;
|
14
|
+
rippleRadius?: Int32;
|
15
|
+
touchSoundDisabled?: WithDefault<boolean, false>;
|
16
|
+
}
|
17
|
+
|
18
|
+
export default codegenNativeComponent<NativeProps>('RNGestureHandlerButton');
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
2
|
-
import type { ViewProps } from 'react-native';
|
3
|
-
|
4
|
-
interface NativeProps extends ViewProps {}
|
5
|
-
|
6
|
-
export default codegenNativeComponent<NativeProps>('RNGestureHandlerRootView');
|
1
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
2
|
+
import type { ViewProps } from 'react-native';
|
3
|
+
|
4
|
+
interface NativeProps extends ViewProps {}
|
5
|
+
|
6
|
+
export default codegenNativeComponent<NativeProps>('RNGestureHandlerRootView');
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
3
|
-
*/
|
4
|
-
export const HAR_VERSION = '2.14.16';
|
5
|
-
export const BUILD_MODE_NAME = 'release';
|
6
|
-
export const DEBUG = false;
|
7
|
-
export const TARGET_NAME = 'default';
|
8
|
-
|
9
|
-
/**
|
10
|
-
* BuildProfile Class is used only for compatibility purposes.
|
11
|
-
*/
|
12
|
-
export default class BuildProfile {
|
13
|
-
static readonly HAR_VERSION = HAR_VERSION;
|
14
|
-
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
15
|
-
static readonly DEBUG = DEBUG;
|
16
|
-
static readonly TARGET_NAME = TARGET_NAME;
|
17
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"meta": {
|
3
|
-
"stableOrder": false
|
4
|
-
},
|
5
|
-
"lockfileVersion": 3,
|
6
|
-
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
7
|
-
"specifiers": {
|
8
|
-
"@rnoh/react-native-openharmony@0.72.38": "@rnoh/react-native-openharmony@0.72.38"
|
9
|
-
},
|
10
|
-
"packages": {
|
11
|
-
"@rnoh/react-native-openharmony@0.72.38": {
|
12
|
-
"name": "@rnoh/react-native-openharmony",
|
13
|
-
"version": "0.72.38",
|
14
|
-
"integrity": "sha512-br5SIrbB0OarSLirenleE7eTOX1lNccMJ7nb/G7qWTyJ7kW4DalmTXVKYpoT2qaOLls1uEE7McD1OjbZZM9jug==",
|
15
|
-
"resolved": "https://ohpm.openharmony.cn/ohpm/@rnoh/react-native-openharmony/-/react-native-openharmony-0.72.38.har",
|
16
|
-
"registryType": "ohpm"
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
cmake_minimum_required(VERSION 3.13)
|
2
|
-
set(CMAKE_VERBOSE_MAKEFILE on)
|
3
|
-
|
4
|
-
file(GLOB rnoh_gesture_handler_SRC CONFIGURE_DEPENDS *.cpp)
|
5
|
-
|
6
|
-
add_library(rnoh_gesture_handler SHARED ${rnoh_gesture_handler_SRC})
|
7
|
-
target_include_directories(rnoh_gesture_handler PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
8
|
-
target_link_libraries(rnoh_gesture_handler PUBLIC rnoh)
|
@@ -1,12 +0,0 @@
|
|
1
|
-
#pragma once
|
2
|
-
#include "RnohReactNativeHarmonyGestureHandlerPackage.h"
|
3
|
-
|
4
|
-
namespace rnoh {
|
5
|
-
/**
|
6
|
-
* @deprecated: Use RnohReactNativeHarmonyGestureHandlerPackage instead (2024-10-10)
|
7
|
-
*/
|
8
|
-
class GestureHandlerPackage : public RnohReactNativeHarmonyGestureHandlerPackage {
|
9
|
-
using Super = RnohReactNativeHarmonyGestureHandlerPackage;
|
10
|
-
using Super::Super;
|
11
|
-
};
|
12
|
-
} // namespace rnoh
|