@react-native-oh-tpl/react-native-gesture-handler 2.14.8-rc.1 → 2.14.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/DrawerLayout/index.ts +2 -2
  2. package/Swipeable/index.ts +2 -2
  3. package/harmony/gesture_handler/BuildProfile.ets +17 -0
  4. package/harmony/gesture_handler/build-profile.json5 +19 -0
  5. package/harmony/gesture_handler/hvigorfile.ts +2 -0
  6. package/harmony/gesture_handler/index.ets +2 -0
  7. package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
  8. package/harmony/gesture_handler/oh-package.json5 +12 -0
  9. package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +8 -0
  10. package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +12 -0
  11. package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.cpp +123 -0
  12. package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.h +15 -0
  13. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerButtonComponentInstance.h +27 -0
  14. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.h +245 -0
  15. package/harmony/gesture_handler/src/main/ets/RNOHPackage.ets +17 -0
  16. package/harmony/gesture_handler/src/main/ets/core/CircularBuffer.ts +42 -0
  17. package/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts +739 -0
  18. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerOrchestrator.ts +344 -0
  19. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerRegistry.ts +63 -0
  20. package/harmony/gesture_handler/src/main/ets/core/IncomingEvent.ts +78 -0
  21. package/harmony/gesture_handler/src/main/ets/core/InteractionManager.ts +144 -0
  22. package/harmony/gesture_handler/src/main/ets/core/LeastSquareSolver.ts +182 -0
  23. package/harmony/gesture_handler/src/main/ets/core/Multiset.ts +26 -0
  24. package/harmony/gesture_handler/src/main/ets/core/OutgoingEvent.ts +34 -0
  25. package/harmony/gesture_handler/src/main/ets/core/OutgoingEventDispatcher.ts +12 -0
  26. package/harmony/gesture_handler/src/main/ets/core/PointerTracker.ts +239 -0
  27. package/harmony/gesture_handler/src/main/ets/core/RNGHError.ts +5 -0
  28. package/harmony/gesture_handler/src/main/ets/core/RNGHLogger.ts +16 -0
  29. package/harmony/gesture_handler/src/main/ets/core/State.ts +47 -0
  30. package/harmony/gesture_handler/src/main/ets/core/Vector2D.ts +80 -0
  31. package/harmony/gesture_handler/src/main/ets/core/VelocityTracker.ts +106 -0
  32. package/harmony/gesture_handler/src/main/ets/core/View.ts +21 -0
  33. package/harmony/gesture_handler/src/main/ets/core/ViewRegistry.ts +7 -0
  34. package/harmony/gesture_handler/src/main/ets/core/index.ts +15 -0
  35. package/harmony/gesture_handler/src/main/ets/detectors/ScaleGestureDetector.ts +169 -0
  36. package/harmony/gesture_handler/src/main/ets/gesture-handlers/FlingGestureHandler.ts +219 -0
  37. package/harmony/gesture_handler/src/main/ets/gesture-handlers/GestureHandlerFactory.ts +67 -0
  38. package/harmony/gesture_handler/src/main/ets/gesture-handlers/LongPressGestureHandler.ts +139 -0
  39. package/harmony/gesture_handler/src/main/ets/gesture-handlers/ManualGestureHandler.ts +50 -0
  40. package/harmony/gesture_handler/src/main/ets/gesture-handlers/NativeViewGestureHandler.ts +124 -0
  41. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PanGestureHandler.ts +361 -0
  42. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PinchGestureHandler.ts +174 -0
  43. package/harmony/gesture_handler/src/main/ets/gesture-handlers/RotationGestureHandler.ts +172 -0
  44. package/harmony/gesture_handler/src/main/ets/gesture-handlers/TapGestureHandler.ts +216 -0
  45. package/harmony/gesture_handler/src/main/ets/gesture-handlers/detectors/RotationGestureDetector.ts +167 -0
  46. package/harmony/gesture_handler/src/main/ets/gesture-handlers/index.ts +1 -0
  47. package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerPackage.ts +25 -0
  48. package/harmony/gesture_handler/src/main/ets/rnoh/Logger.ts +107 -0
  49. package/harmony/gesture_handler/src/main/ets/rnoh/OutgoingEventDispatchers.ts +94 -0
  50. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootViewController.ts +182 -0
  51. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHView.ts +62 -0
  52. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewController.ts +262 -0
  53. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewRegistry.ts +19 -0
  54. package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerModule.ts +267 -0
  55. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHGestureResponder.ts +15 -0
  56. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHScrollLocker.ts +25 -0
  57. package/harmony/gesture_handler/src/main/ets/rnoh/types.ts +25 -0
  58. package/harmony/gesture_handler/src/main/module.json5 +9 -0
  59. package/harmony/gesture_handler/src/main/resources/base/element/color.json +8 -0
  60. package/harmony/gesture_handler/src/main/resources/base/element/string.json +16 -0
  61. package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
  62. package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +5 -0
  63. package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +16 -0
  64. package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +16 -0
  65. package/harmony/gesture_handler/ts.ts +2 -0
  66. package/harmony/gesture_handler.har +0 -0
  67. package/lib/commonjs/RNGestureHandlerModule.js +3 -2
  68. package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
  69. package/lib/commonjs/components/GestureHandlerRootView.js +3 -3
  70. package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
  71. package/lib/commonjs/handlers/createHandler.js +18 -15
  72. package/lib/commonjs/handlers/createHandler.js.map +1 -1
  73. package/lib/commonjs/index.js +36 -8
  74. package/lib/commonjs/index.js.map +1 -1
  75. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +2 -1
  76. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
  77. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +3 -2
  78. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  79. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +3 -2
  80. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  81. package/lib/module/RNGestureHandlerModule.js.map +1 -1
  82. package/lib/module/components/GestureHandlerRootView.js.map +1 -1
  83. package/lib/module/handlers/createHandler.js +15 -12
  84. package/lib/module/handlers/createHandler.js.map +1 -1
  85. package/lib/module/index.js +5 -7
  86. package/lib/module/index.js.map +1 -1
  87. package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
  88. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  89. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  90. package/lib/typescript/RNGestureHandlerModule.d.ts +2 -2
  91. package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
  92. package/lib/typescript/handlers/createHandler.d.ts +11 -11
  93. package/lib/typescript/index.d.ts +47 -42
  94. package/lib/typescript/index.d.ts.map +1 -1
  95. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +14 -14
  96. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +14 -14
  97. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +6 -6
  98. package/package.json +78 -70
  99. package/src/RNGestureHandlerModule.ts +4 -4
  100. package/src/components/GestureHandlerRootView.tsx +23 -23
  101. package/src/handlers/createHandler.tsx +534 -534
  102. package/src/index.ts +172 -172
  103. package/src/specs/NativeRNGestureHandlerModule.ts +26 -26
  104. package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -18
  105. 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
- // export { NativeViewGestureHandler } from './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');