@react-native-oh-tpl/react-native-gesture-handler 2.12.6-2 → 2.12.9-1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/harmony/gesture_handler/BuildProfile.ets +6 -0
  2. package/harmony/gesture_handler/build-profile.json5 +13 -2
  3. package/harmony/gesture_handler/hvigorfile.ts +1 -1
  4. package/harmony/gesture_handler/index.ets +1 -1
  5. package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
  6. package/harmony/gesture_handler/oh-package.json5 +10 -11
  7. package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +75 -6
  8. package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +14 -8
  9. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +4 -28
  10. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentInstance.h +27 -0
  11. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +32 -0
  12. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +17 -12
  13. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +5 -2
  14. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerPackage.h +72 -0
  15. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +4 -28
  16. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentInstance.h +123 -0
  17. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +25 -0
  18. package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +16 -1
  19. package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +2 -2
  20. package/harmony/gesture_handler/src/main/ets/{GestureHandlerArkUIAdapter.ets → GestureHandlerArkUIAdapter.ts} +2 -1
  21. package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +2 -2
  22. package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +5 -5
  23. package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +20 -1
  24. package/harmony/gesture_handler/src/main/ets/{RNGHRootTouchHandler.ets → RNGHRootTouchHandlerArkTS.ts} +5 -3
  25. package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerCAPI.ts +87 -0
  26. package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +4 -3
  27. package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +65 -7
  28. package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +7 -11
  29. package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +17 -5
  30. package/harmony/gesture_handler/src/main/ets/View.ts +1 -1
  31. package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +1 -1
  32. package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerButton.ts +140 -0
  33. package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +25 -0
  34. package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerRootView.ts +101 -0
  35. package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +3 -0
  36. package/harmony/gesture_handler/src/main/ets/types.ts +25 -0
  37. package/harmony/gesture_handler/src/main/module.json5 +6 -6
  38. package/harmony/gesture_handler/ts.ts +2 -1
  39. package/harmony/gesture_handler.har +0 -0
  40. package/lib/commonjs/RNGestureHandlerModule.js +6 -3
  41. package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
  42. package/lib/commonjs/components/GestureHandlerRootView.js +5 -13
  43. package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
  44. package/lib/commonjs/handlers/createHandler.js +31 -28
  45. package/lib/commonjs/handlers/createHandler.js.map +1 -1
  46. package/lib/commonjs/index.js +42 -19
  47. package/lib/commonjs/index.js.map +1 -1
  48. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +10 -0
  49. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -0
  50. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +11 -0
  51. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
  52. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +11 -0
  53. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
  54. package/lib/module/RNGestureHandlerModule.js +3 -2
  55. package/lib/module/RNGestureHandlerModule.js.map +1 -1
  56. package/lib/module/components/GestureHandlerRootView.js +3 -11
  57. package/lib/module/components/GestureHandlerRootView.js.map +1 -1
  58. package/lib/module/handlers/createHandler.js +20 -19
  59. package/lib/module/handlers/createHandler.js.map +1 -1
  60. package/lib/module/index.js +6 -14
  61. package/lib/module/index.js.map +1 -1
  62. package/lib/module/specs/NativeRNGestureHandlerModule.js +3 -0
  63. package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -0
  64. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js +3 -0
  65. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
  66. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js +3 -0
  67. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
  68. package/lib/typescript/RNGestureHandlerModule.d.ts +2 -6
  69. package/lib/typescript/RNGestureHandlerModule.d.ts.map +1 -1
  70. package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
  71. package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -1
  72. package/lib/typescript/handlers/createHandler.d.ts +11 -11
  73. package/lib/typescript/handlers/createHandler.d.ts.map +1 -1
  74. package/lib/typescript/index.d.ts +9 -8
  75. package/lib/typescript/index.d.ts.map +1 -1
  76. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +15 -0
  77. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -0
  78. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +15 -0
  79. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -0
  80. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +7 -0
  81. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -0
  82. package/package.json +9 -13
  83. package/src/RNGestureHandlerModule.ts +3 -4
  84. package/src/components/GestureHandlerRootView.tsx +4 -15
  85. package/src/handlers/createHandler.tsx +4 -5
  86. package/src/index.ts +13 -13
  87. package/src/specs/NativeRNGestureHandlerModule.ts +26 -0
  88. package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -0
  89. package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -0
  90. package/README.md +0 -1
  91. package/harmony/gesture_handler/LICENSE +0 -21
  92. package/harmony/gesture_handler/OAT.xml +0 -44
  93. package/harmony/gesture_handler/README.OpenSource +0 -11
  94. package/harmony/gesture_handler/README.md +0 -1
  95. package/lib/commonjs/components/GestureButtons.js +0 -186
  96. package/lib/commonjs/components/GestureButtons.js.map +0 -1
  97. package/lib/commonjs/components/GestureHandlerButton.js +0 -9
  98. package/lib/commonjs/components/GestureHandlerButton.js.map +0 -1
  99. package/lib/commonjs/components/RNGestureHandlerButton.js +0 -23
  100. package/lib/commonjs/components/RNGestureHandlerButton.js.map +0 -1
  101. package/lib/commonjs/components/touchables/GenericTouchable.js +0 -247
  102. package/lib/commonjs/components/touchables/GenericTouchable.js.map +0 -1
  103. package/lib/commonjs/components/touchables/TouchableOpacity.js +0 -58
  104. package/lib/commonjs/components/touchables/TouchableOpacity.js.map +0 -1
  105. package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +0 -18
  106. package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +0 -1
  107. package/lib/commonjs/components/touchables/index.js +0 -21
  108. package/lib/commonjs/components/touchables/index.js.map +0 -1
  109. package/lib/commonjs/handlers/NativeViewGestureHandler.js +0 -19
  110. package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +0 -1
  111. package/lib/commonjs/handlers/PanGestureHandler.js +0 -103
  112. package/lib/commonjs/handlers/PanGestureHandler.js.map +0 -1
  113. package/lib/commonjs/handlers/TapGestureHandler.js +0 -22
  114. package/lib/commonjs/handlers/TapGestureHandler.js.map +0 -1
  115. package/lib/commonjs/handlers/createNativeWrapper.js +0 -64
  116. package/lib/commonjs/handlers/createNativeWrapper.js.map +0 -1
  117. package/lib/commonjs/handlers/gestureHandlerCommon.js +0 -22
  118. package/lib/commonjs/handlers/gestureHandlerCommon.js.map +0 -1
  119. package/lib/commonjs/handlers/gestures/GestureDetector.js +0 -554
  120. package/lib/commonjs/handlers/gestures/GestureDetector.js.map +0 -1
  121. package/lib/commonjs/init.js +0 -24
  122. package/lib/commonjs/init.js.map +0 -1
  123. package/lib/module/components/GestureButtons.js +0 -168
  124. package/lib/module/components/GestureButtons.js.map +0 -1
  125. package/lib/module/components/GestureHandlerButton.js +0 -3
  126. package/lib/module/components/GestureHandlerButton.js.map +0 -1
  127. package/lib/module/components/RNGestureHandlerButton.js +0 -17
  128. package/lib/module/components/RNGestureHandlerButton.js.map +0 -1
  129. package/lib/module/components/touchables/GenericTouchable.js +0 -238
  130. package/lib/module/components/touchables/GenericTouchable.js.map +0 -1
  131. package/lib/module/components/touchables/TouchableOpacity.js +0 -49
  132. package/lib/module/components/touchables/TouchableOpacity.js.map +0 -1
  133. package/lib/module/components/touchables/TouchableWithoutFeedback.js +0 -9
  134. package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +0 -1
  135. package/lib/module/components/touchables/index.js +0 -8
  136. package/lib/module/components/touchables/index.js.map +0 -1
  137. package/lib/module/handlers/NativeViewGestureHandler.js +0 -12
  138. package/lib/module/handlers/NativeViewGestureHandler.js.map +0 -1
  139. package/lib/module/handlers/PanGestureHandler.js +0 -92
  140. package/lib/module/handlers/PanGestureHandler.js.map +0 -1
  141. package/lib/module/handlers/TapGestureHandler.js +0 -14
  142. package/lib/module/handlers/TapGestureHandler.js.map +0 -1
  143. package/lib/module/handlers/createNativeWrapper.js +0 -57
  144. package/lib/module/handlers/createNativeWrapper.js.map +0 -1
  145. package/lib/module/handlers/gestureHandlerCommon.js +0 -15
  146. package/lib/module/handlers/gestureHandlerCommon.js.map +0 -1
  147. package/lib/module/handlers/gestures/GestureDetector.js +0 -543
  148. package/lib/module/handlers/gestures/GestureDetector.js.map +0 -1
  149. package/lib/module/init.js +0 -17
  150. package/lib/module/init.js.map +0 -1
  151. package/lib/typescript/components/GestureButtons.d.ts +0 -122
  152. package/lib/typescript/components/GestureButtons.d.ts.map +0 -1
  153. package/lib/typescript/components/GestureHandlerButton.d.ts +0 -5
  154. package/lib/typescript/components/GestureHandlerButton.d.ts.map +0 -1
  155. package/lib/typescript/components/RNGestureHandlerButton.d.ts +0 -2
  156. package/lib/typescript/components/RNGestureHandlerButton.d.ts.map +0 -1
  157. package/lib/typescript/components/touchables/GenericTouchable.d.ts +0 -68
  158. package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +0 -1
  159. package/lib/typescript/components/touchables/TouchableOpacity.d.ts +0 -26
  160. package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +0 -1
  161. package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +0 -8
  162. package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +0 -1
  163. package/lib/typescript/components/touchables/index.d.ts +0 -4
  164. package/lib/typescript/components/touchables/index.d.ts.map +0 -1
  165. package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +0 -29
  166. package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +0 -1
  167. package/lib/typescript/handlers/PanGestureHandler.d.ts +0 -140
  168. package/lib/typescript/handlers/PanGestureHandler.d.ts.map +0 -1
  169. package/lib/typescript/handlers/TapGestureHandler.d.ts +0 -58
  170. package/lib/typescript/handlers/TapGestureHandler.d.ts.map +0 -1
  171. package/lib/typescript/handlers/createNativeWrapper.d.ts +0 -4
  172. package/lib/typescript/handlers/createNativeWrapper.d.ts.map +0 -1
  173. package/lib/typescript/handlers/gestureHandlerCommon.d.ts +0 -2
  174. package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +0 -1
  175. package/lib/typescript/handlers/gestures/GestureDetector.d.ts +0 -24
  176. package/lib/typescript/handlers/gestures/GestureDetector.d.ts.map +0 -1
  177. package/lib/typescript/init.d.ts +0 -3
  178. package/lib/typescript/init.d.ts.map +0 -1
  179. package/src/components/GestureButtons.tsx +0 -334
  180. package/src/components/GestureHandlerButton.tsx +0 -5
  181. package/src/components/RNGestureHandlerButton.tsx +0 -23
  182. package/src/components/touchables/GenericTouchable.tsx +0 -301
  183. package/src/components/touchables/TouchableOpacity.tsx +0 -76
  184. package/src/components/touchables/TouchableWithoutFeedback.tsx +0 -14
  185. package/src/components/touchables/index.ts +0 -7
  186. package/src/handlers/NativeViewGestureHandler.ts +0 -55
  187. package/src/handlers/PanGestureHandler.ts +0 -327
  188. package/src/handlers/TapGestureHandler.ts +0 -95
  189. package/src/handlers/createNativeWrapper.tsx +0 -81
  190. package/src/handlers/gestureHandlerCommon.ts +0 -15
  191. package/src/handlers/gestures/GestureDetector.tsx +0 -823
  192. package/src/init.ts +0 -18
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","React","_NativeViewGestureHandler","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","NATIVE_WRAPPER_PROPS_FILTER","nativeViewProps","createNativeWrapper","Component","config","_Component$render","ComponentWrapper","forwardRef","props","ref","gestureHandlerProps","keys","reduce","res","allowedKeys","includes","_ref","useRef","_gestureHandlerRef","useImperativeHandle","node","current","handlerTag","createElement","NativeViewGestureHandler","displayName","render","name"],"sourceRoot":"..\\..\\..\\src","sources":["handlers/createNativeWrapper.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAG/B,IA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IAAI,CAACK,OAAO,IAAID,IAAI,EAAE;QACxB;QACAJ,IAAI,CAACK,OAAO,CAACC,UAAU,GAAGF,IAAI,CAACE,UAAU;QACzC,OAAON,IAAI,CAACK,OAAO;MACrB;MACA,OAAO,IAAI;IACb,CAAC,EACD,CAACL,IAAI,EAAEE,kBAAkB,CAC3B,CAAC;IACD,oBACElD,KAAA,CAAAuD,aAAA,CAACtD,yBAAA,CAAAuD,wBAAwB,EAAAjC,QAAA,KACnBmB,mBAAmB;MACvB;MACAD,GAAG,EAAES;IAAmB,iBAExBlD,KAAA,CAAAuD,aAAA,CAACpB,SAAS,EAAAZ,QAAA,KAAKiB,KAAK;MAAEC,GAAG,EAAEO;IAAK,EAAE,CACV,CAAC;EAE/B,CAAC,CAAC;;EAEF;EACAV,gBAAgB,CAACmB,WAAW,GAC1B,CAAAtB,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEsB,WAAW,OACtB;EACAtB,SAAS,aAATA,SAAS,gBAAAE,iBAAA,GAATF,SAAS,CAAEuB,MAAM,cAAArB,iBAAA,uBAAjBA,iBAAA,CAAmBsB,IAAI,KACtB,OAAOxB,SAAS,KAAK,QAAQ,IAAIA,SAAU,IAC5C,kBAAkB;EAEpB,OAAOG,gBAAgB;AACzB"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.scheduleFlushOperations = scheduleFlushOperations;
7
- var _RNGestureHandlerModule = require("../RNGestureHandlerModule");
8
- // RNGH: patch
9
-
10
- let flushOperationsScheduled = false;
11
- function scheduleFlushOperations() {
12
- if (!flushOperationsScheduled) {
13
- flushOperationsScheduled = true;
14
- queueMicrotask(() => {
15
- if (_RNGestureHandlerModule.RNGestureHandlerModule) {
16
- _RNGestureHandlerModule.RNGestureHandlerModule.flushOperations();
17
- }
18
- flushOperationsScheduled = false;
19
- });
20
- }
21
- }
22
- //# sourceMappingURL=gestureHandlerCommon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_RNGestureHandlerModule","require","flushOperationsScheduled","scheduleFlushOperations","queueMicrotask","RNGestureHandlerModule","flushOperations"],"sourceRoot":"..\\..\\..\\src","sources":["handlers/gestureHandlerCommon.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAAoE;;AAEpE,IAAIC,wBAAwB,GAAG,KAAK;AAE7B,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACD,wBAAwB,EAAE;IAC7BA,wBAAwB,GAAG,IAAI;IAC/BE,cAAc,CAAC,MAAM;MACnB,IAAIC,8CAAsB,EAAE;QAC1BA,8CAAsB,CAACC,eAAe,CAAC,CAAC;MAC1C;MACAJ,wBAAwB,GAAG,KAAK;IAClC,CAAC,CAAC;EACJ;AACF"}
@@ -1,554 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.GestureDetector = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _gesture = require("react-native-gesture-handler/src/handlers/gestures/gesture");
9
- var _reanimatedWrapper = require("react-native-gesture-handler/src/handlers/gestures/reanimatedWrapper");
10
- var _handlersRegistry = require("react-native-gesture-handler/src/handlers/handlersRegistry");
11
- var _RNGestureHandlerModule = require("../../RNGestureHandlerModule");
12
- var _gestureHandlerCommon = require("react-native-gesture-handler/src/handlers/gestureHandlerCommon");
13
- var _gestureHandlerCommon2 = require("../gestureHandlerCommon");
14
- var _gestureStateManager = require("react-native-gesture-handler/src/handlers/gestures/gestureStateManager");
15
- var _FlingGestureHandler = require("react-native-gesture-handler/src/handlers/FlingGestureHandler");
16
- var _ForceTouchGestureHandler = require("react-native-gesture-handler/src/handlers/ForceTouchGestureHandler");
17
- var _LongPressGestureHandler = require("react-native-gesture-handler/src/handlers/LongPressGestureHandler");
18
- var _PanGestureHandler = require("react-native-gesture-handler/src/handlers/PanGestureHandler");
19
- var _TapGestureHandler = require("react-native-gesture-handler/src/handlers/TapGestureHandler");
20
- var _State = require("react-native-gesture-handler/src/State");
21
- var _TouchEventType = require("react-native-gesture-handler/src/TouchEventType");
22
- var _ActionType = require("react-native-gesture-handler/src/ActionType");
23
- var _utils = require("react-native-gesture-handler/src/utils");
24
- var _getShadowNodeFromRef = require("react-native-gesture-handler/src/getShadowNodeFromRef");
25
- var _reactNative = require("react-native");
26
- var _eventReceiver = require("react-native-gesture-handler/src/handlers/gestures/eventReceiver");
27
- var _RNRenderer = require("react-native-gesture-handler/src/RNRenderer");
28
- var _EnableNewWebImplementation = require("react-native-gesture-handler/src/EnableNewWebImplementation");
29
- var _NativeViewGestureHandler = require("react-native-gesture-handler/src/handlers/NativeViewGestureHandler");
30
- var _GestureHandlerRootViewContext = _interopRequireDefault(require("react-native-gesture-handler/src/GestureHandlerRootViewContext"));
31
- var _Reanimated$default;
32
- /**
33
- * Why is this file patched?
34
- * - replacing import to RNGestureHandlerModule - original code uses (old) Native Modules but RNOH supports only Turbo Modules
35
- */
36
- // RNGH: patch
37
- // RNGH: patch
38
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
40
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
41
- const ALLOWED_PROPS = [..._gestureHandlerCommon.baseGestureHandlerWithMonitorProps, ..._TapGestureHandler.tapGestureHandlerProps, ..._PanGestureHandler.panGestureHandlerProps, ..._PanGestureHandler.panGestureHandlerCustomNativeProps, ..._LongPressGestureHandler.longPressGestureHandlerProps, ..._ForceTouchGestureHandler.forceTouchGestureHandlerProps, ..._FlingGestureHandler.flingGestureHandlerProps, ..._NativeViewGestureHandler.nativeViewGestureHandlerProps];
42
- function convertToHandlerTag(ref) {
43
- if (typeof ref === 'number') {
44
- return ref;
45
- } else if (ref instanceof _gesture.BaseGesture) {
46
- return ref.handlerTag;
47
- } else {
48
- var _ref$current;
49
- // @ts-ignore in this case it should be a ref either to gesture object or
50
- // a gesture handler component, in both cases handlerTag property exists
51
- return ((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.handlerTag) ?? -1;
52
- }
53
- }
54
- function extractValidHandlerTags(interactionGroup) {
55
- var _interactionGroup$map;
56
- return (interactionGroup === null || interactionGroup === void 0 || (_interactionGroup$map = interactionGroup.map(convertToHandlerTag)) === null || _interactionGroup$map === void 0 ? void 0 : _interactionGroup$map.filter(tag => tag > 0)) ?? [];
57
- }
58
- function dropHandlers(preparedGesture) {
59
- for (const handler of preparedGesture.config) {
60
- _RNGestureHandlerModule.RNGestureHandlerModule.dropGestureHandler(handler.handlerTag);
61
- (0, _handlersRegistry.unregisterHandler)(handler.handlerTag, handler.config.testId);
62
- }
63
- (0, _gestureHandlerCommon2.scheduleFlushOperations)();
64
- }
65
- function checkGestureCallbacksForWorklets(gesture) {
66
- // if a gesture is explicitly marked to run on the JS thread there is no need to check
67
- // if callbacks are worklets as the user is aware they will be ran on the JS thread
68
- if (gesture.config.runOnJS) {
69
- return;
70
- }
71
- const areSomeNotWorklets = gesture.handlers.isWorklet.includes(false);
72
- const areSomeWorklets = gesture.handlers.isWorklet.includes(true);
73
-
74
- // if some of the callbacks are worklets and some are not, and the gesture is not
75
- // explicitly marked with `.runOnJS(true)` show an error
76
- if (areSomeNotWorklets && areSomeWorklets) {
77
- console.error((0, _utils.tagMessage)(`Some of the callbacks in the gesture are worklets and some are not. Either make sure that all calbacks are marked as 'worklet' if you wish to run them on the UI thread or use '.runOnJS(true)' modifier on the gesture explicitly to run all callbacks on the JS thread.`));
78
- }
79
- }
80
- function attachHandlers({
81
- preparedGesture,
82
- gestureConfig,
83
- gesture,
84
- viewTag,
85
- webEventHandlersRef,
86
- mountedRef
87
- }) {
88
- if (!preparedGesture.firstExecution) {
89
- gestureConfig.initialize();
90
- } else {
91
- preparedGesture.firstExecution = false;
92
- }
93
-
94
- // use queueMicrotask to extract handlerTags, because all refs should be initialized
95
- // when it's ran
96
- queueMicrotask(() => {
97
- if (!mountedRef.current) {
98
- return;
99
- }
100
- gestureConfig.prepare();
101
- });
102
- for (const handler of gesture) {
103
- checkGestureCallbacksForWorklets(handler);
104
- _RNGestureHandlerModule.RNGestureHandlerModule.createGestureHandler(handler.handlerName, handler.handlerTag, (0, _gestureHandlerCommon.filterConfig)(handler.config, ALLOWED_PROPS));
105
- (0, _handlersRegistry.registerHandler)(handler.handlerTag, handler, handler.config.testId);
106
- }
107
-
108
- // use queueMicrotask to extract handlerTags, because all refs should be initialized
109
- // when it's ran
110
- queueMicrotask(() => {
111
- if (!mountedRef.current) {
112
- return;
113
- }
114
- for (const handler of gesture) {
115
- let requireToFail = [];
116
- if (handler.config.requireToFail) {
117
- requireToFail = extractValidHandlerTags(handler.config.requireToFail);
118
- }
119
- let simultaneousWith = [];
120
- if (handler.config.simultaneousWith) {
121
- simultaneousWith = extractValidHandlerTags(handler.config.simultaneousWith);
122
- }
123
- _RNGestureHandlerModule.RNGestureHandlerModule.updateGestureHandler(handler.handlerTag, (0, _gestureHandlerCommon.filterConfig)(handler.config, ALLOWED_PROPS, {
124
- simultaneousHandlers: simultaneousWith,
125
- waitFor: requireToFail
126
- }));
127
- }
128
- (0, _gestureHandlerCommon2.scheduleFlushOperations)();
129
- });
130
- preparedGesture.config = gesture;
131
- for (const gesture of preparedGesture.config) {
132
- const actionType = gesture.shouldUseReanimated ? _ActionType.ActionType.REANIMATED_WORKLET : _ActionType.ActionType.JS_FUNCTION_NEW_API;
133
- if (_reactNative.Platform.OS === 'web') {
134
- _RNGestureHandlerModule.RNGestureHandlerModule.attachGestureHandler(gesture.handlerTag, viewTag, _ActionType.ActionType.JS_FUNCTION_OLD_API,
135
- // ignored on web
136
- webEventHandlersRef);
137
- } else {
138
- _RNGestureHandlerModule.RNGestureHandlerModule.attachGestureHandler(gesture.handlerTag, viewTag, actionType);
139
- }
140
- }
141
- if (preparedGesture.animatedHandlers) {
142
- const isAnimatedGesture = g => g.shouldUseReanimated;
143
- preparedGesture.animatedHandlers.value = gesture.filter(isAnimatedGesture).map(g => g.handlers);
144
- }
145
- }
146
- function updateHandlers(preparedGesture, gestureConfig, gesture, mountedRef) {
147
- gestureConfig.prepare();
148
- for (let i = 0; i < gesture.length; i++) {
149
- const handler = preparedGesture.config[i];
150
- checkGestureCallbacksForWorklets(handler);
151
-
152
- // only update handlerTag when it's actually different, it may be the same
153
- // if gesture config object is wrapped with useMemo
154
- if (gesture[i].handlerTag !== handler.handlerTag) {
155
- gesture[i].handlerTag = handler.handlerTag;
156
- gesture[i].handlers.handlerTag = handler.handlerTag;
157
- }
158
- }
159
-
160
- // use queueMicrotask to extract handlerTags, because when it's ran, all refs should be updated
161
- // and handlerTags in BaseGesture references should be updated in the loop above (we need to wait
162
- // in case of external relations)
163
- queueMicrotask(() => {
164
- if (!mountedRef.current) {
165
- return;
166
- }
167
- for (let i = 0; i < gesture.length; i++) {
168
- const handler = preparedGesture.config[i];
169
- handler.config = gesture[i].config;
170
- handler.handlers = gesture[i].handlers;
171
- const requireToFail = extractValidHandlerTags(handler.config.requireToFail);
172
- const simultaneousWith = extractValidHandlerTags(handler.config.simultaneousWith);
173
- _RNGestureHandlerModule.RNGestureHandlerModule.updateGestureHandler(handler.handlerTag, (0, _gestureHandlerCommon.filterConfig)(handler.config, ALLOWED_PROPS, {
174
- simultaneousHandlers: simultaneousWith,
175
- waitFor: requireToFail
176
- }));
177
- (0, _handlersRegistry.registerHandler)(handler.handlerTag, handler, handler.config.testId);
178
- }
179
- if (preparedGesture.animatedHandlers) {
180
- const previousHandlersValue = preparedGesture.animatedHandlers.value ?? [];
181
- const newHandlersValue = preparedGesture.config.filter(g => g.shouldUseReanimated) // ignore gestures that shouldn't run on UI
182
- .map(g => g.handlers);
183
-
184
- // if amount of gesture configs changes, we need to update the callbacks in shared value
185
- let shouldUpdateSharedValue = previousHandlersValue.length !== newHandlersValue.length;
186
- if (!shouldUpdateSharedValue) {
187
- // if the amount is the same, we need to check if any of the configs inside has changed
188
- for (let i = 0; i < newHandlersValue.length; i++) {
189
- if (
190
- // we can use the `gestureId` prop as it's unique for every config instance
191
- newHandlersValue[i].gestureId !== previousHandlersValue[i].gestureId) {
192
- shouldUpdateSharedValue = true;
193
- break;
194
- }
195
- }
196
- }
197
- if (shouldUpdateSharedValue) {
198
- preparedGesture.animatedHandlers.value = newHandlersValue;
199
- }
200
- }
201
- (0, _gestureHandlerCommon2.scheduleFlushOperations)();
202
- });
203
- }
204
- function needsToReattach(preparedGesture, gesture) {
205
- if (gesture.length !== preparedGesture.config.length) {
206
- return true;
207
- }
208
- for (let i = 0; i < gesture.length; i++) {
209
- if (gesture[i].handlerName !== preparedGesture.config[i].handlerName || gesture[i].shouldUseReanimated !== preparedGesture.config[i].shouldUseReanimated) {
210
- return true;
211
- }
212
- }
213
- return false;
214
- }
215
- function isStateChangeEvent(event) {
216
- 'worklet';
217
-
218
- // @ts-ignore Yes, the oldState prop is missing on GestureTouchEvent, that's the point
219
- return event.oldState != null;
220
- }
221
- function isTouchEvent(event) {
222
- 'worklet';
223
-
224
- return event.eventType != null;
225
- }
226
- function getHandler(type, gesture) {
227
- 'worklet';
228
-
229
- switch (type) {
230
- case _gesture.CALLBACK_TYPE.BEGAN:
231
- return gesture.onBegin;
232
- case _gesture.CALLBACK_TYPE.START:
233
- return gesture.onStart;
234
- case _gesture.CALLBACK_TYPE.UPDATE:
235
- return gesture.onUpdate;
236
- case _gesture.CALLBACK_TYPE.CHANGE:
237
- return gesture.onChange;
238
- case _gesture.CALLBACK_TYPE.END:
239
- return gesture.onEnd;
240
- case _gesture.CALLBACK_TYPE.FINALIZE:
241
- return gesture.onFinalize;
242
- case _gesture.CALLBACK_TYPE.TOUCHES_DOWN:
243
- return gesture.onTouchesDown;
244
- case _gesture.CALLBACK_TYPE.TOUCHES_MOVE:
245
- return gesture.onTouchesMove;
246
- case _gesture.CALLBACK_TYPE.TOUCHES_UP:
247
- return gesture.onTouchesUp;
248
- case _gesture.CALLBACK_TYPE.TOUCHES_CANCELLED:
249
- return gesture.onTouchesCancelled;
250
- }
251
- }
252
- function touchEventTypeToCallbackType(eventType) {
253
- 'worklet';
254
-
255
- switch (eventType) {
256
- case _TouchEventType.TouchEventType.TOUCHES_DOWN:
257
- return _gesture.CALLBACK_TYPE.TOUCHES_DOWN;
258
- case _TouchEventType.TouchEventType.TOUCHES_MOVE:
259
- return _gesture.CALLBACK_TYPE.TOUCHES_MOVE;
260
- case _TouchEventType.TouchEventType.TOUCHES_UP:
261
- return _gesture.CALLBACK_TYPE.TOUCHES_UP;
262
- case _TouchEventType.TouchEventType.TOUCHES_CANCELLED:
263
- return _gesture.CALLBACK_TYPE.TOUCHES_CANCELLED;
264
- }
265
- return _gesture.CALLBACK_TYPE.UNDEFINED;
266
- }
267
- function runWorklet(type, gesture, event, ...args) {
268
- 'worklet';
269
-
270
- const handler = getHandler(type, gesture);
271
- if (gesture.isWorklet[type]) {
272
- // @ts-ignore Logic below makes sure the correct event is send to the
273
- // correct handler.
274
- handler === null || handler === void 0 || handler(event, ...args);
275
- } else if (handler) {
276
- console.warn((0, _utils.tagMessage)('Animated gesture callback must be a worklet'));
277
- }
278
- }
279
- function useAnimatedGesture(preparedGesture, needsRebuild) {
280
- if (!_reanimatedWrapper.Reanimated) {
281
- return;
282
- }
283
-
284
- // Hooks are called conditionally, but the condition is whether the
285
- // react-native-reanimated is installed, which shouldn't change while running
286
- // eslint-disable-next-line react-hooks/rules-of-hooks
287
- const sharedHandlersCallbacks = _reanimatedWrapper.Reanimated.useSharedValue(null);
288
-
289
- // eslint-disable-next-line react-hooks/rules-of-hooks
290
- const lastUpdateEvent = _reanimatedWrapper.Reanimated.useSharedValue([]);
291
-
292
- // not every gesture needs a state controller, init them lazily
293
- const stateControllers = [];
294
- const callback = event => {
295
- 'worklet';
296
-
297
- const currentCallback = sharedHandlersCallbacks.value;
298
- if (!currentCallback) {
299
- return;
300
- }
301
- for (let i = 0; i < currentCallback.length; i++) {
302
- const gesture = currentCallback[i];
303
- if (event.handlerTag === gesture.handlerTag) {
304
- if (isStateChangeEvent(event)) {
305
- if (event.oldState === _State.State.UNDETERMINED && event.state === _State.State.BEGAN) {
306
- runWorklet(_gesture.CALLBACK_TYPE.BEGAN, gesture, event);
307
- } else if ((event.oldState === _State.State.BEGAN || event.oldState === _State.State.UNDETERMINED) && event.state === _State.State.ACTIVE) {
308
- runWorklet(_gesture.CALLBACK_TYPE.START, gesture, event);
309
- lastUpdateEvent.value[gesture.handlerTag] = undefined;
310
- } else if (event.oldState !== event.state && event.state === _State.State.END) {
311
- if (event.oldState === _State.State.ACTIVE) {
312
- runWorklet(_gesture.CALLBACK_TYPE.END, gesture, event, true);
313
- }
314
- runWorklet(_gesture.CALLBACK_TYPE.FINALIZE, gesture, event, true);
315
- } else if ((event.state === _State.State.FAILED || event.state === _State.State.CANCELLED) && event.state !== event.oldState) {
316
- if (event.oldState === _State.State.ACTIVE) {
317
- runWorklet(_gesture.CALLBACK_TYPE.END, gesture, event, false);
318
- }
319
- runWorklet(_gesture.CALLBACK_TYPE.FINALIZE, gesture, event, false);
320
- }
321
- } else if (isTouchEvent(event)) {
322
- if (!stateControllers[i]) {
323
- stateControllers[i] = _gestureStateManager.GestureStateManager.create(event.handlerTag);
324
- }
325
- if (event.eventType !== _TouchEventType.TouchEventType.UNDETERMINED) {
326
- runWorklet(touchEventTypeToCallbackType(event.eventType), gesture, event, stateControllers[i]);
327
- }
328
- } else {
329
- runWorklet(_gesture.CALLBACK_TYPE.UPDATE, gesture, event);
330
- if (gesture.onChange && gesture.changeEventCalculator) {
331
- var _gesture$changeEventC;
332
- runWorklet(_gesture.CALLBACK_TYPE.CHANGE, gesture, (_gesture$changeEventC = gesture.changeEventCalculator) === null || _gesture$changeEventC === void 0 ? void 0 : _gesture$changeEventC.call(gesture, event, lastUpdateEvent.value[gesture.handlerTag]));
333
- lastUpdateEvent.value[gesture.handlerTag] = event;
334
- }
335
- }
336
- }
337
- }
338
- };
339
-
340
- // eslint-disable-next-line react-hooks/rules-of-hooks
341
- const event = _reanimatedWrapper.Reanimated.useEvent(callback, ['onGestureHandlerStateChange', 'onGestureHandlerEvent'], needsRebuild);
342
- preparedGesture.animatedEventHandler = event;
343
- preparedGesture.animatedHandlers = sharedHandlersCallbacks;
344
- }
345
-
346
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
347
- function validateDetectorChildren(ref) {
348
- // finds the first native view under the Wrap component and traverses the fiber tree upwards
349
- // to check whether there is more than one native view as a pseudo-direct child of GestureDetector
350
- // i.e. this is not ok:
351
- // Wrap
352
- // |
353
- // / \
354
- // / \
355
- // / \
356
- // / \
357
- // NativeView NativeView
358
- //
359
- // but this is fine:
360
- // Wrap
361
- // |
362
- // NativeView
363
- // |
364
- // / \
365
- // / \
366
- // / \
367
- // / \
368
- // NativeView NativeView
369
- if (__DEV__ && _reactNative.Platform.OS !== 'web') {
370
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
371
- const wrapType = _utils.REACT_NATIVE_VERSION.minor > 63 || _utils.REACT_NATIVE_VERSION.major > 0 ?
372
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
373
- ref._reactInternals.elementType :
374
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
375
- ref._reactInternalFiber.elementType;
376
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
377
- let instance = _RNRenderer.RNRenderer.findHostInstance_DEPRECATED(ref)._internalFiberInstanceHandleDEV;
378
-
379
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
380
- while (instance && instance.elementType !== wrapType) {
381
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
382
- if (instance.sibling) {
383
- throw new Error('GestureDetector has more than one native view as its children. This can happen if you are using a custom component that renders multiple views, like React.Fragment. You should wrap content of GestureDetector with a <View> or <Animated.View>.');
384
- }
385
-
386
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
387
- instance = instance.return;
388
- }
389
- }
390
- }
391
- const applyUserSelectProp = (userSelect, gesture) => {
392
- for (const g of gesture.toGestureArray()) {
393
- g.config.userSelect = userSelect;
394
- }
395
- };
396
- const GestureDetector = props => {
397
- const rootViewContext = (0, _react.useContext)(_GestureHandlerRootViewContext.default);
398
- if (__DEV__ && !rootViewContext && !(0, _utils.isJestEnv)() && _reactNative.Platform.OS !== 'web' && _reactNative.Platform.OS !== "harmony") {
399
- // RNOH: patch
400
- throw new Error('GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.');
401
- }
402
- const gestureConfig = props.gesture;
403
- if (props.userSelect) {
404
- applyUserSelectProp(props.userSelect, gestureConfig);
405
- }
406
- const gesture = gestureConfig.toGestureArray();
407
- const useReanimatedHook = gesture.some(g => g.shouldUseReanimated);
408
-
409
- // store state in ref to prevent unnecessary renders
410
- const state = (0, _react.useRef)({
411
- firstRender: true,
412
- viewRef: null,
413
- previousViewTag: -1,
414
- forceReattach: false
415
- }).current;
416
- const mountedRef = (0, _react.useRef)(false);
417
- const webEventHandlersRef = (0, _react.useRef)({
418
- onGestureHandlerEvent: e => {
419
- (0, _eventReceiver.onGestureHandlerEvent)(e.nativeEvent);
420
- },
421
- onGestureHandlerStateChange: (0, _EnableNewWebImplementation.isNewWebImplementationEnabled)() ? e => {
422
- (0, _eventReceiver.onGestureHandlerEvent)(e.nativeEvent);
423
- } : undefined
424
- });
425
- const [renderState, setRenderState] = (0, _react.useState)(false);
426
- function forceRender() {
427
- setRenderState(!renderState);
428
- }
429
- const preparedGesture = _react.default.useRef({
430
- config: gesture,
431
- animatedEventHandler: null,
432
- animatedHandlers: null,
433
- firstExecution: true,
434
- useReanimatedHook: useReanimatedHook
435
- }).current;
436
- if (useReanimatedHook !== preparedGesture.useReanimatedHook) {
437
- throw new Error((0, _utils.tagMessage)('You cannot change the thread the callbacks are ran on while the app is running'));
438
- }
439
- function onHandlersUpdate(skipConfigUpdate) {
440
- // if the underlying view has changed we need to reattach handlers to the new view
441
- const viewTag = (0, _gestureHandlerCommon.findNodeHandle)(state.viewRef);
442
- const forceReattach = viewTag !== state.previousViewTag;
443
- if (forceReattach || needsToReattach(preparedGesture, gesture)) {
444
- validateDetectorChildren(state.viewRef);
445
- dropHandlers(preparedGesture);
446
- attachHandlers({
447
- preparedGesture,
448
- gestureConfig,
449
- gesture,
450
- webEventHandlersRef,
451
- viewTag,
452
- mountedRef
453
- });
454
- state.previousViewTag = viewTag;
455
- state.forceReattach = forceReattach;
456
- if (forceReattach) {
457
- forceRender();
458
- }
459
- } else if (!skipConfigUpdate) {
460
- updateHandlers(preparedGesture, gestureConfig, gesture, mountedRef);
461
- }
462
- }
463
-
464
- // Reanimated event should be rebuilt only when gestures are reattached, otherwise
465
- // config update will be enough as all necessary items are stored in shared values anyway
466
- const needsToRebuildReanimatedEvent = preparedGesture.firstExecution || needsToReattach(preparedGesture, gesture) || state.forceReattach;
467
- state.forceReattach = false;
468
- if (preparedGesture.firstExecution) {
469
- gestureConfig.initialize();
470
- }
471
- if (useReanimatedHook) {
472
- // Whether animatedGesture or gesture is used shouldn't change while the app is running
473
- // eslint-disable-next-line react-hooks/rules-of-hooks
474
- useAnimatedGesture(preparedGesture, needsToRebuildReanimatedEvent);
475
- }
476
- (0, _react.useEffect)(() => {
477
- const viewTag = (0, _gestureHandlerCommon.findNodeHandle)(state.viewRef);
478
- state.firstRender = true;
479
- mountedRef.current = true;
480
- validateDetectorChildren(state.viewRef);
481
- attachHandlers({
482
- preparedGesture,
483
- gestureConfig,
484
- gesture,
485
- webEventHandlersRef,
486
- viewTag,
487
- mountedRef
488
- });
489
- return () => {
490
- mountedRef.current = false;
491
- dropHandlers(preparedGesture);
492
- };
493
- }, []);
494
- (0, _react.useEffect)(() => {
495
- if (!state.firstRender) {
496
- onHandlersUpdate();
497
- } else {
498
- state.firstRender = false;
499
- }
500
- }, [props]);
501
- const refFunction = ref => {
502
- if (ref !== null) {
503
- // @ts-ignore Just setting the view ref
504
- state.viewRef = ref;
505
-
506
- // if it's the first render, also set the previousViewTag to prevent reattaching gestures when not needed
507
- if (state.previousViewTag === -1) {
508
- state.previousViewTag = (0, _gestureHandlerCommon.findNodeHandle)(state.viewRef);
509
- }
510
-
511
- // pass true as `skipConfigUpdate`, here we only want to trigger the eventual reattaching of handlers
512
- // in case the view has changed, while config update would be handled be the `useEffect` above
513
- onHandlersUpdate(true);
514
- if ((0, _utils.isFabric)()) {
515
- const node = (0, _getShadowNodeFromRef.getShadowNodeFromRef)(ref);
516
- if (global.isFormsStackingContext(node) === false) {
517
- console.error((0, _utils.tagMessage)('GestureDetector has received a child that may get view-flattened. ' + '\nTo prevent it from misbehaving you need to wrap the child with a `<View collapsable={false}>`.'));
518
- }
519
- }
520
- }
521
- };
522
- if (useReanimatedHook) {
523
- return /*#__PURE__*/_react.default.createElement(AnimatedWrap, {
524
- ref: refFunction,
525
- onGestureHandlerEvent: preparedGesture.animatedEventHandler
526
- }, props.children);
527
- } else {
528
- return /*#__PURE__*/_react.default.createElement(Wrap, {
529
- ref: refFunction
530
- }, props.children);
531
- }
532
- };
533
- exports.GestureDetector = GestureDetector;
534
- class Wrap extends _react.default.Component {
535
- render() {
536
- try {
537
- // I don't think that fighting with types over such a simple function is worth it
538
- // The only thing it does is add 'collapsable: false' to the child component
539
- // to make sure it is in the native view hierarchy so the detector can find
540
- // correct viewTag to attach to.
541
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
542
- const child = _react.default.Children.only(this.props.children);
543
- return /*#__PURE__*/_react.default.cloneElement(child, {
544
- collapsable: false
545
- },
546
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
547
- child.props.children);
548
- } catch (e) {
549
- throw new Error((0, _utils.tagMessage)(`GestureDetector got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`));
550
- }
551
- }
552
- }
553
- const AnimatedWrap = (_reanimatedWrapper.Reanimated === null || _reanimatedWrapper.Reanimated === void 0 || (_Reanimated$default = _reanimatedWrapper.Reanimated.default) === null || _Reanimated$default === void 0 ? void 0 : _Reanimated$default.createAnimatedComponent(Wrap)) ?? Wrap;
554
- //# sourceMappingURL=GestureDetector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_gesture","_reanimatedWrapper","_handlersRegistry","_RNGestureHandlerModule","_gestureHandlerCommon","_gestureHandlerCommon2","_gestureStateManager","_FlingGestureHandler","_ForceTouchGestureHandler","_LongPressGestureHandler","_PanGestureHandler","_TapGestureHandler","_State","_TouchEventType","_ActionType","_utils","_getShadowNodeFromRef","_reactNative","_eventReceiver","_RNRenderer","_EnableNewWebImplementation","_NativeViewGestureHandler","_GestureHandlerRootViewContext","_interopRequireDefault","_Reanimated$default","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ALLOWED_PROPS","baseGestureHandlerWithMonitorProps","tapGestureHandlerProps","panGestureHandlerProps","panGestureHandlerCustomNativeProps","longPressGestureHandlerProps","forceTouchGestureHandlerProps","flingGestureHandlerProps","nativeViewGestureHandlerProps","convertToHandlerTag","ref","BaseGesture","handlerTag","_ref$current","current","extractValidHandlerTags","interactionGroup","_interactionGroup$map","map","filter","tag","dropHandlers","preparedGesture","handler","config","RNGestureHandlerModule","dropGestureHandler","unregisterHandler","testId","scheduleFlushOperations","checkGestureCallbacksForWorklets","gesture","runOnJS","areSomeNotWorklets","handlers","isWorklet","includes","areSomeWorklets","console","error","tagMessage","attachHandlers","gestureConfig","viewTag","webEventHandlersRef","mountedRef","firstExecution","initialize","queueMicrotask","prepare","createGestureHandler","handlerName","filterConfig","registerHandler","requireToFail","simultaneousWith","updateGestureHandler","simultaneousHandlers","waitFor","actionType","shouldUseReanimated","ActionType","REANIMATED_WORKLET","JS_FUNCTION_NEW_API","Platform","OS","attachGestureHandler","JS_FUNCTION_OLD_API","animatedHandlers","isAnimatedGesture","g","value","updateHandlers","length","previousHandlersValue","newHandlersValue","shouldUpdateSharedValue","gestureId","needsToReattach","isStateChangeEvent","event","oldState","isTouchEvent","eventType","getHandler","type","CALLBACK_TYPE","BEGAN","onBegin","START","onStart","UPDATE","onUpdate","CHANGE","onChange","END","onEnd","FINALIZE","onFinalize","TOUCHES_DOWN","onTouchesDown","TOUCHES_MOVE","onTouchesMove","TOUCHES_UP","onTouchesUp","TOUCHES_CANCELLED","onTouchesCancelled","touchEventTypeToCallbackType","TouchEventType","UNDEFINED","runWorklet","args","warn","useAnimatedGesture","needsRebuild","Reanimated","sharedHandlersCallbacks","useSharedValue","lastUpdateEvent","stateControllers","callback","currentCallback","State","UNDETERMINED","state","ACTIVE","undefined","FAILED","CANCELLED","GestureStateManager","create","changeEventCalculator","_gesture$changeEventC","useEvent","animatedEventHandler","validateDetectorChildren","__DEV__","wrapType","REACT_NATIVE_VERSION","minor","major","_reactInternals","elementType","_reactInternalFiber","instance","RNRenderer","findHostInstance_DEPRECATED","_internalFiberInstanceHandleDEV","sibling","Error","return","applyUserSelectProp","userSelect","toGestureArray","GestureDetector","props","rootViewContext","useContext","GestureHandlerRootViewContext","isJestEnv","useReanimatedHook","some","useRef","firstRender","viewRef","previousViewTag","forceReattach","onGestureHandlerEvent","nativeEvent","onGestureHandlerStateChange","isNewWebImplementationEnabled","renderState","setRenderState","useState","forceRender","React","onHandlersUpdate","skipConfigUpdate","findNodeHandle","needsToRebuildReanimatedEvent","useEffect","refFunction","isFabric","node","getShadowNodeFromRef","global","isFormsStackingContext","createElement","AnimatedWrap","children","Wrap","exports","Component","render","child","Children","only","cloneElement","collapsable","createAnimatedComponent"],"sourceRoot":"..\\..\\..\\..\\src","sources":["handlers/gestures/GestureDetector.tsx"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAOA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AAUA,IAAAM,sBAAA,GAAAN,OAAA;AAGA,IAAAO,oBAAA,GAAAP,OAAA;AAIA,IAAAQ,oBAAA,GAAAR,OAAA;AACA,IAAAS,yBAAA,GAAAT,OAAA;AACA,IAAAU,wBAAA,GAAAV,OAAA;AACA,IAAAW,kBAAA,GAAAX,OAAA;AAIA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA;AACA,IAAAc,eAAA,GAAAd,OAAA;AAEA,IAAAe,WAAA,GAAAf,OAAA;AACA,IAAAgB,MAAA,GAAAhB,OAAA;AAMA,IAAAiB,qBAAA,GAAAjB,OAAA;AACA,IAAAkB,YAAA,GAAAlB,OAAA;AAEA,IAAAmB,cAAA,GAAAnB,OAAA;AACA,IAAAoB,WAAA,GAAApB,OAAA;AACA,IAAAqB,2BAAA,GAAArB,OAAA;AACA,IAAAsB,yBAAA,GAAAtB,OAAA;AACA,IAAAuB,8BAAA,GAAAC,sBAAA,CAAAxB,OAAA;AAA2G,IAAAyB,mBAAA;AA1D3G;AACA;AACA;AACA;AAYuE;AAarC;AAAA,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,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