@react-native-oh-tpl/react-native-gesture-handler 2.14.1-2.14.8 → 2.14.1-2.14.9
Sign up to get free protection for your applications and to get access to all the features.
- package/DrawerLayout/index.ts +2 -2
- package/Swipeable/index.ts +2 -2
- package/harmony/gesture_handler/BuildProfile.ets +17 -0
- package/harmony/gesture_handler/build-profile.json5 +19 -0
- package/harmony/gesture_handler/hvigorfile.ts +2 -0
- package/harmony/gesture_handler/index.ets +3 -0
- package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
- package/harmony/gesture_handler/oh-package.json5 +12 -0
- package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +8 -0
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +149 -0
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +21 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +36 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +32 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +22 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +15 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +36 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +25 -0
- package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerButtonComponentInstance.h +27 -0
- package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.h +234 -0
- package/harmony/gesture_handler/src/main/ets/core/CircularBuffer.ts +42 -0
- package/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts +684 -0
- package/harmony/gesture_handler/src/main/ets/core/GestureHandlerOrchestrator.ts +335 -0
- package/harmony/gesture_handler/src/main/ets/core/GestureHandlerRegistry.ts +35 -0
- package/harmony/gesture_handler/src/main/ets/core/IncomingEvent.ts +78 -0
- package/harmony/gesture_handler/src/main/ets/core/InteractionManager.ts +144 -0
- package/harmony/gesture_handler/src/main/ets/core/LeastSquareSolver.ts +182 -0
- package/harmony/gesture_handler/src/main/ets/core/OutgoingEvent.ts +34 -0
- package/harmony/gesture_handler/src/main/ets/core/OutgoingEventDispatcher.ts +12 -0
- package/harmony/gesture_handler/src/main/ets/core/PointerTracker.ts +239 -0
- package/harmony/gesture_handler/src/main/ets/core/RNGHError.ts +5 -0
- package/harmony/gesture_handler/src/main/ets/core/RNGHLogger.ts +12 -0
- package/harmony/gesture_handler/src/main/ets/core/State.ts +47 -0
- package/harmony/gesture_handler/src/main/ets/core/Vector2D.ts +80 -0
- package/harmony/gesture_handler/src/main/ets/core/VelocityTracker.ts +106 -0
- package/harmony/gesture_handler/src/main/ets/core/View.ts +19 -0
- package/harmony/gesture_handler/src/main/ets/core/index.ts +13 -0
- package/harmony/gesture_handler/src/main/ets/detectors/ScaleGestureDetector.ts +169 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/FlingGestureHandler.ts +211 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/GestureHandlerFactory.ts +64 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/LongPressGestureHandler.ts +127 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/ManualGestureHandler.ts +42 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/NativeViewGestureHandler.ts +113 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/PanGestureHandler.ts +342 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/PinchGestureHandler.ts +159 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/RotationGestureHandler.ts +164 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/TapGestureHandler.ts +206 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/detectors/RotationGestureDetector.ts +167 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/index.ts +1 -0
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +24 -0
- package/harmony/gesture_handler/src/main/ets/namespace/components/RNGestureHandlerButton.ts +139 -0
- package/harmony/gesture_handler/src/main/ets/namespace/components/RNGestureHandlerRootView.ts +101 -0
- package/harmony/gesture_handler/src/main/ets/namespace/components/ts.ts +2 -0
- package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +2 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerArkUIAdapter.ts +240 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerPackage.ts +22 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/Logger.ts +49 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/OutgoingEventDispatchers.ts +71 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootTouchHandlerArkTS.ts +104 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootTouchHandlerCAPI.ts +110 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerButton.ets +38 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerModule.ts +230 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerRootView.ets +53 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNOHGestureResponder.ts +24 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNOHScrollLocker.ts +32 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/View.ts +119 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/ViewRegistry.ts +95 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/types.ts +25 -0
- package/harmony/gesture_handler/src/main/module.json5 +9 -0
- package/harmony/gesture_handler/src/main/resources/base/element/color.json +8 -0
- package/harmony/gesture_handler/src/main/resources/base/element/string.json +16 -0
- 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 +5 -0
- package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +16 -0
- package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +16 -0
- package/harmony/gesture_handler/ts.ts +2 -0
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js +3 -2
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +3 -3
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
- package/lib/commonjs/handlers/createHandler.js +18 -15
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/index.js +8 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +2 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +3 -2
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +3 -2
- 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 +15 -12
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/index.js +1 -3
- 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 +43 -42
- package/lib/typescript/index.d.ts.map +1 -1
- 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 +68 -69
- 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/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 './handlers/LongPressGestureHandler';
|
62
|
-
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
63
|
-
// export { PinchGestureHandler } from './handlers/PinchGestureHandler';
|
64
|
-
// export { RotationGestureHandler } from './handlers/RotationGestureHandler';
|
65
|
-
// export { FlingGestureHandler } from './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
|
-
|
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 './handlers/LongPressGestureHandler';
|
62
|
+
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
63
|
+
// export { PinchGestureHandler } from './handlers/PinchGestureHandler';
|
64
|
+
// export { RotationGestureHandler } from './handlers/RotationGestureHandler';
|
65
|
+
// export { FlingGestureHandler } from './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');
|