@amazon-devices/react-native-gesture-handler 2.0.9000000000 → 4.0.0-rn-83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1300) hide show
  1. package/README.md +70 -0
  2. package/RNGestureHandler.podspec +22 -21
  3. package/ReanimatedDrawerLayout/package.json +6 -0
  4. package/ReanimatedSwipeable/package.json +6 -0
  5. package/SystemBundles/e82012a422f9e1059c6cee278b1f8d0bcc98609171576a84702a68ac119f1947.bundle +14670 -0
  6. package/SystemBundles/e82012a422f9e1059c6cee278b1f8d0bcc98609171576a84702a68ac119f1947.map +5041 -0
  7. package/SystemModules/amzn__react-native-gesture-handler-4.modules.txt +79 -0
  8. package/SystemModules/amzn__react-native-gesture-handler-4.private.modules.txt +67 -0
  9. package/SystemModules/keplerscript-system-bundle-config.json +3 -3
  10. package/android/build.gradle +104 -57
  11. package/android/{src/fabric → fabric/src/main}/java/com/swmansion/gesturehandler/ReactContextExtensions.kt +2 -0
  12. package/android/gradle.properties +3 -3
  13. package/android/noreanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt +3 -1
  14. package/android/nosvg/src/main/java/com/swmansion/gesturehandler/RNSVGHitTester.kt +13 -0
  15. package/android/{src/paper → paper/src/main}/java/com/facebook/react/viewmanagers/RNGestureHandlerButtonManagerDelegate.java +19 -9
  16. package/android/{src/paper → paper/src/main}/java/com/facebook/react/viewmanagers/RNGestureHandlerButtonManagerInterface.java +5 -1
  17. package/android/{src/paper → paper/src/main}/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerDelegate.java +3 -2
  18. package/android/{src/paper → paper/src/main}/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerInterface.java +2 -1
  19. package/android/paper/src/main/java/com/swmansion/gesturehandler/NativeRNGestureHandlerModuleSpec.java +67 -0
  20. package/android/{src/paper → paper/src/main}/java/com/swmansion/gesturehandler/ReactContextExtensions.kt +4 -1
  21. package/android/reanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt +1 -1
  22. package/android/src/main/AndroidManifest.xml +1 -3
  23. package/android/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt +67 -8
  24. package/android/src/main/java/com/swmansion/gesturehandler/core/DiagonalDirections.kt +8 -0
  25. package/android/src/main/java/com/swmansion/gesturehandler/core/FlingGestureHandler.kt +90 -25
  26. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +347 -141
  27. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerInteractionController.kt +4 -4
  28. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +197 -137
  29. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerRegistry.kt +1 -1
  30. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureUtils.kt +15 -2
  31. package/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt +36 -6
  32. package/android/src/main/java/com/swmansion/gesturehandler/core/LongPressGestureHandler.kt +127 -17
  33. package/android/src/main/java/com/swmansion/gesturehandler/core/ManualGestureHandler.kt +12 -1
  34. package/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt +137 -46
  35. package/android/src/main/java/com/swmansion/gesturehandler/core/OnTouchEventListener.kt +3 -3
  36. package/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt +200 -93
  37. package/android/src/main/java/com/swmansion/gesturehandler/core/PinchGestureHandler.kt +21 -14
  38. package/android/src/main/java/com/swmansion/gesturehandler/core/PointerEventsConfig.kt +1 -1
  39. package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureDetector.kt +56 -12
  40. package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureHandler.kt +12 -5
  41. package/android/src/main/java/com/swmansion/gesturehandler/core/ScaleGestureDetector.java +10 -0
  42. package/android/src/main/java/com/swmansion/gesturehandler/core/StylusData.kt +103 -0
  43. package/android/src/main/java/com/swmansion/gesturehandler/core/TapGestureHandler.kt +62 -36
  44. package/android/src/main/java/com/swmansion/gesturehandler/core/Vector.kt +61 -0
  45. package/android/src/main/java/com/swmansion/gesturehandler/react/Extensions.kt +1 -1
  46. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +200 -50
  47. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt +9 -4
  48. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.kt +25 -27
  49. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEventDispatcher.kt +189 -0
  50. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerFactoryUtil.kt +34 -0
  51. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +18 -11
  52. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +70 -645
  53. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt +8 -14
  54. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +38 -19
  55. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +16 -13
  56. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt +2 -4
  57. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.kt +34 -28
  58. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt +11 -10
  59. package/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +15 -12
  60. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/FlingGestureHandlerEventDataBuilder.kt +31 -0
  61. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/GestureHandlerEventDataBuilder.kt +25 -0
  62. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/HoverGestureHandlerEventDataBuilder.kt +38 -0
  63. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/LongPressGestureHandlerEventDataBuilder.kt +34 -0
  64. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/ManualGestureHandlerEventDataBuilder.kt +6 -0
  65. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/NativeGestureHandlerEventDataBuilder.kt +19 -0
  66. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/PanGestureHandlerEventDataBuilder.kt +50 -0
  67. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/PinchGestureHandlerEventDataBuilder.kt +31 -0
  68. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/RotationGestureHandlerEventDataBuilder.kt +31 -0
  69. package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/TapGestureHandlerEventDataBuilder.kt +31 -0
  70. package/android/src/main/jni/CMakeLists.txt +22 -6
  71. package/android/src/main/jni/cpp-adapter.cpp +39 -30
  72. package/android/svg/src/main/java/com/swmansion/gesturehandler/RNSVGHitTester.kt +65 -0
  73. package/{ios → apple}/Handlers/RNFlingHandler.h +1 -0
  74. package/apple/Handlers/RNFlingHandler.m +313 -0
  75. package/{ios → apple}/Handlers/RNForceTouchHandler.m +29 -8
  76. package/{ios → apple}/Handlers/RNHoverHandler.m +84 -15
  77. package/apple/Handlers/RNLongPressHandler.m +290 -0
  78. package/{ios → apple}/Handlers/RNManualHandler.m +58 -13
  79. package/{ios → apple}/Handlers/RNNativeViewHandler.mm +77 -28
  80. package/{ios → apple}/Handlers/RNPanHandler.m +166 -21
  81. package/apple/Handlers/RNPinchHandler.m +186 -0
  82. package/apple/Handlers/RNRotationHandler.m +169 -0
  83. package/{ios → apple}/Handlers/RNTapHandler.m +100 -27
  84. package/apple/RNGHStylusData.h +77 -0
  85. package/apple/RNGHStylusData.m +37 -0
  86. package/apple/RNGHUIKit.h +29 -0
  87. package/apple/RNGHVector.h +31 -0
  88. package/apple/RNGHVector.m +67 -0
  89. package/{ios → apple}/RNGestureHandler.h +23 -3
  90. package/{ios/RNGestureHandler.m → apple/RNGestureHandler.mm} +199 -21
  91. package/apple/RNGestureHandlerButton.h +39 -0
  92. package/apple/RNGestureHandlerButton.mm +214 -0
  93. package/{ios → apple}/RNGestureHandlerButtonComponentView.h +6 -1
  94. package/apple/RNGestureHandlerButtonComponentView.mm +219 -0
  95. package/{ios/RNGestureHandlerButtonManager.m → apple/RNGestureHandlerButtonManager.mm} +5 -3
  96. package/apple/RNGestureHandlerDirection.h +33 -0
  97. package/{ios → apple}/RNGestureHandlerEvents.h +21 -10
  98. package/{ios → apple}/RNGestureHandlerEvents.m +39 -13
  99. package/{ios → apple}/RNGestureHandlerManager.h +7 -2
  100. package/{ios → apple}/RNGestureHandlerManager.mm +84 -18
  101. package/apple/RNGestureHandlerModule.h +19 -0
  102. package/{ios → apple}/RNGestureHandlerModule.mm +88 -73
  103. package/{ios → apple}/RNGestureHandlerPointerTracker.h +5 -5
  104. package/{ios → apple}/RNGestureHandlerPointerTracker.m +21 -14
  105. package/apple/RNGestureHandlerPointerType.h +8 -0
  106. package/{ios → apple}/RNGestureHandlerRegistry.h +1 -1
  107. package/{ios → apple}/RNGestureHandlerRegistry.m +1 -1
  108. package/{ios → apple}/RNManualActivationRecognizer.h +8 -0
  109. package/{ios → apple}/RNManualActivationRecognizer.m +28 -7
  110. package/{ios → apple}/RNRootViewGestureRecognizer.m +77 -4
  111. package/jestSetup.js +22 -3
  112. package/kepler-compatibility.json +2 -3
  113. package/lib/commonjs/ActionType.js.map +1 -1
  114. package/lib/commonjs/Directions.js +21 -5
  115. package/lib/commonjs/Directions.js.map +1 -1
  116. package/lib/commonjs/EnableNewWebImplementation.js +11 -0
  117. package/lib/commonjs/EnableNewWebImplementation.js.map +1 -1
  118. package/lib/commonjs/GestureHandlerRootViewContext.js.map +1 -1
  119. package/lib/commonjs/PlatformConstants.js +1 -2
  120. package/lib/commonjs/PlatformConstants.js.map +1 -1
  121. package/lib/commonjs/PlatformConstants.kepler.js +12 -0
  122. package/lib/commonjs/PlatformConstants.kepler.js.map +1 -0
  123. package/lib/commonjs/PlatformConstants.web.js.map +1 -1
  124. package/lib/commonjs/PointerType.js +15 -0
  125. package/lib/commonjs/PointerType.js.map +1 -0
  126. package/lib/commonjs/RNGestureHandlerModule.js +5 -16
  127. package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
  128. package/lib/commonjs/RNGestureHandlerModule.kepler.js +4 -5
  129. package/lib/commonjs/RNGestureHandlerModule.kepler.js.map +1 -1
  130. package/lib/commonjs/RNGestureHandlerModule.web.js +25 -53
  131. package/lib/commonjs/RNGestureHandlerModule.web.js.map +1 -1
  132. package/lib/commonjs/RNGestureHandlerModule.windows.js +16 -81
  133. package/lib/commonjs/RNGestureHandlerModule.windows.js.map +1 -1
  134. package/lib/commonjs/RNRenderer.js.map +1 -1
  135. package/lib/commonjs/RNRenderer.web.js.map +1 -1
  136. package/lib/commonjs/State.js.map +1 -1
  137. package/lib/commonjs/TouchEventType.js.map +1 -1
  138. package/lib/commonjs/components/DrawerLayout.js +421 -385
  139. package/lib/commonjs/components/DrawerLayout.js.map +1 -1
  140. package/lib/commonjs/components/GestureButtons.js +138 -120
  141. package/lib/commonjs/components/GestureButtons.js.map +1 -1
  142. package/lib/commonjs/components/GestureButtonsProps.js +6 -0
  143. package/lib/commonjs/components/GestureButtonsProps.js.map +1 -0
  144. package/lib/commonjs/components/GestureComponents.js +16 -14
  145. package/lib/commonjs/components/GestureComponents.js.map +1 -1
  146. package/lib/commonjs/components/GestureComponents.web.js +10 -9
  147. package/lib/commonjs/components/GestureComponents.web.js.map +1 -1
  148. package/lib/commonjs/components/GestureHandlerButton.js.map +1 -1
  149. package/lib/commonjs/components/GestureHandlerButton.web.js +6 -6
  150. package/lib/commonjs/components/GestureHandlerButton.web.js.map +1 -1
  151. package/lib/commonjs/components/GestureHandlerRootView.android.js +20 -7
  152. package/lib/commonjs/components/GestureHandlerRootView.android.js.map +1 -1
  153. package/lib/commonjs/components/GestureHandlerRootView.js +19 -7
  154. package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
  155. package/lib/commonjs/components/GestureHandlerRootView.kepler.js +9 -6
  156. package/lib/commonjs/components/GestureHandlerRootView.kepler.js.map +1 -1
  157. package/lib/commonjs/components/GestureHandlerRootView.web.js +18 -6
  158. package/lib/commonjs/components/GestureHandlerRootView.web.js.map +1 -1
  159. package/lib/commonjs/components/Pressable/Pressable.js +274 -0
  160. package/lib/commonjs/components/Pressable/Pressable.js.map +1 -0
  161. package/lib/commonjs/components/Pressable/PressableProps.js +6 -0
  162. package/lib/commonjs/components/Pressable/PressableProps.js.map +1 -0
  163. package/lib/commonjs/components/Pressable/StateMachine.js +44 -0
  164. package/lib/commonjs/components/Pressable/StateMachine.js.map +1 -0
  165. package/lib/commonjs/components/Pressable/index.js +14 -0
  166. package/lib/commonjs/components/Pressable/index.js.map +1 -0
  167. package/lib/commonjs/components/Pressable/stateDefinitions.js +88 -0
  168. package/lib/commonjs/components/Pressable/stateDefinitions.js.map +1 -0
  169. package/lib/commonjs/components/Pressable/utils.js +92 -0
  170. package/lib/commonjs/components/Pressable/utils.js.map +1 -0
  171. package/lib/commonjs/components/ReanimatedDrawerLayout.js +357 -0
  172. package/lib/commonjs/components/ReanimatedDrawerLayout.js.map +1 -0
  173. package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeable.js +337 -0
  174. package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -0
  175. package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js +12 -0
  176. package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +1 -0
  177. package/lib/commonjs/components/ReanimatedSwipeable/index.js +21 -0
  178. package/lib/commonjs/components/ReanimatedSwipeable/index.js.map +1 -0
  179. package/lib/commonjs/components/Swipeable.js +286 -261
  180. package/lib/commonjs/components/Swipeable.js.map +1 -1
  181. package/lib/commonjs/components/Text.js +60 -0
  182. package/lib/commonjs/components/Text.js.map +1 -0
  183. package/lib/commonjs/components/gestureHandlerRootHOC.js +12 -6
  184. package/lib/commonjs/components/gestureHandlerRootHOC.js.map +1 -1
  185. package/lib/commonjs/components/touchables/ExtraButtonProps.js +2 -0
  186. package/lib/commonjs/components/touchables/ExtraButtonProps.js.map +1 -0
  187. package/lib/commonjs/components/touchables/GenericTouchable.js +83 -91
  188. package/lib/commonjs/components/touchables/GenericTouchable.js.map +1 -1
  189. package/lib/commonjs/components/touchables/GenericTouchableProps.js +6 -0
  190. package/lib/commonjs/components/touchables/GenericTouchableProps.js.map +1 -0
  191. package/lib/commonjs/components/touchables/TouchableHighlight.js +51 -48
  192. package/lib/commonjs/components/touchables/TouchableHighlight.js.map +1 -1
  193. package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js +35 -35
  194. package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js.map +1 -1
  195. package/lib/commonjs/components/touchables/TouchableNativeFeedback.js +5 -1
  196. package/lib/commonjs/components/touchables/TouchableNativeFeedback.js.map +1 -1
  197. package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js +6 -0
  198. package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js.map +1 -0
  199. package/lib/commonjs/components/touchables/TouchableOpacity.js +39 -38
  200. package/lib/commonjs/components/touchables/TouchableOpacity.js.map +1 -1
  201. package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +22 -7
  202. package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +1 -1
  203. package/lib/commonjs/components/touchables/index.js.map +1 -1
  204. package/lib/commonjs/components/utils.js +17 -0
  205. package/lib/commonjs/components/utils.js.map +1 -0
  206. package/lib/commonjs/findNodeHandle.js +9 -0
  207. package/lib/commonjs/findNodeHandle.js.map +1 -0
  208. package/lib/commonjs/findNodeHandle.web.js +39 -0
  209. package/lib/commonjs/findNodeHandle.web.js.map +1 -0
  210. package/lib/commonjs/getShadowNodeFromRef.js +28 -4
  211. package/lib/commonjs/getShadowNodeFromRef.js.map +1 -1
  212. package/lib/commonjs/getShadowNodeFromRef.web.js.map +1 -1
  213. package/lib/commonjs/ghQueueMicrotask.js +10 -0
  214. package/lib/commonjs/ghQueueMicrotask.js.map +1 -0
  215. package/lib/commonjs/handlers/FlingGestureHandler.js +13 -0
  216. package/lib/commonjs/handlers/FlingGestureHandler.js.map +1 -1
  217. package/lib/commonjs/handlers/ForceTouchGestureHandler.js +15 -6
  218. package/lib/commonjs/handlers/ForceTouchGestureHandler.js.map +1 -1
  219. package/lib/commonjs/handlers/GestureHandlerEventPayload.js +6 -0
  220. package/lib/commonjs/handlers/GestureHandlerEventPayload.js.map +1 -0
  221. package/lib/commonjs/handlers/LongPressGestureHandler.js +14 -1
  222. package/lib/commonjs/handlers/LongPressGestureHandler.js.map +1 -1
  223. package/lib/commonjs/handlers/NativeViewGestureHandler.js +13 -0
  224. package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +1 -1
  225. package/lib/commonjs/handlers/PanGestureHandler.js +13 -0
  226. package/lib/commonjs/handlers/PanGestureHandler.js.map +1 -1
  227. package/lib/commonjs/handlers/PinchGestureHandler.js +12 -0
  228. package/lib/commonjs/handlers/PinchGestureHandler.js.map +1 -1
  229. package/lib/commonjs/handlers/PressabilityDebugView.js.map +1 -1
  230. package/lib/commonjs/handlers/PressabilityDebugView.web.js.map +1 -1
  231. package/lib/commonjs/handlers/RotationGestureHandler.js +12 -0
  232. package/lib/commonjs/handlers/RotationGestureHandler.js.map +1 -1
  233. package/lib/commonjs/handlers/TapGestureHandler.js +13 -0
  234. package/lib/commonjs/handlers/TapGestureHandler.js.map +1 -1
  235. package/lib/commonjs/handlers/createHandler.js +144 -144
  236. package/lib/commonjs/handlers/createHandler.js.map +1 -1
  237. package/lib/commonjs/handlers/createNativeWrapper.js +19 -16
  238. package/lib/commonjs/handlers/createNativeWrapper.js.map +1 -1
  239. package/lib/commonjs/handlers/customDirectEventTypes.js +13 -0
  240. package/lib/commonjs/handlers/customDirectEventTypes.js.map +1 -0
  241. package/lib/commonjs/handlers/customDirectEventTypes.web.js +10 -0
  242. package/lib/commonjs/handlers/customDirectEventTypes.web.js.map +1 -0
  243. package/lib/commonjs/handlers/gestureHandlerCommon.js +13 -72
  244. package/lib/commonjs/handlers/gestureHandlerCommon.js.map +1 -1
  245. package/lib/commonjs/handlers/gestureHandlerTypesCompat.js.map +1 -1
  246. package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js +32 -0
  247. package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js.map +1 -0
  248. package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js +41 -0
  249. package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js.map +1 -0
  250. package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js +67 -0
  251. package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js.map +1 -0
  252. package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js +20 -0
  253. package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js.map +1 -0
  254. package/lib/commonjs/handlers/gestures/GestureDetector/index.js +125 -0
  255. package/lib/commonjs/handlers/gestures/GestureDetector/index.js.map +1 -0
  256. package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js +22 -0
  257. package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js.map +1 -0
  258. package/lib/commonjs/handlers/gestures/GestureDetector/types.js +6 -0
  259. package/lib/commonjs/handlers/gestures/GestureDetector/types.js.map +1 -0
  260. package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js +66 -0
  261. package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js.map +1 -0
  262. package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js +143 -0
  263. package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +1 -0
  264. package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js +47 -0
  265. package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +1 -0
  266. package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js +41 -0
  267. package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js.map +1 -0
  268. package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js +45 -0
  269. package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js.map +1 -0
  270. package/lib/commonjs/handlers/gestures/GestureDetector/utils.js +143 -0
  271. package/lib/commonjs/handlers/gestures/GestureDetector/utils.js.map +1 -0
  272. package/lib/commonjs/handlers/gestures/eventReceiver.js +15 -23
  273. package/lib/commonjs/handlers/gestures/eventReceiver.js.map +1 -1
  274. package/lib/commonjs/handlers/gestures/flingGesture.js +14 -4
  275. package/lib/commonjs/handlers/gestures/flingGesture.js.map +1 -1
  276. package/lib/commonjs/handlers/gestures/forceTouchGesture.js +30 -4
  277. package/lib/commonjs/handlers/gestures/forceTouchGesture.js.map +1 -1
  278. package/lib/commonjs/handlers/gestures/gesture.js +162 -20
  279. package/lib/commonjs/handlers/gestures/gesture.js.map +1 -1
  280. package/lib/commonjs/handlers/gestures/gestureComposition.js +9 -9
  281. package/lib/commonjs/handlers/gestures/gestureComposition.js.map +1 -1
  282. package/lib/commonjs/handlers/gestures/gestureObjects.js +59 -0
  283. package/lib/commonjs/handlers/gestures/gestureObjects.js.map +1 -1
  284. package/lib/commonjs/handlers/gestures/gestureStateManager.js +50 -40
  285. package/lib/commonjs/handlers/gestures/gestureStateManager.js.map +1 -1
  286. package/lib/commonjs/handlers/gestures/gestureStateManager.web.js +2 -1
  287. package/lib/commonjs/handlers/gestures/gestureStateManager.web.js.map +1 -1
  288. package/lib/commonjs/handlers/gestures/hoverGesture.js +2 -5
  289. package/lib/commonjs/handlers/gestures/hoverGesture.js.map +1 -1
  290. package/lib/commonjs/handlers/gestures/longPressGesture.js +22 -4
  291. package/lib/commonjs/handlers/gestures/longPressGesture.js.map +1 -1
  292. package/lib/commonjs/handlers/gestures/manualGesture.js.map +1 -1
  293. package/lib/commonjs/handlers/gestures/nativeGesture.js +11 -4
  294. package/lib/commonjs/handlers/gestures/nativeGesture.js.map +1 -1
  295. package/lib/commonjs/handlers/gestures/panGesture.js +77 -4
  296. package/lib/commonjs/handlers/gestures/panGesture.js.map +1 -1
  297. package/lib/commonjs/handlers/gestures/pinchGesture.js.map +1 -1
  298. package/lib/commonjs/handlers/gestures/reanimatedWrapper.js +1 -2
  299. package/lib/commonjs/handlers/gestures/reanimatedWrapper.js.map +1 -1
  300. package/lib/commonjs/handlers/gestures/rotationGesture.js.map +1 -1
  301. package/lib/commonjs/handlers/gestures/tapGesture.js +43 -4
  302. package/lib/commonjs/handlers/gestures/tapGesture.js.map +1 -1
  303. package/lib/commonjs/handlers/getNextHandlerTag.js +11 -0
  304. package/lib/commonjs/handlers/getNextHandlerTag.js.map +1 -0
  305. package/lib/commonjs/handlers/handlersRegistry.js +7 -9
  306. package/lib/commonjs/handlers/handlersRegistry.js.map +1 -1
  307. package/lib/commonjs/handlers/utils.js +69 -0
  308. package/lib/commonjs/handlers/utils.js.map +1 -0
  309. package/lib/commonjs/index.js +28 -0
  310. package/lib/commonjs/index.js.map +1 -1
  311. package/lib/commonjs/init.js +1 -1
  312. package/lib/commonjs/init.js.map +1 -1
  313. package/lib/commonjs/jestUtils/index.js.map +1 -1
  314. package/lib/commonjs/jestUtils/jestUtils.js +18 -14
  315. package/lib/commonjs/jestUtils/jestUtils.js.map +1 -1
  316. package/lib/commonjs/mocks/Pressable.js +13 -0
  317. package/lib/commonjs/mocks/Pressable.js.map +1 -0
  318. package/lib/commonjs/mocks/mocks.js +70 -0
  319. package/lib/commonjs/mocks/mocks.js.map +1 -0
  320. package/lib/commonjs/mocks.js.map +1 -1
  321. package/lib/commonjs/mountRegistry.js +37 -0
  322. package/lib/commonjs/mountRegistry.js.map +1 -0
  323. package/lib/commonjs/package.json +1 -0
  324. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +9 -0
  325. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -0
  326. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.kepler.js.map +1 -1
  327. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.ts +24 -0
  328. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.kepler.js +17 -0
  329. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.kepler.js.map +1 -0
  330. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.ts +7 -0
  331. package/lib/commonjs/typeUtils.js.map +1 -1
  332. package/lib/commonjs/utils.js +47 -16
  333. package/lib/commonjs/utils.js.map +1 -1
  334. package/lib/commonjs/web/Gestures.js +48 -0
  335. package/lib/commonjs/web/Gestures.js.map +1 -0
  336. package/lib/commonjs/web/constants.js +2 -7
  337. package/lib/commonjs/web/constants.js.map +1 -1
  338. package/lib/commonjs/web/detectors/RotationGestureDetector.js +35 -40
  339. package/lib/commonjs/web/detectors/RotationGestureDetector.js.map +1 -1
  340. package/lib/commonjs/web/detectors/ScaleGestureDetector.js +30 -46
  341. package/lib/commonjs/web/detectors/ScaleGestureDetector.js.map +1 -1
  342. package/lib/commonjs/web/handlers/FlingGestureHandler.js +50 -34
  343. package/lib/commonjs/web/handlers/FlingGestureHandler.js.map +1 -1
  344. package/lib/commonjs/web/handlers/GestureHandler.js +218 -197
  345. package/lib/commonjs/web/handlers/GestureHandler.js.map +1 -1
  346. package/lib/commonjs/web/handlers/HoverGestureHandler.js +12 -15
  347. package/lib/commonjs/web/handlers/HoverGestureHandler.js.map +1 -1
  348. package/lib/commonjs/web/handlers/IGestureHandler.js +2 -0
  349. package/lib/commonjs/web/handlers/IGestureHandler.js.map +1 -0
  350. package/lib/commonjs/web/handlers/LongPressGestureHandler.js +57 -30
  351. package/lib/commonjs/web/handlers/LongPressGestureHandler.js.map +1 -1
  352. package/lib/commonjs/web/handlers/ManualGestureHandler.js +1 -12
  353. package/lib/commonjs/web/handlers/ManualGestureHandler.js.map +1 -1
  354. package/lib/commonjs/web/handlers/NativeViewGestureHandler.js +42 -41
  355. package/lib/commonjs/web/handlers/NativeViewGestureHandler.js.map +1 -1
  356. package/lib/commonjs/web/handlers/PanGestureHandler.js +117 -65
  357. package/lib/commonjs/web/handlers/PanGestureHandler.js.map +1 -1
  358. package/lib/commonjs/web/handlers/PinchGestureHandler.js +36 -50
  359. package/lib/commonjs/web/handlers/PinchGestureHandler.js.map +1 -1
  360. package/lib/commonjs/web/handlers/RotationGestureHandler.js +32 -49
  361. package/lib/commonjs/web/handlers/RotationGestureHandler.js.map +1 -1
  362. package/lib/commonjs/web/handlers/TapGestureHandler.js +39 -43
  363. package/lib/commonjs/web/handlers/TapGestureHandler.js.map +1 -1
  364. package/lib/commonjs/web/interfaces.js +6 -18
  365. package/lib/commonjs/web/interfaces.js.map +1 -1
  366. package/lib/commonjs/web/tools/CircularBuffer.js +12 -19
  367. package/lib/commonjs/web/tools/CircularBuffer.js.map +1 -1
  368. package/lib/commonjs/web/tools/EventManager.js +7 -8
  369. package/lib/commonjs/web/tools/EventManager.js.map +1 -1
  370. package/lib/commonjs/web/tools/GestureHandlerDelegate.js.map +1 -1
  371. package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js +121 -159
  372. package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js.map +1 -1
  373. package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +102 -30
  374. package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +1 -1
  375. package/lib/commonjs/web/tools/InteractionManager.js +44 -47
  376. package/lib/commonjs/web/tools/InteractionManager.js.map +1 -1
  377. package/lib/commonjs/web/tools/KeyboardEventManager.js +108 -0
  378. package/lib/commonjs/web/tools/KeyboardEventManager.js.map +1 -0
  379. package/lib/commonjs/web/tools/LeastSquareSolver.js +22 -30
  380. package/lib/commonjs/web/tools/LeastSquareSolver.js.map +1 -1
  381. package/lib/commonjs/web/tools/NodeManager.js +5 -7
  382. package/lib/commonjs/web/tools/NodeManager.js.map +1 -1
  383. package/lib/commonjs/web/tools/PointerEventManager.js +148 -130
  384. package/lib/commonjs/web/tools/PointerEventManager.js.map +1 -1
  385. package/lib/commonjs/web/tools/PointerTracker.js +97 -107
  386. package/lib/commonjs/web/tools/PointerTracker.js.map +1 -1
  387. package/lib/commonjs/web/tools/Vector.js +37 -0
  388. package/lib/commonjs/web/tools/Vector.js.map +1 -0
  389. package/lib/commonjs/web/tools/VelocityTracker.js +11 -15
  390. package/lib/commonjs/web/tools/VelocityTracker.js.map +1 -1
  391. package/lib/commonjs/web/tools/WheelEventManager.js +55 -0
  392. package/lib/commonjs/web/tools/WheelEventManager.js.map +1 -0
  393. package/lib/commonjs/web/utils.js +221 -0
  394. package/lib/commonjs/web/utils.js.map +1 -1
  395. package/lib/commonjs/web_hammer/DiscreteGestureHandler.js +1 -1
  396. package/lib/commonjs/web_hammer/DiscreteGestureHandler.js.map +1 -1
  397. package/lib/commonjs/web_hammer/DraggingGestureHandler.js +1 -1
  398. package/lib/commonjs/web_hammer/DraggingGestureHandler.js.map +1 -1
  399. package/lib/commonjs/web_hammer/Errors.js.map +1 -1
  400. package/lib/commonjs/web_hammer/FlingGestureHandler.js +1 -1
  401. package/lib/commonjs/web_hammer/FlingGestureHandler.js.map +1 -1
  402. package/lib/commonjs/web_hammer/GestureHandler.js +122 -129
  403. package/lib/commonjs/web_hammer/GestureHandler.js.map +1 -1
  404. package/lib/commonjs/web_hammer/IndiscreteGestureHandler.js.map +1 -1
  405. package/lib/commonjs/web_hammer/LongPressGestureHandler.js +1 -1
  406. package/lib/commonjs/web_hammer/LongPressGestureHandler.js.map +1 -1
  407. package/lib/commonjs/web_hammer/NativeViewGestureHandler.js +1 -2
  408. package/lib/commonjs/web_hammer/NativeViewGestureHandler.js.map +1 -1
  409. package/lib/commonjs/web_hammer/NodeManager.js +2 -1
  410. package/lib/commonjs/web_hammer/NodeManager.js.map +1 -1
  411. package/lib/commonjs/web_hammer/PanGestureHandler.js.map +1 -1
  412. package/lib/commonjs/web_hammer/PinchGestureHandler.js.map +1 -1
  413. package/lib/commonjs/web_hammer/PressGestureHandler.js +2 -9
  414. package/lib/commonjs/web_hammer/PressGestureHandler.js.map +1 -1
  415. package/lib/commonjs/web_hammer/RotationGestureHandler.js +1 -2
  416. package/lib/commonjs/web_hammer/RotationGestureHandler.js.map +1 -1
  417. package/lib/commonjs/web_hammer/TapGestureHandler.js +19 -27
  418. package/lib/commonjs/web_hammer/TapGestureHandler.js.map +1 -1
  419. package/lib/commonjs/web_hammer/constants.js.map +1 -1
  420. package/lib/commonjs/web_hammer/utils.js.map +1 -1
  421. package/lib/module/ActionType.js +2 -0
  422. package/lib/module/ActionType.js.map +1 -1
  423. package/lib/module/Directions.js +22 -4
  424. package/lib/module/Directions.js.map +1 -1
  425. package/lib/module/EnableNewWebImplementation.js +13 -0
  426. package/lib/module/EnableNewWebImplementation.js.map +1 -1
  427. package/lib/module/GestureHandlerRootViewContext.js +2 -0
  428. package/lib/module/GestureHandlerRootViewContext.js.map +1 -1
  429. package/lib/module/PlatformConstants.js +3 -2
  430. package/lib/module/PlatformConstants.js.map +1 -1
  431. package/lib/module/PlatformConstants.kepler.js +8 -0
  432. package/lib/module/PlatformConstants.kepler.js.map +1 -0
  433. package/lib/module/PlatformConstants.web.js +2 -0
  434. package/lib/module/PlatformConstants.web.js.map +1 -1
  435. package/lib/module/PointerType.js +11 -0
  436. package/lib/module/PointerType.js.map +1 -0
  437. package/lib/module/RNGestureHandlerModule.js +6 -15
  438. package/lib/module/RNGestureHandlerModule.js.map +1 -1
  439. package/lib/module/RNGestureHandlerModule.kepler.js +5 -3
  440. package/lib/module/RNGestureHandlerModule.kepler.js.map +1 -1
  441. package/lib/module/RNGestureHandlerModule.web.js +22 -46
  442. package/lib/module/RNGestureHandlerModule.web.js.map +1 -1
  443. package/lib/module/RNGestureHandlerModule.windows.js +16 -78
  444. package/lib/module/RNGestureHandlerModule.windows.js.map +1 -1
  445. package/lib/module/RNRenderer.js +2 -0
  446. package/lib/module/RNRenderer.js.map +1 -1
  447. package/lib/module/RNRenderer.web.js +2 -0
  448. package/lib/module/RNRenderer.web.js.map +1 -1
  449. package/lib/module/State.js +2 -0
  450. package/lib/module/State.js.map +1 -1
  451. package/lib/module/TouchEventType.js +2 -0
  452. package/lib/module/TouchEventType.js.map +1 -1
  453. package/lib/module/components/DrawerLayout.js +420 -383
  454. package/lib/module/components/DrawerLayout.js.map +1 -1
  455. package/lib/module/components/GestureButtons.js +139 -115
  456. package/lib/module/components/GestureButtons.js.map +1 -1
  457. package/lib/module/components/GestureButtonsProps.js +4 -0
  458. package/lib/module/components/GestureButtonsProps.js.map +1 -0
  459. package/lib/module/components/GestureComponents.js +17 -12
  460. package/lib/module/components/GestureComponents.js.map +1 -1
  461. package/lib/module/components/GestureComponents.web.js +11 -7
  462. package/lib/module/components/GestureComponents.web.js.map +1 -1
  463. package/lib/module/components/GestureHandlerButton.js +2 -0
  464. package/lib/module/components/GestureHandlerButton.js.map +1 -1
  465. package/lib/module/components/GestureHandlerButton.web.js +7 -4
  466. package/lib/module/components/GestureHandlerButton.web.js.map +1 -1
  467. package/lib/module/components/GestureHandlerRootView.android.js +21 -5
  468. package/lib/module/components/GestureHandlerRootView.android.js.map +1 -1
  469. package/lib/module/components/GestureHandlerRootView.js +21 -6
  470. package/lib/module/components/GestureHandlerRootView.js.map +1 -1
  471. package/lib/module/components/GestureHandlerRootView.kepler.js +10 -4
  472. package/lib/module/components/GestureHandlerRootView.kepler.js.map +1 -1
  473. package/lib/module/components/GestureHandlerRootView.web.js +20 -5
  474. package/lib/module/components/GestureHandlerRootView.web.js.map +1 -1
  475. package/lib/module/components/Pressable/Pressable.js +268 -0
  476. package/lib/module/components/Pressable/Pressable.js.map +1 -0
  477. package/lib/module/components/Pressable/PressableProps.js +4 -0
  478. package/lib/module/components/Pressable/PressableProps.js.map +1 -0
  479. package/lib/module/components/Pressable/StateMachine.js +40 -0
  480. package/lib/module/components/Pressable/StateMachine.js.map +1 -0
  481. package/lib/module/components/Pressable/index.js +4 -0
  482. package/lib/module/components/Pressable/index.js.map +1 -0
  483. package/lib/module/components/Pressable/stateDefinitions.js +83 -0
  484. package/lib/module/components/Pressable/stateDefinitions.js.map +1 -0
  485. package/lib/module/components/Pressable/utils.js +84 -0
  486. package/lib/module/components/Pressable/utils.js.map +1 -0
  487. package/lib/module/components/ReanimatedDrawerLayout.js +352 -0
  488. package/lib/module/components/ReanimatedDrawerLayout.js.map +1 -0
  489. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js +332 -0
  490. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -0
  491. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js +8 -0
  492. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +1 -0
  493. package/lib/module/components/ReanimatedSwipeable/index.js +5 -0
  494. package/lib/module/components/ReanimatedSwipeable/index.js.map +1 -0
  495. package/lib/module/components/Swipeable.js +285 -259
  496. package/lib/module/components/Swipeable.js.map +1 -1
  497. package/lib/module/components/Text.js +55 -0
  498. package/lib/module/components/Text.js.map +1 -0
  499. package/lib/module/components/gestureHandlerRootHOC.js +14 -3
  500. package/lib/module/components/gestureHandlerRootHOC.js.map +1 -1
  501. package/lib/module/components/touchables/ExtraButtonProps.js +2 -0
  502. package/lib/module/components/touchables/ExtraButtonProps.js.map +1 -0
  503. package/lib/module/components/touchables/GenericTouchable.js +84 -89
  504. package/lib/module/components/touchables/GenericTouchable.js.map +1 -1
  505. package/lib/module/components/touchables/GenericTouchableProps.js +4 -0
  506. package/lib/module/components/touchables/GenericTouchableProps.js.map +1 -0
  507. package/lib/module/components/touchables/TouchableHighlight.js +52 -46
  508. package/lib/module/components/touchables/TouchableHighlight.js.map +1 -1
  509. package/lib/module/components/touchables/TouchableNativeFeedback.android.js +36 -33
  510. package/lib/module/components/touchables/TouchableNativeFeedback.android.js.map +1 -1
  511. package/lib/module/components/touchables/TouchableNativeFeedback.js +8 -1
  512. package/lib/module/components/touchables/TouchableNativeFeedback.js.map +1 -1
  513. package/lib/module/components/touchables/TouchableNativeFeedbackProps.js +4 -0
  514. package/lib/module/components/touchables/TouchableNativeFeedbackProps.js.map +1 -0
  515. package/lib/module/components/touchables/TouchableOpacity.js +40 -36
  516. package/lib/module/components/touchables/TouchableOpacity.js.map +1 -1
  517. package/lib/module/components/touchables/TouchableWithoutFeedback.js +23 -5
  518. package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +1 -1
  519. package/lib/module/components/touchables/index.js +2 -0
  520. package/lib/module/components/touchables/index.js.map +1 -1
  521. package/lib/module/components/utils.js +13 -0
  522. package/lib/module/components/utils.js.map +1 -0
  523. package/lib/module/findNodeHandle.js +5 -0
  524. package/lib/module/findNodeHandle.js.map +1 -0
  525. package/lib/module/findNodeHandle.web.js +35 -0
  526. package/lib/module/findNodeHandle.web.js.map +1 -0
  527. package/lib/module/getShadowNodeFromRef.js +30 -4
  528. package/lib/module/getShadowNodeFromRef.js.map +1 -1
  529. package/lib/module/getShadowNodeFromRef.web.js +2 -0
  530. package/lib/module/getShadowNodeFromRef.web.js.map +1 -1
  531. package/lib/module/ghQueueMicrotask.js +6 -0
  532. package/lib/module/ghQueueMicrotask.js.map +1 -0
  533. package/lib/module/handlers/FlingGestureHandler.js +15 -0
  534. package/lib/module/handlers/FlingGestureHandler.js.map +1 -1
  535. package/lib/module/handlers/ForceTouchGestureHandler.js +17 -6
  536. package/lib/module/handlers/ForceTouchGestureHandler.js.map +1 -1
  537. package/lib/module/handlers/GestureHandlerEventPayload.js +4 -0
  538. package/lib/module/handlers/GestureHandlerEventPayload.js.map +1 -0
  539. package/lib/module/handlers/LongPressGestureHandler.js +16 -1
  540. package/lib/module/handlers/LongPressGestureHandler.js.map +1 -1
  541. package/lib/module/handlers/NativeViewGestureHandler.js +15 -0
  542. package/lib/module/handlers/NativeViewGestureHandler.js.map +1 -1
  543. package/lib/module/handlers/PanGestureHandler.js +15 -0
  544. package/lib/module/handlers/PanGestureHandler.js.map +1 -1
  545. package/lib/module/handlers/PinchGestureHandler.js +15 -0
  546. package/lib/module/handlers/PinchGestureHandler.js.map +1 -1
  547. package/lib/module/handlers/PressabilityDebugView.js +2 -0
  548. package/lib/module/handlers/PressabilityDebugView.js.map +1 -1
  549. package/lib/module/handlers/PressabilityDebugView.web.js +2 -0
  550. package/lib/module/handlers/PressabilityDebugView.web.js.map +1 -1
  551. package/lib/module/handlers/RotationGestureHandler.js +15 -0
  552. package/lib/module/handlers/RotationGestureHandler.js.map +1 -1
  553. package/lib/module/handlers/TapGestureHandler.js +15 -0
  554. package/lib/module/handlers/TapGestureHandler.js.map +1 -1
  555. package/lib/module/handlers/createHandler.js +137 -136
  556. package/lib/module/handlers/createHandler.js.map +1 -1
  557. package/lib/module/handlers/createNativeWrapper.js +19 -12
  558. package/lib/module/handlers/createNativeWrapper.js.map +1 -1
  559. package/lib/module/handlers/customDirectEventTypes.js +5 -0
  560. package/lib/module/handlers/customDirectEventTypes.js.map +1 -0
  561. package/lib/module/handlers/customDirectEventTypes.web.js +7 -0
  562. package/lib/module/handlers/customDirectEventTypes.web.js.map +1 -0
  563. package/lib/module/handlers/gestureHandlerCommon.js +15 -65
  564. package/lib/module/handlers/gestureHandlerCommon.js.map +1 -1
  565. package/lib/module/handlers/gestureHandlerTypesCompat.js +2 -0
  566. package/lib/module/handlers/gestureHandlerTypesCompat.js.map +1 -1
  567. package/lib/module/handlers/gestures/GestureDetector/Wrap.js +26 -0
  568. package/lib/module/handlers/gestures/GestureDetector/Wrap.js.map +1 -0
  569. package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js +36 -0
  570. package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js.map +1 -0
  571. package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js +62 -0
  572. package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js.map +1 -0
  573. package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js +15 -0
  574. package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js.map +1 -0
  575. package/lib/module/handlers/gestures/GestureDetector/index.js +117 -0
  576. package/lib/module/handlers/gestures/GestureDetector/index.js.map +1 -0
  577. package/lib/module/handlers/gestures/GestureDetector/needsToReattach.js +18 -0
  578. package/lib/module/handlers/gestures/GestureDetector/needsToReattach.js.map +1 -0
  579. package/lib/module/handlers/gestures/GestureDetector/types.js +4 -0
  580. package/lib/module/handlers/gestures/GestureDetector/types.js.map +1 -0
  581. package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js +61 -0
  582. package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js.map +1 -0
  583. package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js +139 -0
  584. package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +1 -0
  585. package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js +43 -0
  586. package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +1 -0
  587. package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js +37 -0
  588. package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js.map +1 -0
  589. package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js +40 -0
  590. package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js.map +1 -0
  591. package/lib/module/handlers/gestures/GestureDetector/utils.js +134 -0
  592. package/lib/module/handlers/gestures/GestureDetector/utils.js.map +1 -0
  593. package/lib/module/handlers/gestures/eventReceiver.js +17 -23
  594. package/lib/module/handlers/gestures/eventReceiver.js.map +1 -1
  595. package/lib/module/handlers/gestures/flingGesture.js +16 -4
  596. package/lib/module/handlers/gestures/flingGesture.js.map +1 -1
  597. package/lib/module/handlers/gestures/forceTouchGesture.js +33 -4
  598. package/lib/module/handlers/gestures/forceTouchGesture.js.map +1 -1
  599. package/lib/module/handlers/gestures/gesture.js +163 -19
  600. package/lib/module/handlers/gestures/gesture.js.map +1 -1
  601. package/lib/module/handlers/gestures/gestureComposition.js +11 -9
  602. package/lib/module/handlers/gestures/gestureComposition.js.map +1 -1
  603. package/lib/module/handlers/gestures/gestureObjects.js +62 -0
  604. package/lib/module/handlers/gestures/gestureObjects.js.map +1 -1
  605. package/lib/module/handlers/gestures/gestureStateManager.js +52 -40
  606. package/lib/module/handlers/gestures/gestureStateManager.js.map +1 -1
  607. package/lib/module/handlers/gestures/gestureStateManager.web.js +4 -1
  608. package/lib/module/handlers/gestures/gestureStateManager.web.js.map +1 -1
  609. package/lib/module/handlers/gestures/hoverGesture.js +4 -5
  610. package/lib/module/handlers/gestures/hoverGesture.js.map +1 -1
  611. package/lib/module/handlers/gestures/longPressGesture.js +24 -4
  612. package/lib/module/handlers/gestures/longPressGesture.js.map +1 -1
  613. package/lib/module/handlers/gestures/manualGesture.js +2 -0
  614. package/lib/module/handlers/gestures/manualGesture.js.map +1 -1
  615. package/lib/module/handlers/gestures/nativeGesture.js +13 -4
  616. package/lib/module/handlers/gestures/nativeGesture.js.map +1 -1
  617. package/lib/module/handlers/gestures/panGesture.js +79 -4
  618. package/lib/module/handlers/gestures/panGesture.js.map +1 -1
  619. package/lib/module/handlers/gestures/pinchGesture.js +2 -0
  620. package/lib/module/handlers/gestures/pinchGesture.js.map +1 -1
  621. package/lib/module/handlers/gestures/reanimatedWrapper.js +3 -2
  622. package/lib/module/handlers/gestures/reanimatedWrapper.js.map +1 -1
  623. package/lib/module/handlers/gestures/rotationGesture.js +2 -0
  624. package/lib/module/handlers/gestures/rotationGesture.js.map +1 -1
  625. package/lib/module/handlers/gestures/tapGesture.js +45 -4
  626. package/lib/module/handlers/gestures/tapGesture.js.map +1 -1
  627. package/lib/module/handlers/getNextHandlerTag.js +7 -0
  628. package/lib/module/handlers/getNextHandlerTag.js.map +1 -0
  629. package/lib/module/handlers/handlersRegistry.js +9 -9
  630. package/lib/module/handlers/handlersRegistry.js.map +1 -1
  631. package/lib/module/handlers/utils.js +61 -0
  632. package/lib/module/handlers/utils.js.map +1 -0
  633. package/lib/module/index.js +6 -0
  634. package/lib/module/index.js.map +1 -1
  635. package/lib/module/init.js +3 -1
  636. package/lib/module/init.js.map +1 -1
  637. package/lib/module/jestUtils/index.js +2 -0
  638. package/lib/module/jestUtils/index.js.map +1 -1
  639. package/lib/module/jestUtils/jestUtils.js +20 -14
  640. package/lib/module/jestUtils/jestUtils.js.map +1 -1
  641. package/lib/module/mocks/Pressable.js +4 -0
  642. package/lib/module/mocks/Pressable.js.map +1 -0
  643. package/lib/module/mocks/mocks.js +64 -0
  644. package/lib/module/mocks/mocks.js.map +1 -0
  645. package/lib/module/mocks.js +2 -0
  646. package/lib/module/mocks.js.map +1 -1
  647. package/lib/module/mountRegistry.js +32 -0
  648. package/lib/module/mountRegistry.js.map +1 -0
  649. package/lib/module/specs/NativeRNGestureHandlerModule.js +5 -0
  650. package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -0
  651. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.kepler.js +2 -0
  652. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.kepler.js.map +1 -1
  653. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.ts +24 -0
  654. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.kepler.js +11 -0
  655. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.kepler.js.map +1 -0
  656. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.ts +7 -0
  657. package/lib/module/typeUtils.js +1 -1
  658. package/lib/module/typeUtils.js.map +1 -1
  659. package/lib/module/utils.js +45 -14
  660. package/lib/module/utils.js.map +1 -1
  661. package/lib/module/web/Gestures.js +42 -0
  662. package/lib/module/web/Gestures.js.map +1 -0
  663. package/lib/module/web/constants.js +3 -6
  664. package/lib/module/web/constants.js.map +1 -1
  665. package/lib/module/web/detectors/RotationGestureDetector.js +37 -40
  666. package/lib/module/web/detectors/RotationGestureDetector.js.map +1 -1
  667. package/lib/module/web/detectors/ScaleGestureDetector.js +32 -46
  668. package/lib/module/web/detectors/ScaleGestureDetector.js.map +1 -1
  669. package/lib/module/web/handlers/FlingGestureHandler.js +52 -34
  670. package/lib/module/web/handlers/FlingGestureHandler.js.map +1 -1
  671. package/lib/module/web/handlers/GestureHandler.js +218 -197
  672. package/lib/module/web/handlers/GestureHandler.js.map +1 -1
  673. package/lib/module/web/handlers/HoverGestureHandler.js +14 -15
  674. package/lib/module/web/handlers/HoverGestureHandler.js.map +1 -1
  675. package/lib/module/web/handlers/IGestureHandler.js +2 -0
  676. package/lib/module/web/handlers/IGestureHandler.js.map +1 -0
  677. package/lib/module/web/handlers/LongPressGestureHandler.js +59 -30
  678. package/lib/module/web/handlers/LongPressGestureHandler.js.map +1 -1
  679. package/lib/module/web/handlers/ManualGestureHandler.js +3 -12
  680. package/lib/module/web/handlers/ManualGestureHandler.js.map +1 -1
  681. package/lib/module/web/handlers/NativeViewGestureHandler.js +44 -41
  682. package/lib/module/web/handlers/NativeViewGestureHandler.js.map +1 -1
  683. package/lib/module/web/handlers/PanGestureHandler.js +119 -65
  684. package/lib/module/web/handlers/PanGestureHandler.js.map +1 -1
  685. package/lib/module/web/handlers/PinchGestureHandler.js +38 -50
  686. package/lib/module/web/handlers/PinchGestureHandler.js.map +1 -1
  687. package/lib/module/web/handlers/RotationGestureHandler.js +34 -49
  688. package/lib/module/web/handlers/RotationGestureHandler.js.map +1 -1
  689. package/lib/module/web/handlers/TapGestureHandler.js +41 -43
  690. package/lib/module/web/handlers/TapGestureHandler.js.map +1 -1
  691. package/lib/module/web/interfaces.js +7 -17
  692. package/lib/module/web/interfaces.js.map +1 -1
  693. package/lib/module/web/tools/CircularBuffer.js +14 -19
  694. package/lib/module/web/tools/CircularBuffer.js.map +1 -1
  695. package/lib/module/web/tools/EventManager.js +9 -8
  696. package/lib/module/web/tools/EventManager.js.map +1 -1
  697. package/lib/module/web/tools/GestureHandlerDelegate.js +2 -0
  698. package/lib/module/web/tools/GestureHandlerDelegate.js.map +1 -1
  699. package/lib/module/web/tools/GestureHandlerOrchestrator.js +123 -159
  700. package/lib/module/web/tools/GestureHandlerOrchestrator.js.map +1 -1
  701. package/lib/module/web/tools/GestureHandlerWebDelegate.js +103 -29
  702. package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +1 -1
  703. package/lib/module/web/tools/InteractionManager.js +46 -47
  704. package/lib/module/web/tools/InteractionManager.js.map +1 -1
  705. package/lib/module/web/tools/KeyboardEventManager.js +102 -0
  706. package/lib/module/web/tools/KeyboardEventManager.js.map +1 -0
  707. package/lib/module/web/tools/LeastSquareSolver.js +24 -30
  708. package/lib/module/web/tools/LeastSquareSolver.js.map +1 -1
  709. package/lib/module/web/tools/NodeManager.js +7 -7
  710. package/lib/module/web/tools/NodeManager.js.map +1 -1
  711. package/lib/module/web/tools/PointerEventManager.js +151 -131
  712. package/lib/module/web/tools/PointerEventManager.js.map +1 -1
  713. package/lib/module/web/tools/PointerTracker.js +99 -107
  714. package/lib/module/web/tools/PointerTracker.js.map +1 -1
  715. package/lib/module/web/tools/Vector.js +32 -0
  716. package/lib/module/web/tools/Vector.js.map +1 -0
  717. package/lib/module/web/tools/VelocityTracker.js +13 -15
  718. package/lib/module/web/tools/VelocityTracker.js.map +1 -1
  719. package/lib/module/web/tools/WheelEventManager.js +49 -0
  720. package/lib/module/web/tools/WheelEventManager.js.map +1 -0
  721. package/lib/module/web/utils.js +215 -0
  722. package/lib/module/web/utils.js.map +1 -1
  723. package/lib/module/web_hammer/DiscreteGestureHandler.js +3 -1
  724. package/lib/module/web_hammer/DiscreteGestureHandler.js.map +1 -1
  725. package/lib/module/web_hammer/DraggingGestureHandler.js +3 -1
  726. package/lib/module/web_hammer/DraggingGestureHandler.js.map +1 -1
  727. package/lib/module/web_hammer/Errors.js +2 -0
  728. package/lib/module/web_hammer/Errors.js.map +1 -1
  729. package/lib/module/web_hammer/FlingGestureHandler.js +3 -1
  730. package/lib/module/web_hammer/FlingGestureHandler.js.map +1 -1
  731. package/lib/module/web_hammer/GestureHandler.js +121 -128
  732. package/lib/module/web_hammer/GestureHandler.js.map +1 -1
  733. package/lib/module/web_hammer/IndiscreteGestureHandler.js +2 -0
  734. package/lib/module/web_hammer/IndiscreteGestureHandler.js.map +1 -1
  735. package/lib/module/web_hammer/LongPressGestureHandler.js +3 -1
  736. package/lib/module/web_hammer/LongPressGestureHandler.js.map +1 -1
  737. package/lib/module/web_hammer/NativeViewGestureHandler.js +2 -0
  738. package/lib/module/web_hammer/NativeViewGestureHandler.js.map +1 -1
  739. package/lib/module/web_hammer/NodeManager.js +3 -1
  740. package/lib/module/web_hammer/NodeManager.js.map +1 -1
  741. package/lib/module/web_hammer/PanGestureHandler.js +2 -0
  742. package/lib/module/web_hammer/PanGestureHandler.js.map +1 -1
  743. package/lib/module/web_hammer/PinchGestureHandler.js +2 -0
  744. package/lib/module/web_hammer/PinchGestureHandler.js.map +1 -1
  745. package/lib/module/web_hammer/PressGestureHandler.js +4 -9
  746. package/lib/module/web_hammer/PressGestureHandler.js.map +1 -1
  747. package/lib/module/web_hammer/RotationGestureHandler.js +3 -2
  748. package/lib/module/web_hammer/RotationGestureHandler.js.map +1 -1
  749. package/lib/module/web_hammer/TapGestureHandler.js +21 -27
  750. package/lib/module/web_hammer/TapGestureHandler.js.map +1 -1
  751. package/lib/module/web_hammer/constants.js +2 -0
  752. package/lib/module/web_hammer/constants.js.map +1 -1
  753. package/lib/module/web_hammer/utils.js +2 -0
  754. package/lib/module/web_hammer/utils.js.map +1 -1
  755. package/lib/typescript/ActionType.d.ts +2 -1
  756. package/lib/typescript/ActionType.d.ts.map +1 -0
  757. package/lib/typescript/Directions.d.ts +9 -1
  758. package/lib/typescript/Directions.d.ts.map +1 -0
  759. package/lib/typescript/EnableNewWebImplementation.d.ts +7 -0
  760. package/lib/typescript/EnableNewWebImplementation.d.ts.map +1 -0
  761. package/lib/typescript/GestureHandlerRootViewContext.d.ts +1 -0
  762. package/lib/typescript/GestureHandlerRootViewContext.d.ts.map +1 -0
  763. package/lib/typescript/PlatformConstants.d.ts +1 -0
  764. package/lib/typescript/PlatformConstants.d.ts.map +1 -0
  765. package/lib/typescript/PlatformConstants.kepler.d.ts +5 -0
  766. package/lib/typescript/PlatformConstants.kepler.d.ts.map +1 -0
  767. package/lib/typescript/PlatformConstants.web.d.ts +1 -0
  768. package/lib/typescript/PlatformConstants.web.d.ts.map +1 -0
  769. package/lib/typescript/PointerType.d.ts +8 -0
  770. package/lib/typescript/PointerType.d.ts.map +1 -0
  771. package/lib/typescript/RNGestureHandlerModule.d.ts +3 -13
  772. package/lib/typescript/RNGestureHandlerModule.d.ts.map +1 -0
  773. package/lib/typescript/RNGestureHandlerModule.kepler.d.ts +1 -0
  774. package/lib/typescript/RNGestureHandlerModule.kepler.d.ts.map +1 -0
  775. package/lib/typescript/RNGestureHandlerModule.web.d.ts +5 -39
  776. package/lib/typescript/RNGestureHandlerModule.web.d.ts.map +1 -0
  777. package/lib/typescript/RNGestureHandlerModule.windows.d.ts +6 -21
  778. package/lib/typescript/RNGestureHandlerModule.windows.d.ts.map +1 -0
  779. package/lib/typescript/RNRenderer.d.ts +1 -0
  780. package/lib/typescript/RNRenderer.d.ts.map +1 -0
  781. package/lib/typescript/RNRenderer.web.d.ts +1 -0
  782. package/lib/typescript/RNRenderer.web.d.ts.map +1 -0
  783. package/lib/typescript/State.d.ts +2 -1
  784. package/lib/typescript/State.d.ts.map +1 -0
  785. package/lib/typescript/TouchEventType.d.ts +2 -1
  786. package/lib/typescript/TouchEventType.d.ts.map +1 -0
  787. package/lib/typescript/components/DrawerLayout.d.ts +39 -1
  788. package/lib/typescript/components/DrawerLayout.d.ts.map +1 -0
  789. package/lib/typescript/components/GestureButtons.d.ts +6 -119
  790. package/lib/typescript/components/GestureButtons.d.ts.map +1 -0
  791. package/lib/typescript/components/GestureButtonsProps.d.ts +124 -0
  792. package/lib/typescript/components/GestureButtonsProps.d.ts.map +1 -0
  793. package/lib/typescript/components/GestureComponents.d.ts +4 -3
  794. package/lib/typescript/components/GestureComponents.d.ts.map +1 -0
  795. package/lib/typescript/components/GestureComponents.web.d.ts +1 -0
  796. package/lib/typescript/components/GestureComponents.web.d.ts.map +1 -0
  797. package/lib/typescript/components/GestureHandlerButton.d.ts +2 -1
  798. package/lib/typescript/components/GestureHandlerButton.d.ts.map +1 -0
  799. package/lib/typescript/components/GestureHandlerButton.web.d.ts +1 -0
  800. package/lib/typescript/components/GestureHandlerButton.web.d.ts.map +1 -0
  801. package/lib/typescript/components/GestureHandlerRootView.android.d.ts +2 -1
  802. package/lib/typescript/components/GestureHandlerRootView.android.d.ts.map +1 -0
  803. package/lib/typescript/components/GestureHandlerRootView.d.ts +2 -1
  804. package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -0
  805. package/lib/typescript/components/GestureHandlerRootView.kepler.d.ts +1 -0
  806. package/lib/typescript/components/GestureHandlerRootView.kepler.d.ts.map +1 -0
  807. package/lib/typescript/components/GestureHandlerRootView.web.d.ts +2 -1
  808. package/lib/typescript/components/GestureHandlerRootView.web.d.ts.map +1 -0
  809. package/lib/typescript/components/Pressable/Pressable.d.ts +5 -0
  810. package/lib/typescript/components/Pressable/Pressable.d.ts.map +1 -0
  811. package/lib/typescript/components/Pressable/PressableProps.d.ts +137 -0
  812. package/lib/typescript/components/Pressable/PressableProps.d.ts.map +1 -0
  813. package/lib/typescript/components/Pressable/StateMachine.d.ts +16 -0
  814. package/lib/typescript/components/Pressable/StateMachine.d.ts.map +1 -0
  815. package/lib/typescript/components/Pressable/index.d.ts +3 -0
  816. package/lib/typescript/components/Pressable/index.d.ts.map +1 -0
  817. package/lib/typescript/components/Pressable/stateDefinitions.d.ts +11 -0
  818. package/lib/typescript/components/Pressable/stateDefinitions.d.ts.map +1 -0
  819. package/lib/typescript/components/Pressable/utils.d.ts +11 -0
  820. package/lib/typescript/components/Pressable/utils.d.ts.map +1 -0
  821. package/lib/typescript/components/ReanimatedDrawerLayout.d.ts +168 -0
  822. package/lib/typescript/components/ReanimatedDrawerLayout.d.ts.map +1 -0
  823. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts +6 -0
  824. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts.map +1 -0
  825. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts +150 -0
  826. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts.map +1 -0
  827. package/lib/typescript/components/ReanimatedSwipeable/index.d.ts +3 -0
  828. package/lib/typescript/components/ReanimatedSwipeable/index.d.ts.map +1 -0
  829. package/lib/typescript/components/Swipeable.d.ts +14 -0
  830. package/lib/typescript/components/Swipeable.d.ts.map +1 -0
  831. package/lib/typescript/components/Text.d.ts +5 -0
  832. package/lib/typescript/components/Text.d.ts.map +1 -0
  833. package/lib/typescript/components/gestureHandlerRootHOC.d.ts +6 -1
  834. package/lib/typescript/components/gestureHandlerRootHOC.d.ts.map +1 -0
  835. package/lib/typescript/components/touchables/ExtraButtonProps.d.ts +8 -0
  836. package/lib/typescript/components/touchables/ExtraButtonProps.d.ts.map +1 -0
  837. package/lib/typescript/components/touchables/GenericTouchable.d.ts +4 -16
  838. package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +1 -0
  839. package/lib/typescript/components/touchables/GenericTouchableProps.d.ts +17 -0
  840. package/lib/typescript/components/touchables/GenericTouchableProps.d.ts.map +1 -0
  841. package/lib/typescript/components/touchables/TouchableHighlight.d.ts +7 -1
  842. package/lib/typescript/components/touchables/TouchableHighlight.d.ts.map +1 -0
  843. package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts +6 -10
  844. package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts.map +1 -0
  845. package/lib/typescript/components/touchables/TouchableNativeFeedback.d.ts +6 -1
  846. package/lib/typescript/components/touchables/TouchableNativeFeedback.d.ts.map +1 -0
  847. package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts +9 -0
  848. package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts.map +1 -0
  849. package/lib/typescript/components/touchables/TouchableOpacity.d.ts +7 -1
  850. package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +1 -0
  851. package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +11 -3
  852. package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +1 -0
  853. package/lib/typescript/components/touchables/index.d.ts +1 -0
  854. package/lib/typescript/components/touchables/index.d.ts.map +1 -0
  855. package/lib/typescript/components/utils.d.ts +5 -0
  856. package/lib/typescript/components/utils.d.ts.map +1 -0
  857. package/lib/typescript/findNodeHandle.d.ts +3 -0
  858. package/lib/typescript/findNodeHandle.d.ts.map +1 -0
  859. package/lib/typescript/findNodeHandle.web.d.ts +3 -0
  860. package/lib/typescript/findNodeHandle.web.d.ts.map +1 -0
  861. package/lib/typescript/getShadowNodeFromRef.d.ts +2 -1
  862. package/lib/typescript/getShadowNodeFromRef.d.ts.map +1 -0
  863. package/lib/typescript/getShadowNodeFromRef.web.d.ts +1 -0
  864. package/lib/typescript/getShadowNodeFromRef.web.d.ts.map +1 -0
  865. package/lib/typescript/ghQueueMicrotask.d.ts +2 -0
  866. package/lib/typescript/ghQueueMicrotask.d.ts.map +1 -0
  867. package/lib/typescript/handlers/FlingGestureHandler.d.ts +11 -6
  868. package/lib/typescript/handlers/FlingGestureHandler.d.ts.map +1 -0
  869. package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts +11 -10
  870. package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts.map +1 -0
  871. package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts +198 -0
  872. package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts.map +1 -0
  873. package/lib/typescript/handlers/LongPressGestureHandler.d.ts +16 -36
  874. package/lib/typescript/handlers/LongPressGestureHandler.d.ts.map +1 -0
  875. package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +12 -7
  876. package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +1 -0
  877. package/lib/typescript/handlers/PanGestureHandler.d.ts +16 -55
  878. package/lib/typescript/handlers/PanGestureHandler.d.ts.map +1 -0
  879. package/lib/typescript/handlers/PinchGestureHandler.d.ts +11 -23
  880. package/lib/typescript/handlers/PinchGestureHandler.d.ts.map +1 -0
  881. package/lib/typescript/handlers/PressabilityDebugView.d.ts +1 -0
  882. package/lib/typescript/handlers/PressabilityDebugView.d.ts.map +1 -0
  883. package/lib/typescript/handlers/PressabilityDebugView.web.d.ts +1 -0
  884. package/lib/typescript/handlers/PressabilityDebugView.web.d.ts.map +1 -0
  885. package/lib/typescript/handlers/RotationGestureHandler.d.ts +11 -23
  886. package/lib/typescript/handlers/RotationGestureHandler.d.ts.map +1 -0
  887. package/lib/typescript/handlers/TapGestureHandler.d.ts +11 -6
  888. package/lib/typescript/handlers/TapGestureHandler.d.ts.map +1 -0
  889. package/lib/typescript/handlers/createHandler.d.ts +1 -0
  890. package/lib/typescript/handlers/createHandler.d.ts.map +1 -0
  891. package/lib/typescript/handlers/createNativeWrapper.d.ts +1 -0
  892. package/lib/typescript/handlers/createNativeWrapper.d.ts.map +1 -0
  893. package/lib/typescript/handlers/customDirectEventTypes.d.ts +2 -0
  894. package/lib/typescript/handlers/customDirectEventTypes.d.ts.map +1 -0
  895. package/lib/typescript/handlers/customDirectEventTypes.web.d.ts +3 -0
  896. package/lib/typescript/handlers/customDirectEventTypes.web.d.ts.map +1 -0
  897. package/lib/typescript/handlers/gestureHandlerCommon.d.ts +20 -8
  898. package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +1 -0
  899. package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts +20 -9
  900. package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts.map +1 -0
  901. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts +14 -0
  902. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts.map +1 -0
  903. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts +8 -0
  904. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts.map +1 -0
  905. package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts +14 -0
  906. package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts.map +1 -0
  907. package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts +3 -0
  908. package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts.map +1 -0
  909. package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts +50 -0
  910. package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts.map +1 -0
  911. package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts +4 -0
  912. package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts.map +1 -0
  913. package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts +21 -0
  914. package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts.map +1 -0
  915. package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts +5 -0
  916. package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts.map +1 -0
  917. package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts +3 -0
  918. package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts.map +1 -0
  919. package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts +6 -0
  920. package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts.map +1 -0
  921. package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts +3 -0
  922. package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts.map +1 -0
  923. package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts +4 -0
  924. package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts.map +1 -0
  925. package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +13 -0
  926. package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts.map +1 -0
  927. package/lib/typescript/handlers/gestures/eventReceiver.d.ts +1 -0
  928. package/lib/typescript/handlers/gestures/eventReceiver.d.ts.map +1 -0
  929. package/lib/typescript/handlers/gestures/flingGesture.d.ts +14 -1
  930. package/lib/typescript/handlers/gestures/flingGesture.d.ts.map +1 -0
  931. package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +26 -1
  932. package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts.map +1 -0
  933. package/lib/typescript/handlers/gestures/gesture.d.ts +121 -11
  934. package/lib/typescript/handlers/gestures/gesture.d.ts.map +1 -0
  935. package/lib/typescript/handlers/gestures/gestureComposition.d.ts +1 -0
  936. package/lib/typescript/handlers/gestures/gestureComposition.d.ts.map +1 -0
  937. package/lib/typescript/handlers/gestures/gestureObjects.d.ts +60 -0
  938. package/lib/typescript/handlers/gestures/gestureObjects.d.ts.map +1 -0
  939. package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +6 -1
  940. package/lib/typescript/handlers/gestures/gestureStateManager.d.ts.map +1 -0
  941. package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts +1 -0
  942. package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts.map +1 -0
  943. package/lib/typescript/handlers/gestures/hoverGesture.d.ts +3 -7
  944. package/lib/typescript/handlers/gestures/hoverGesture.d.ts.map +1 -0
  945. package/lib/typescript/handlers/gestures/longPressGesture.d.ts +18 -1
  946. package/lib/typescript/handlers/gestures/longPressGesture.d.ts.map +1 -0
  947. package/lib/typescript/handlers/gestures/manualGesture.d.ts +1 -0
  948. package/lib/typescript/handlers/gestures/manualGesture.d.ts.map +1 -0
  949. package/lib/typescript/handlers/gestures/nativeGesture.d.ts +11 -1
  950. package/lib/typescript/handlers/gestures/nativeGesture.d.ts.map +1 -0
  951. package/lib/typescript/handlers/gestures/panGesture.d.ts +70 -5
  952. package/lib/typescript/handlers/gestures/panGesture.d.ts.map +1 -0
  953. package/lib/typescript/handlers/gestures/pinchGesture.d.ts +2 -1
  954. package/lib/typescript/handlers/gestures/pinchGesture.d.ts.map +1 -0
  955. package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +2 -1
  956. package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts.map +1 -0
  957. package/lib/typescript/handlers/gestures/rotationGesture.d.ts +2 -1
  958. package/lib/typescript/handlers/gestures/rotationGesture.d.ts.map +1 -0
  959. package/lib/typescript/handlers/gestures/tapGesture.d.ts +38 -1
  960. package/lib/typescript/handlers/gestures/tapGesture.d.ts.map +1 -0
  961. package/lib/typescript/handlers/getNextHandlerTag.d.ts +2 -0
  962. package/lib/typescript/handlers/getNextHandlerTag.d.ts.map +1 -0
  963. package/lib/typescript/handlers/handlersRegistry.d.ts +3 -2
  964. package/lib/typescript/handlers/handlersRegistry.d.ts.map +1 -0
  965. package/lib/typescript/handlers/utils.d.ts +8 -0
  966. package/lib/typescript/handlers/utils.d.ts.map +1 -0
  967. package/lib/typescript/index.d.ts +16 -9
  968. package/lib/typescript/index.d.ts.map +1 -0
  969. package/lib/typescript/init.d.ts +1 -0
  970. package/lib/typescript/init.d.ts.map +1 -0
  971. package/lib/typescript/jestUtils/index.d.ts +1 -0
  972. package/lib/typescript/jestUtils/index.d.ts.map +1 -0
  973. package/lib/typescript/jestUtils/jestUtils.d.ts +10 -8
  974. package/lib/typescript/jestUtils/jestUtils.d.ts.map +1 -0
  975. package/lib/typescript/mocks/Pressable.d.ts +2 -0
  976. package/lib/typescript/mocks/Pressable.d.ts.map +1 -0
  977. package/lib/typescript/mocks/mocks.d.ts +47 -0
  978. package/lib/typescript/mocks/mocks.d.ts.map +1 -0
  979. package/lib/typescript/mocks.d.ts +4 -3
  980. package/lib/typescript/mocks.d.ts.map +1 -0
  981. package/lib/typescript/mountRegistry.d.ts +17 -0
  982. package/lib/typescript/mountRegistry.d.ts.map +1 -0
  983. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +15 -0
  984. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -0
  985. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +5 -3
  986. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -0
  987. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.kepler.d.ts +2 -0
  988. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.kepler.d.ts.map +1 -0
  989. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +1 -2
  990. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -0
  991. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.kepler.d.ts +7 -0
  992. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.kepler.d.ts.map +1 -0
  993. package/lib/typescript/typeUtils.d.ts +1 -0
  994. package/lib/typescript/typeUtils.d.ts.map +1 -0
  995. package/lib/typescript/utils.d.ts +14 -5
  996. package/lib/typescript/utils.d.ts.map +1 -0
  997. package/lib/typescript/web/Gestures.d.ts +37 -0
  998. package/lib/typescript/web/Gestures.d.ts.map +1 -0
  999. package/lib/typescript/web/constants.d.ts +2 -6
  1000. package/lib/typescript/web/constants.d.ts.map +1 -0
  1001. package/lib/typescript/web/detectors/RotationGestureDetector.d.ts +8 -7
  1002. package/lib/typescript/web/detectors/RotationGestureDetector.d.ts.map +1 -0
  1003. package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts +9 -8
  1004. package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts.map +1 -0
  1005. package/lib/typescript/web/handlers/FlingGestureHandler.d.ts +4 -4
  1006. package/lib/typescript/web/handlers/FlingGestureHandler.d.ts.map +1 -0
  1007. package/lib/typescript/web/handlers/GestureHandler.d.ts +50 -37
  1008. package/lib/typescript/web/handlers/GestureHandler.d.ts.map +1 -0
  1009. package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +4 -3
  1010. package/lib/typescript/web/handlers/HoverGestureHandler.d.ts.map +1 -0
  1011. package/lib/typescript/web/handlers/IGestureHandler.d.ts +38 -0
  1012. package/lib/typescript/web/handlers/IGestureHandler.d.ts.map +1 -0
  1013. package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +5 -0
  1014. package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts.map +1 -0
  1015. package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +2 -3
  1016. package/lib/typescript/web/handlers/ManualGestureHandler.d.ts.map +1 -0
  1017. package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +3 -1
  1018. package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts.map +1 -0
  1019. package/lib/typescript/web/handlers/PanGestureHandler.d.ts +11 -2
  1020. package/lib/typescript/web/handlers/PanGestureHandler.d.ts.map +1 -0
  1021. package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +2 -2
  1022. package/lib/typescript/web/handlers/PinchGestureHandler.d.ts.map +1 -0
  1023. package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +2 -3
  1024. package/lib/typescript/web/handlers/RotationGestureHandler.d.ts.map +1 -0
  1025. package/lib/typescript/web/handlers/TapGestureHandler.d.ts +2 -1
  1026. package/lib/typescript/web/handlers/TapGestureHandler.d.ts.map +1 -0
  1027. package/lib/typescript/web/interfaces.d.ts +40 -22
  1028. package/lib/typescript/web/interfaces.d.ts.map +1 -0
  1029. package/lib/typescript/web/tools/CircularBuffer.d.ts +4 -3
  1030. package/lib/typescript/web/tools/CircularBuffer.d.ts.map +1 -0
  1031. package/lib/typescript/web/tools/EventManager.d.ts +20 -14
  1032. package/lib/typescript/web/tools/EventManager.d.ts.map +1 -0
  1033. package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts +7 -4
  1034. package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts.map +1 -0
  1035. package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +10 -8
  1036. package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts.map +1 -0
  1037. package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +20 -5
  1038. package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts.map +1 -0
  1039. package/lib/typescript/web/tools/InteractionManager.d.ts +10 -8
  1040. package/lib/typescript/web/tools/InteractionManager.d.ts.map +1 -0
  1041. package/lib/typescript/web/tools/KeyboardEventManager.d.ts +17 -0
  1042. package/lib/typescript/web/tools/KeyboardEventManager.d.ts.map +1 -0
  1043. package/lib/typescript/web/tools/LeastSquareSolver.d.ts +1 -0
  1044. package/lib/typescript/web/tools/LeastSquareSolver.d.ts.map +1 -0
  1045. package/lib/typescript/web/tools/NodeManager.d.ts +6 -4
  1046. package/lib/typescript/web/tools/NodeManager.d.ts.map +1 -0
  1047. package/lib/typescript/web/tools/PointerEventManager.d.ts +14 -2
  1048. package/lib/typescript/web/tools/PointerEventManager.d.ts.map +1 -0
  1049. package/lib/typescript/web/tools/PointerTracker.d.ts +33 -35
  1050. package/lib/typescript/web/tools/PointerTracker.d.ts.map +1 -0
  1051. package/lib/typescript/web/tools/Vector.d.ts +16 -0
  1052. package/lib/typescript/web/tools/Vector.d.ts.map +1 -0
  1053. package/lib/typescript/web/tools/VelocityTracker.d.ts +2 -1
  1054. package/lib/typescript/web/tools/VelocityTracker.d.ts.map +1 -0
  1055. package/lib/typescript/web/tools/WheelEventManager.d.ts +12 -0
  1056. package/lib/typescript/web/tools/WheelEventManager.d.ts.map +1 -0
  1057. package/lib/typescript/web/utils.d.ts +15 -4
  1058. package/lib/typescript/web/utils.d.ts.map +1 -0
  1059. package/lib/typescript/web_hammer/DiscreteGestureHandler.d.ts +1 -0
  1060. package/lib/typescript/web_hammer/DiscreteGestureHandler.d.ts.map +1 -0
  1061. package/lib/typescript/web_hammer/DraggingGestureHandler.d.ts +1 -0
  1062. package/lib/typescript/web_hammer/DraggingGestureHandler.d.ts.map +1 -0
  1063. package/lib/typescript/web_hammer/Errors.d.ts +1 -0
  1064. package/lib/typescript/web_hammer/Errors.d.ts.map +1 -0
  1065. package/lib/typescript/web_hammer/FlingGestureHandler.d.ts +1 -0
  1066. package/lib/typescript/web_hammer/FlingGestureHandler.d.ts.map +1 -0
  1067. package/lib/typescript/web_hammer/GestureHandler.d.ts +1 -0
  1068. package/lib/typescript/web_hammer/GestureHandler.d.ts.map +1 -0
  1069. package/lib/typescript/web_hammer/IndiscreteGestureHandler.d.ts +1 -0
  1070. package/lib/typescript/web_hammer/IndiscreteGestureHandler.d.ts.map +1 -0
  1071. package/lib/typescript/web_hammer/LongPressGestureHandler.d.ts +1 -0
  1072. package/lib/typescript/web_hammer/LongPressGestureHandler.d.ts.map +1 -0
  1073. package/lib/typescript/web_hammer/NativeViewGestureHandler.d.ts +1 -0
  1074. package/lib/typescript/web_hammer/NativeViewGestureHandler.d.ts.map +1 -0
  1075. package/lib/typescript/web_hammer/NodeManager.d.ts +5 -5
  1076. package/lib/typescript/web_hammer/NodeManager.d.ts.map +1 -0
  1077. package/lib/typescript/web_hammer/PanGestureHandler.d.ts +1 -0
  1078. package/lib/typescript/web_hammer/PanGestureHandler.d.ts.map +1 -0
  1079. package/lib/typescript/web_hammer/PinchGestureHandler.d.ts +1 -0
  1080. package/lib/typescript/web_hammer/PinchGestureHandler.d.ts.map +1 -0
  1081. package/lib/typescript/web_hammer/PressGestureHandler.d.ts +1 -0
  1082. package/lib/typescript/web_hammer/PressGestureHandler.d.ts.map +1 -0
  1083. package/lib/typescript/web_hammer/RotationGestureHandler.d.ts +1 -0
  1084. package/lib/typescript/web_hammer/RotationGestureHandler.d.ts.map +1 -0
  1085. package/lib/typescript/web_hammer/TapGestureHandler.d.ts +1 -0
  1086. package/lib/typescript/web_hammer/TapGestureHandler.d.ts.map +1 -0
  1087. package/lib/typescript/web_hammer/constants.d.ts +1 -0
  1088. package/lib/typescript/web_hammer/constants.d.ts.map +1 -0
  1089. package/lib/typescript/web_hammer/utils.d.ts +1 -0
  1090. package/lib/typescript/web_hammer/utils.d.ts.map +1 -0
  1091. package/oss-attribution/attribution.txt +0 -0
  1092. package/oss-attribution/licenseInfos.json +1 -0
  1093. package/package.json +151 -1
  1094. package/react-native.config.js +27 -0
  1095. package/scripts/gesture_handler_utils.rb +25 -0
  1096. package/src/ActionType.ts +1 -1
  1097. package/src/Directions.ts +22 -5
  1098. package/src/EnableNewWebImplementation.ts +18 -0
  1099. package/src/PlatformConstants.kepler.ts +5 -0
  1100. package/src/PointerType.ts +7 -0
  1101. package/src/RNGestureHandlerModule.kepler.ts +3 -3
  1102. package/src/RNGestureHandlerModule.ts +4 -49
  1103. package/src/RNGestureHandlerModule.web.ts +29 -51
  1104. package/src/RNGestureHandlerModule.windows.ts +18 -100
  1105. package/src/State.ts +1 -1
  1106. package/src/TouchEventType.ts +2 -1
  1107. package/src/components/DrawerLayout.tsx +58 -13
  1108. package/src/components/GestureButtons.tsx +61 -123
  1109. package/src/components/GestureButtonsProps.ts +156 -0
  1110. package/src/components/GestureComponents.tsx +11 -11
  1111. package/src/components/GestureComponents.web.tsx +1 -1
  1112. package/src/components/GestureHandlerButton.tsx +1 -1
  1113. package/src/components/GestureHandlerButton.web.tsx +3 -3
  1114. package/src/components/GestureHandlerRootView.android.tsx +15 -7
  1115. package/src/components/GestureHandlerRootView.kepler.tsx +3 -2
  1116. package/src/components/GestureHandlerRootView.tsx +12 -7
  1117. package/src/components/GestureHandlerRootView.web.tsx +11 -6
  1118. package/src/components/Pressable/Pressable.tsx +401 -0
  1119. package/src/components/Pressable/PressableProps.tsx +174 -0
  1120. package/src/components/Pressable/StateMachine.tsx +57 -0
  1121. package/src/components/Pressable/index.ts +5 -0
  1122. package/src/components/Pressable/stateDefinitions.ts +126 -0
  1123. package/src/components/Pressable/utils.ts +140 -0
  1124. package/src/components/ReanimatedDrawerLayout.tsx +754 -0
  1125. package/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +607 -0
  1126. package/src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts +199 -0
  1127. package/src/components/ReanimatedSwipeable/index.ts +6 -0
  1128. package/src/components/Swipeable.tsx +59 -15
  1129. package/src/components/Text.tsx +77 -0
  1130. package/src/components/gestureHandlerRootHOC.tsx +7 -6
  1131. package/src/components/touchables/ExtraButtonProps.ts +7 -0
  1132. package/src/components/touchables/GenericTouchable.tsx +15 -41
  1133. package/src/components/touchables/GenericTouchableProps.ts +28 -0
  1134. package/src/components/touchables/TouchableHighlight.tsx +7 -4
  1135. package/src/components/touchables/TouchableNativeFeedback.android.tsx +10 -18
  1136. package/src/components/touchables/TouchableNativeFeedback.tsx +6 -1
  1137. package/src/components/touchables/TouchableNativeFeedbackProps.tsx +10 -0
  1138. package/src/components/touchables/TouchableOpacity.tsx +8 -5
  1139. package/src/components/touchables/TouchableWithoutFeedback.tsx +31 -6
  1140. package/src/components/utils.ts +26 -0
  1141. package/src/findNodeHandle.ts +3 -0
  1142. package/src/findNodeHandle.web.ts +41 -0
  1143. package/src/getShadowNodeFromRef.ts +35 -7
  1144. package/src/ghQueueMicrotask.ts +8 -0
  1145. package/src/handlers/FlingGestureHandler.ts +11 -6
  1146. package/src/handlers/ForceTouchGestureHandler.ts +10 -12
  1147. package/src/handlers/GestureHandlerEventPayload.ts +229 -0
  1148. package/src/handlers/LongPressGestureHandler.ts +17 -40
  1149. package/src/handlers/NativeViewGestureHandler.ts +11 -7
  1150. package/src/handlers/PanGestureHandler.ts +19 -62
  1151. package/src/handlers/PinchGestureHandler.ts +11 -27
  1152. package/src/handlers/RotationGestureHandler.ts +11 -27
  1153. package/src/handlers/TapGestureHandler.ts +11 -6
  1154. package/src/handlers/createHandler.tsx +96 -59
  1155. package/src/handlers/createNativeWrapper.tsx +7 -3
  1156. package/src/handlers/customDirectEventTypes.ts +2 -0
  1157. package/src/handlers/customDirectEventTypes.web.ts +5 -0
  1158. package/src/handlers/gestureHandlerCommon.ts +50 -83
  1159. package/src/handlers/gestureHandlerTypesCompat.ts +25 -30
  1160. package/src/handlers/gestures/GestureDetector/Wrap.tsx +35 -0
  1161. package/src/handlers/gestures/GestureDetector/Wrap.web.tsx +42 -0
  1162. package/src/handlers/gestures/GestureDetector/attachHandlers.ts +112 -0
  1163. package/src/handlers/gestures/GestureDetector/dropHandlers.ts +17 -0
  1164. package/src/handlers/gestures/GestureDetector/index.tsx +191 -0
  1165. package/src/handlers/gestures/GestureDetector/needsToReattach.ts +27 -0
  1166. package/src/handlers/gestures/GestureDetector/types.ts +32 -0
  1167. package/src/handlers/gestures/GestureDetector/updateHandlers.ts +92 -0
  1168. package/src/handlers/gestures/GestureDetector/useAnimatedGesture.ts +209 -0
  1169. package/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts +69 -0
  1170. package/src/handlers/gestures/GestureDetector/useMountReactions.ts +51 -0
  1171. package/src/handlers/gestures/GestureDetector/useViewRefHandler.ts +58 -0
  1172. package/src/handlers/gestures/GestureDetector/utils.ts +181 -0
  1173. package/src/handlers/gestures/eventReceiver.ts +6 -5
  1174. package/src/handlers/gestures/flingGesture.ts +13 -4
  1175. package/src/handlers/gestures/forceTouchGesture.ts +25 -4
  1176. package/src/handlers/gestures/gesture.ts +151 -20
  1177. package/src/handlers/gestures/gestureComposition.ts +5 -3
  1178. package/src/handlers/gestures/gestureObjects.ts +59 -0
  1179. package/src/handlers/gestures/gestureStateManager.ts +55 -41
  1180. package/src/handlers/gestures/gestureStateManager.web.ts +3 -1
  1181. package/src/handlers/gestures/hoverGesture.ts +2 -8
  1182. package/src/handlers/gestures/longPressGesture.ts +21 -4
  1183. package/src/handlers/gestures/nativeGesture.ts +10 -4
  1184. package/src/handlers/gestures/panGesture.ts +77 -8
  1185. package/src/handlers/gestures/pinchGesture.ts +1 -1
  1186. package/src/handlers/gestures/reanimatedWrapper.ts +18 -17
  1187. package/src/handlers/gestures/rotationGesture.ts +1 -1
  1188. package/src/handlers/gestures/tapGesture.ts +37 -4
  1189. package/src/handlers/getNextHandlerTag.ts +5 -0
  1190. package/src/handlers/handlersRegistry.ts +7 -9
  1191. package/src/handlers/utils.ts +76 -0
  1192. package/src/index.ts +31 -36
  1193. package/src/init.ts +1 -1
  1194. package/src/jestUtils/jestUtils.ts +30 -22
  1195. package/src/mocks/Pressable.tsx +1 -0
  1196. package/src/mocks/mocks.tsx +70 -0
  1197. package/src/mountRegistry.ts +51 -0
  1198. package/src/specs/NativeRNGestureHandlerModule.ts +26 -0
  1199. package/src/specs/RNGestureHandlerButtonNativeComponent.ts +4 -0
  1200. package/src/specs/RNGestureHandlerRootViewNativeComponent.kepler.ts +21 -0
  1201. package/src/utils.ts +58 -13
  1202. package/src/web/Gestures.ts +41 -0
  1203. package/src/web/constants.ts +1 -7
  1204. package/src/web/detectors/RotationGestureDetector.ts +31 -29
  1205. package/src/web/detectors/ScaleGestureDetector.ts +34 -35
  1206. package/src/web/handlers/FlingGestureHandler.ts +73 -38
  1207. package/src/web/handlers/GestureHandler.ts +224 -193
  1208. package/src/web/handlers/HoverGestureHandler.ts +16 -10
  1209. package/src/web/handlers/IGestureHandler.ts +49 -0
  1210. package/src/web/handlers/LongPressGestureHandler.ts +68 -18
  1211. package/src/web/handlers/ManualGestureHandler.ts +3 -9
  1212. package/src/web/handlers/NativeViewGestureHandler.ts +44 -36
  1213. package/src/web/handlers/PanGestureHandler.ts +123 -37
  1214. package/src/web/handlers/PinchGestureHandler.ts +20 -26
  1215. package/src/web/handlers/RotationGestureHandler.ts +15 -21
  1216. package/src/web/handlers/TapGestureHandler.ts +26 -25
  1217. package/src/web/interfaces.ts +46 -22
  1218. package/src/web/tools/CircularBuffer.ts +15 -15
  1219. package/src/web/tools/EventManager.ts +24 -20
  1220. package/src/web/tools/GestureHandlerDelegate.ts +7 -4
  1221. package/src/web/tools/GestureHandlerOrchestrator.ts +183 -189
  1222. package/src/web/tools/GestureHandlerWebDelegate.ts +139 -27
  1223. package/src/web/tools/InteractionManager.ts +62 -50
  1224. package/src/web/tools/KeyboardEventManager.ts +133 -0
  1225. package/src/web/tools/LeastSquareSolver.ts +18 -18
  1226. package/src/web/tools/NodeManager.ts +11 -6
  1227. package/src/web/tools/PointerEventManager.ts +177 -144
  1228. package/src/web/tools/PointerTracker.ts +94 -106
  1229. package/src/web/tools/Vector.ts +59 -0
  1230. package/src/web/tools/VelocityTracker.ts +7 -7
  1231. package/src/web/tools/WheelEventManager.ts +48 -0
  1232. package/src/web/utils.ts +289 -4
  1233. package/src/web_hammer/DiscreteGestureHandler.ts +1 -1
  1234. package/src/web_hammer/DraggingGestureHandler.ts +1 -1
  1235. package/src/web_hammer/FlingGestureHandler.ts +1 -1
  1236. package/src/web_hammer/GestureHandler.ts +5 -3
  1237. package/src/web_hammer/LongPressGestureHandler.ts +1 -1
  1238. package/src/web_hammer/NodeManager.ts +2 -11
  1239. package/src/web_hammer/PressGestureHandler.ts +7 -4
  1240. package/README.kepler.md +0 -167
  1241. package/SystemBundles/e952783824abd1e014b5dbeb51072f473be8d0e06e0377bbc053b54e619e5f4f.bundle +0 -67492
  1242. package/SystemBundles/e952783824abd1e014b5dbeb51072f473be8d0e06e0377bbc053b54e619e5f4f.map +0 -13823
  1243. package/SystemModules/amzn__react-native-gesture-handler-2.modules.txt +0 -338
  1244. package/SystemModules/amzn__react-native-gesture-handler-2.private.modules.txt +0 -95
  1245. package/THIRD_PARTY_NOTICES.txt +0 -24
  1246. package/ios/Handlers/RNFlingHandler.m +0 -152
  1247. package/ios/Handlers/RNLongPressHandler.m +0 -183
  1248. package/ios/Handlers/RNPinchHandler.m +0 -95
  1249. package/ios/Handlers/RNRotationHandler.m +0 -93
  1250. package/ios/RNGestureHandlerButton.h +0 -19
  1251. package/ios/RNGestureHandlerButton.m +0 -77
  1252. package/ios/RNGestureHandlerButtonComponentView.mm +0 -62
  1253. package/ios/RNGestureHandlerDirection.h +0 -8
  1254. package/ios/RNGestureHandlerModule.h +0 -7
  1255. package/lib/commonjs/RNGestureHandlerModule.macos.js +0 -113
  1256. package/lib/commonjs/RNGestureHandlerModule.macos.js.map +0 -1
  1257. package/lib/commonjs/handlers/gestures/GestureDetector.js +0 -548
  1258. package/lib/commonjs/handlers/gestures/GestureDetector.js.map +0 -1
  1259. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +0 -11
  1260. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +0 -1
  1261. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +0 -11
  1262. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +0 -1
  1263. package/lib/commonjs/web/tools/TouchEventManager.js +0 -126
  1264. package/lib/commonjs/web/tools/TouchEventManager.js.map +0 -1
  1265. package/lib/module/RNGestureHandlerModule.macos.js +0 -104
  1266. package/lib/module/RNGestureHandlerModule.macos.js.map +0 -1
  1267. package/lib/module/handlers/gestures/GestureDetector.js +0 -538
  1268. package/lib/module/handlers/gestures/GestureDetector.js.map +0 -1
  1269. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js +0 -4
  1270. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +0 -1
  1271. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js +0 -4
  1272. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +0 -1
  1273. package/lib/module/web/tools/TouchEventManager.js +0 -118
  1274. package/lib/module/web/tools/TouchEventManager.js.map +0 -1
  1275. package/lib/typescript/RNGestureHandlerModule.macos.d.ts +0 -47
  1276. package/lib/typescript/handlers/gestures/GestureDetector.d.ts +0 -19
  1277. package/lib/typescript/web/tools/TouchEventManager.d.ts +0 -6
  1278. package/src/RNGestureHandlerModule.macos.ts +0 -133
  1279. package/src/handlers/gestures/GestureDetector.tsx +0 -818
  1280. package/src/web/tools/TouchEventManager.ts +0 -167
  1281. /package/android/{src/fabric → fabric/src/main}/java/com/swmansion/gesturehandler/RNGestureHandlerComponentsRegistry.java +0 -0
  1282. /package/android/{common → noreanimated}/src/main/java/com/swmansion/common/GestureHandlerStateManager.kt +0 -0
  1283. /package/{ios → apple}/Handlers/RNForceTouchHandler.h +0 -0
  1284. /package/{ios → apple}/Handlers/RNHoverHandler.h +0 -0
  1285. /package/{ios → apple}/Handlers/RNLongPressHandler.h +0 -0
  1286. /package/{ios → apple}/Handlers/RNManualHandler.h +0 -0
  1287. /package/{ios → apple}/Handlers/RNNativeViewHandler.h +0 -0
  1288. /package/{ios → apple}/Handlers/RNPanHandler.h +0 -0
  1289. /package/{ios → apple}/Handlers/RNPinchHandler.h +0 -0
  1290. /package/{ios → apple}/Handlers/RNRotationHandler.h +0 -0
  1291. /package/{ios → apple}/Handlers/RNTapHandler.h +0 -0
  1292. /package/{ios → apple}/RNGHTouchEventType.h +0 -0
  1293. /package/{ios → apple}/RNGestureHandler.xcodeproj/project.pbxproj +0 -0
  1294. /package/{ios → apple}/RNGestureHandler.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
  1295. /package/{ios → apple}/RNGestureHandlerActionType.h +0 -0
  1296. /package/{ios → apple}/RNGestureHandlerButtonManager.h +0 -0
  1297. /package/{ios → apple}/RNGestureHandlerRootViewComponentView.mm +0 -0
  1298. /package/{ios → apple}/RNGestureHandlerState.h +0 -0
  1299. /package/{ios → apple}/RNGestureHandlerStateManager.h +0 -0
  1300. /package/{ios → apple}/RNRootViewGestureRecognizer.h +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_PanGestureHandler","_TapGestureHandler","_State","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","DRAG_TOSS","Swipeable","Component","constructor","props","state","friction","overshootFriction","dragX","rowTranslation","leftWidth","rowWidth","rightOffset","rightWidth","Math","max","overshootLeft","overshootRight","transX","Animated","add","interpolate","inputRange","outputRange","showLeftAction","Value","leftActionTranslate","MIN_VALUE","extrapolate","showRightAction","rightActionTranslate","nativeEvent","oldState","State","ACTIVE","close","ev","handleRelease","velocityX","translationX","rowState","leftThreshold","rightThreshold","startOffsetX","currentOffset","toValue","animateRow","fromValue","setValue","setState","sign","spring","restSpeedThreshold","restDisplacementThreshold","velocity","bounciness","useNativeDriver","useNativeAnimations","animationOptions","start","finished","_this$props$onSwipeab","_this$props","_this$props$onSwipeab2","_this$props2","onSwipeableLeftOpen","onSwipeableOpen","_this$props$onSwipeab3","_this$props3","_this$props$onSwipeab4","_this$props4","onSwipeableRightOpen","_this$props$onSwipeab5","_this$props5","closingDirection","onSwipeableClose","_this$props$onSwipeab6","_this$props6","_this$props$onSwipeab7","_this$props7","onSwipeableLeftWillOpen","onSwipeableWillOpen","_this$props$onSwipeab8","_this$props8","_this$props$onSwipeab9","_this$props9","onSwipeableRightWillOpen","_this$props$onSwipeab10","_this$props10","onSwipeableWillClose","layout","width","undefined","updateAnimatedEvent","onGestureEvent","event","shouldComponentUpdate","render","children","renderLeftActions","renderRightActions","dragOffsetFromLeftEdge","dragOffsetFromRightEdge","left","createElement","View","style","styles","leftActions","transform","translateX","onLayout","x","right","rightActions","PanGestureHandler","activeOffsetX","onHandlerStateChange","onRowLayout","container","containerStyle","TapGestureHandler","enabled","onTapHandlerStateChange","pointerEvents","childrenContainerStyle","exports","StyleSheet","create","overflow","absoluteFillObject","flexDirection","I18nManager","isRTL"],"sources":["Swipeable.tsx"],"sourcesContent":["// Similarily to the DrawerLayout component this deserves to be put in a\n// separate repo. Although, keeping it here for the time being will allow us to\n// move faster and fix possible issues quicker\n\nimport * as React from 'react';\nimport { Component } from 'react';\nimport {\n Animated,\n StyleSheet,\n View,\n I18nManager,\n LayoutChangeEvent,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nimport {\n GestureEvent,\n HandlerStateChangeEvent,\n} from '../handlers/gestureHandlerCommon';\nimport {\n PanGestureHandler,\n PanGestureHandlerEventPayload,\n PanGestureHandlerProps,\n} from '../handlers/PanGestureHandler';\nimport {\n TapGestureHandler,\n TapGestureHandlerEventPayload,\n} from '../handlers/TapGestureHandler';\nimport { State } from '../State';\n\nconst DRAG_TOSS = 0.05;\n\ntype SwipeableExcludes = Exclude<\n keyof PanGestureHandlerProps,\n 'onGestureEvent' | 'onHandlerStateChange'\n>;\n\n// Animated.AnimatedInterpolation has been converted to a generic type\n// in @types/react-native 0.70. This way we can maintain compatibility\n// with all versions of @types/react-native\ntype AnimatedInterpolation = ReturnType<Animated.Value['interpolate']>;\n\nexport interface SwipeableProps\n extends Pick<PanGestureHandlerProps, SwipeableExcludes> {\n /**\n * Enables two-finger gestures on supported devices, for example iPads with\n * trackpads. If not enabled the gesture will require click + drag, with\n * `enableTrackpadTwoFingerGesture` swiping with two fingers will also trigger\n * the gesture.\n */\n enableTrackpadTwoFingerGesture?: boolean;\n\n /**\n * Specifies how much the visual interaction will be delayed compared to the\n * gesture distance. e.g. value of 1 will indicate that the swipeable panel\n * should exactly follow the gesture, 2 means it is going to be two times\n * \"slower\".\n */\n friction?: number;\n\n /**\n * Distance from the left edge at which released panel will animate to the\n * open state (or the open panel will animate into the closed state). By\n * default it's a half of the panel's width.\n */\n leftThreshold?: number;\n\n /**\n * Distance from the right edge at which released panel will animate to the\n * open state (or the open panel will animate into the closed state). By\n * default it's a half of the panel's width.\n */\n rightThreshold?: number;\n\n /**\n * Distance that the panel must be dragged from the left edge to be considered\n * a swipe. The default value is 10.\n */\n dragOffsetFromLeftEdge?: number;\n\n /**\n * Distance that the panel must be dragged from the right edge to be considered\n * a swipe. The default value is 10.\n */\n dragOffsetFromRightEdge?: number;\n\n /**\n * Value indicating if the swipeable panel can be pulled further than the left\n * actions panel's width. It is set to true by default as long as the left\n * panel render method is present.\n */\n overshootLeft?: boolean;\n\n /**\n * Value indicating if the swipeable panel can be pulled further than the\n * right actions panel's width. It is set to true by default as long as the\n * right panel render method is present.\n */\n overshootRight?: boolean;\n\n /**\n * Specifies how much the visual interaction will be delayed compared to the\n * gesture distance at overshoot. Default value is 1, it mean no friction, for\n * a native feel, try 8 or above.\n */\n overshootFriction?: number;\n\n /**\n * @deprecated Use `direction` argument of onSwipeableOpen()\n *\n * Called when left action panel gets open.\n */\n onSwipeableLeftOpen?: () => void;\n\n /**\n * @deprecated Use `direction` argument of onSwipeableOpen()\n *\n * Called when right action panel gets open.\n */\n onSwipeableRightOpen?: () => void;\n\n /**\n * Called when action panel gets open (either right or left).\n */\n onSwipeableOpen?: (direction: 'left' | 'right', swipeable: Swipeable) => void;\n\n /**\n * Called when action panel is closed.\n */\n onSwipeableClose?: (\n direction: 'left' | 'right',\n swipeable: Swipeable\n ) => void;\n\n /**\n * @deprecated Use `direction` argument of onSwipeableWillOpen()\n *\n * Called when left action panel starts animating on open.\n */\n onSwipeableLeftWillOpen?: () => void;\n\n /**\n * @deprecated Use `direction` argument of onSwipeableWillOpen()\n *\n * Called when right action panel starts animating on open.\n */\n onSwipeableRightWillOpen?: () => void;\n\n /**\n * Called when action panel starts animating on open (either right or left).\n */\n onSwipeableWillOpen?: (direction: 'left' | 'right') => void;\n\n /**\n * Called when action panel starts animating on close.\n */\n onSwipeableWillClose?: (direction: 'left' | 'right') => void;\n\n /**\n *\n * This map describes the values to use as inputRange for extra interpolation:\n * AnimatedValue: [startValue, endValue]\n *\n * progressAnimatedValue: [0, 1] dragAnimatedValue: [0, +]\n *\n * To support `rtl` flexbox layouts use `flexDirection` styling.\n * */\n renderLeftActions?: (\n progressAnimatedValue: AnimatedInterpolation,\n dragAnimatedValue: AnimatedInterpolation,\n swipeable: Swipeable\n ) => React.ReactNode;\n /**\n *\n * This map describes the values to use as inputRange for extra interpolation:\n * AnimatedValue: [startValue, endValue]\n *\n * progressAnimatedValue: [0, 1] dragAnimatedValue: [0, -]\n *\n * To support `rtl` flexbox layouts use `flexDirection` styling.\n * */\n renderRightActions?: (\n progressAnimatedValue: AnimatedInterpolation,\n dragAnimatedValue: AnimatedInterpolation,\n swipeable: Swipeable\n ) => React.ReactNode;\n\n useNativeAnimations?: boolean;\n\n animationOptions?: Record<string, unknown>;\n\n /**\n * Style object for the container (`Animated.View`), for example to override\n * `overflow: 'hidden'`.\n */\n containerStyle?: StyleProp<ViewStyle>;\n\n /**\n * Style object for the children container (`Animated.View`), for example to\n * apply `flex: 1`\n */\n childrenContainerStyle?: StyleProp<ViewStyle>;\n}\n\ntype SwipeableState = {\n dragX: Animated.Value;\n rowTranslation: Animated.Value;\n rowState: number;\n leftWidth?: number;\n rightOffset?: number;\n rowWidth?: number;\n};\n\nexport default class Swipeable extends Component<\n SwipeableProps,\n SwipeableState\n> {\n static defaultProps = {\n friction: 1,\n overshootFriction: 1,\n useNativeAnimations: true,\n };\n\n constructor(props: SwipeableProps) {\n super(props);\n const dragX = new Animated.Value(0);\n this.state = {\n dragX,\n rowTranslation: new Animated.Value(0),\n rowState: 0,\n leftWidth: undefined,\n rightOffset: undefined,\n rowWidth: undefined,\n };\n this.updateAnimatedEvent(props, this.state);\n\n this.onGestureEvent = Animated.event(\n [{ nativeEvent: { translationX: dragX } }],\n { useNativeDriver: props.useNativeAnimations! }\n );\n }\n\n shouldComponentUpdate(props: SwipeableProps, state: SwipeableState) {\n if (\n this.props.friction !== props.friction ||\n this.props.overshootLeft !== props.overshootLeft ||\n this.props.overshootRight !== props.overshootRight ||\n this.props.overshootFriction !== props.overshootFriction ||\n this.state.leftWidth !== state.leftWidth ||\n this.state.rightOffset !== state.rightOffset ||\n this.state.rowWidth !== state.rowWidth\n ) {\n this.updateAnimatedEvent(props, state);\n }\n\n return true;\n }\n\n private onGestureEvent?: (\n event: GestureEvent<PanGestureHandlerEventPayload>\n ) => void;\n private transX?: AnimatedInterpolation;\n private showLeftAction?: AnimatedInterpolation | Animated.Value;\n private leftActionTranslate?: AnimatedInterpolation;\n private showRightAction?: AnimatedInterpolation | Animated.Value;\n private rightActionTranslate?: AnimatedInterpolation;\n\n private updateAnimatedEvent = (\n props: SwipeableProps,\n state: SwipeableState\n ) => {\n const { friction, overshootFriction } = props;\n const { dragX, rowTranslation, leftWidth = 0, rowWidth = 0 } = state;\n const { rightOffset = rowWidth } = state;\n const rightWidth = Math.max(0, rowWidth - rightOffset);\n\n const { overshootLeft = leftWidth > 0, overshootRight = rightWidth > 0 } =\n props;\n\n const transX = Animated.add(\n rowTranslation,\n dragX.interpolate({\n inputRange: [0, friction!],\n outputRange: [0, 1],\n })\n ).interpolate({\n inputRange: [-rightWidth - 1, -rightWidth, leftWidth, leftWidth + 1],\n outputRange: [\n -rightWidth - (overshootRight ? 1 / overshootFriction! : 0),\n -rightWidth,\n leftWidth,\n leftWidth + (overshootLeft ? 1 / overshootFriction! : 0),\n ],\n });\n this.transX = transX;\n this.showLeftAction =\n leftWidth > 0\n ? transX.interpolate({\n inputRange: [-1, 0, leftWidth],\n outputRange: [0, 0, 1],\n })\n : new Animated.Value(0);\n this.leftActionTranslate = this.showLeftAction.interpolate({\n inputRange: [0, Number.MIN_VALUE],\n outputRange: [-10000, 0],\n extrapolate: 'clamp',\n });\n this.showRightAction =\n rightWidth > 0\n ? transX.interpolate({\n inputRange: [-rightWidth, 0, 1],\n outputRange: [1, 0, 0],\n })\n : new Animated.Value(0);\n this.rightActionTranslate = this.showRightAction.interpolate({\n inputRange: [0, Number.MIN_VALUE],\n outputRange: [-10000, 0],\n extrapolate: 'clamp',\n });\n };\n\n private onTapHandlerStateChange = ({\n nativeEvent,\n }: HandlerStateChangeEvent<TapGestureHandlerEventPayload>) => {\n if (nativeEvent.oldState === State.ACTIVE) {\n this.close();\n }\n };\n\n private onHandlerStateChange = (\n ev: HandlerStateChangeEvent<PanGestureHandlerEventPayload>\n ) => {\n if (ev.nativeEvent.oldState === State.ACTIVE) {\n this.handleRelease(ev);\n }\n };\n\n private handleRelease = (\n ev: HandlerStateChangeEvent<PanGestureHandlerEventPayload>\n ) => {\n const { velocityX, translationX: dragX } = ev.nativeEvent;\n const { leftWidth = 0, rowWidth = 0, rowState } = this.state;\n const { rightOffset = rowWidth } = this.state;\n const rightWidth = rowWidth - rightOffset;\n const {\n friction,\n leftThreshold = leftWidth / 2,\n rightThreshold = rightWidth / 2,\n } = this.props;\n\n const startOffsetX = this.currentOffset() + dragX / friction!;\n const translationX = (dragX + DRAG_TOSS * velocityX) / friction!;\n\n let toValue = 0;\n if (rowState === 0) {\n if (translationX > leftThreshold) {\n toValue = leftWidth;\n } else if (translationX < -rightThreshold) {\n toValue = -rightWidth;\n }\n } else if (rowState === 1) {\n // swiped to left\n if (translationX > -leftThreshold) {\n toValue = leftWidth;\n }\n } else {\n // swiped to right\n if (translationX < rightThreshold) {\n toValue = -rightWidth;\n }\n }\n\n this.animateRow(startOffsetX, toValue, velocityX / friction!);\n };\n\n private animateRow = (\n fromValue: number,\n toValue: number,\n velocityX?:\n | number\n | {\n x: number;\n y: number;\n }\n ) => {\n const { dragX, rowTranslation } = this.state;\n dragX.setValue(0);\n rowTranslation.setValue(fromValue);\n\n this.setState({ rowState: Math.sign(toValue) });\n Animated.spring(rowTranslation, {\n restSpeedThreshold: 1.7,\n restDisplacementThreshold: 0.4,\n velocity: velocityX,\n bounciness: 0,\n toValue,\n useNativeDriver: this.props.useNativeAnimations!,\n ...this.props.animationOptions,\n }).start(({ finished }) => {\n if (finished) {\n if (toValue > 0) {\n this.props.onSwipeableLeftOpen?.();\n this.props.onSwipeableOpen?.('left', this);\n } else if (toValue < 0) {\n this.props.onSwipeableRightOpen?.();\n this.props.onSwipeableOpen?.('right', this);\n } else {\n const closingDirection = fromValue > 0 ? 'left' : 'right';\n this.props.onSwipeableClose?.(closingDirection, this);\n }\n }\n });\n if (toValue > 0) {\n this.props.onSwipeableLeftWillOpen?.();\n this.props.onSwipeableWillOpen?.('left');\n } else if (toValue < 0) {\n this.props.onSwipeableRightWillOpen?.();\n this.props.onSwipeableWillOpen?.('right');\n } else {\n const closingDirection = fromValue > 0 ? 'left' : 'right';\n this.props.onSwipeableWillClose?.(closingDirection);\n }\n };\n\n private onRowLayout = ({ nativeEvent }: LayoutChangeEvent) => {\n this.setState({ rowWidth: nativeEvent.layout.width });\n };\n\n private currentOffset = () => {\n const { leftWidth = 0, rowWidth = 0, rowState } = this.state;\n const { rightOffset = rowWidth } = this.state;\n const rightWidth = rowWidth - rightOffset;\n if (rowState === 1) {\n return leftWidth;\n } else if (rowState === -1) {\n return -rightWidth;\n }\n return 0;\n };\n\n close = () => {\n this.animateRow(this.currentOffset(), 0);\n };\n\n openLeft = () => {\n const { leftWidth = 0 } = this.state;\n this.animateRow(this.currentOffset(), leftWidth);\n };\n\n openRight = () => {\n const { rowWidth = 0 } = this.state;\n const { rightOffset = rowWidth } = this.state;\n const rightWidth = rowWidth - rightOffset;\n this.animateRow(this.currentOffset(), -rightWidth);\n };\n\n reset = () => {\n const { dragX, rowTranslation } = this.state;\n dragX.setValue(0);\n rowTranslation.setValue(0);\n this.setState({ rowState: 0 });\n };\n\n render() {\n const { rowState } = this.state;\n const {\n children,\n renderLeftActions,\n renderRightActions,\n dragOffsetFromLeftEdge = 10,\n dragOffsetFromRightEdge = 10,\n } = this.props;\n\n const left = renderLeftActions && (\n <Animated.View\n style={[\n styles.leftActions,\n // all those and below parameters can have ! since they are all\n // asigned in constructor in `updateAnimatedEvent` but TS cannot spot\n // it for some reason\n { transform: [{ translateX: this.leftActionTranslate! }] },\n ]}>\n {renderLeftActions(this.showLeftAction!, this.transX!, this)}\n <View\n onLayout={({ nativeEvent }) =>\n this.setState({ leftWidth: nativeEvent.layout.x })\n }\n />\n </Animated.View>\n );\n\n const right = renderRightActions && (\n <Animated.View\n style={[\n styles.rightActions,\n { transform: [{ translateX: this.rightActionTranslate! }] },\n ]}>\n {renderRightActions(this.showRightAction!, this.transX!, this)}\n <View\n onLayout={({ nativeEvent }) =>\n this.setState({ rightOffset: nativeEvent.layout.x })\n }\n />\n </Animated.View>\n );\n\n return (\n <PanGestureHandler\n activeOffsetX={[-dragOffsetFromRightEdge, dragOffsetFromLeftEdge]}\n {...this.props}\n onGestureEvent={this.onGestureEvent}\n onHandlerStateChange={this.onHandlerStateChange}>\n <Animated.View\n onLayout={this.onRowLayout}\n style={[styles.container, this.props.containerStyle]}>\n {left}\n {right}\n <TapGestureHandler\n enabled={rowState !== 0}\n onHandlerStateChange={this.onTapHandlerStateChange}>\n <Animated.View\n pointerEvents={rowState === 0 ? 'auto' : 'box-only'}\n style={[\n {\n transform: [{ translateX: this.transX! }],\n },\n this.props.childrenContainerStyle,\n ]}>\n {children}\n </Animated.View>\n </TapGestureHandler>\n </Animated.View>\n </PanGestureHandler>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n overflow: 'hidden',\n },\n leftActions: {\n ...StyleSheet.absoluteFillObject,\n flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row',\n },\n rightActions: {\n ...StyleSheet.absoluteFillObject,\n flexDirection: I18nManager.isRTL ? 'row' : 'row-reverse',\n },\n});\n"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AAcA,IAAAG,kBAAA,GAAAH,OAAA;AAKA,IAAAI,kBAAA,GAAAJ,OAAA;AAIA,IAAAK,MAAA,GAAAL,OAAA;AAAiC,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,G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,SAAS,kBAIN;EACpBK,QAAQ,EAAE,CAAC;EACXC,iBAAiB,EAAE,CAAC;EACpBkD,mBAAmB,EAAE;AACvB,CAAC;AA4TH,MAAMkD,MAAM,GAAGoB,uBAAU,CAACC,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,QAAQ,EAAE;EACZ,CAAC;EACDrB,WAAW,EAAE;IACX,GAAGmB,uBAAU,CAACG,kBAAkB;IAChCC,aAAa,EAAEC,wBAAW,CAACC,KAAK,GAAG,aAAa,GAAG;EACrD,CAAC;EACDnB,YAAY,EAAE;IACZ,GAAGa,uBAAU,CAACG,kBAAkB;IAChCC,aAAa,EAAEC,wBAAW,CAACC,KAAK,GAAG,KAAK,GAAG;EAC7C;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_PanGestureHandler","_TapGestureHandler","_State","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DRAG_TOSS","Swipeable","Component","defaultProps","friction","overshootFriction","useNativeAnimations","constructor","props","dragX","Animated","Value","state","rowTranslation","rowState","leftWidth","undefined","rightOffset","rowWidth","updateAnimatedEvent","onGestureEvent","event","nativeEvent","translationX","useNativeDriver","shouldComponentUpdate","overshootLeft","overshootRight","rightWidth","Math","max","transX","add","interpolate","inputRange","outputRange","showLeftAction","leftActionTranslate","Number","MIN_VALUE","extrapolate","showRightAction","rightActionTranslate","onTapHandlerStateChange","oldState","State","ACTIVE","close","onHandlerStateChange","ev","handleRelease","velocityX","direction","onSwipeableOpenStartDrag","onSwipeableCloseStartDrag","leftThreshold","rightThreshold","startOffsetX","currentOffset","toValue","animateRow","fromValue","setValue","setState","sign","spring","restSpeedThreshold","restDisplacementThreshold","velocity","bounciness","animationOptions","start","finished","onSwipeableLeftOpen","onSwipeableOpen","onSwipeableRightOpen","closingDirection","onSwipeableClose","onSwipeableLeftWillOpen","onSwipeableWillOpen","onSwipeableRightWillOpen","onSwipeableWillClose","onRowLayout","layout","width","openLeft","openRight","reset","render","children","renderLeftActions","renderRightActions","dragOffsetFromLeftEdge","dragOffsetFromRightEdge","left","jsxs","View","style","styles","leftActions","transform","translateX","jsx","onLayout","x","right","rightActions","PanGestureHandler","activeOffsetX","touchAction","container","containerStyle","TapGestureHandler","enabled","pointerEvents","childrenContainerStyle","exports","StyleSheet","create","overflow","absoluteFillObject","flexDirection","I18nManager","isRTL"],"sourceRoot":"../../../src","sources":["components/Swipeable.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AAcA,IAAAG,kBAAA,GAAAH,OAAA;AAQA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAAiC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAA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G;EAC7C;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Text = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _gestureObjects = require("../handlers/gestures/gestureObjects");
10
+ var _GestureDetector = require("../handlers/gestures/GestureDetector");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ const Text = exports.Text = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
14
+ const {
15
+ onPress,
16
+ onLongPress,
17
+ ...rest
18
+ } = props;
19
+ const textRef = (0, _react.useRef)(null);
20
+ const native = _gestureObjects.GestureObjects.Native().runOnJS(true);
21
+ const refHandler = node => {
22
+ textRef.current = node;
23
+ if (ref === null) {
24
+ return;
25
+ }
26
+ if (typeof ref === 'function') {
27
+ ref(node);
28
+ } else {
29
+ ref.current = node;
30
+ }
31
+ };
32
+
33
+ // This is a special case for `Text` component. After https://github.com/software-mansion/react-native-gesture-handler/pull/3379 we check for
34
+ // `displayName` field. However, `Text` from RN has this field set to `Text`, but is also present in `RNSVGElements` set.
35
+ // We don't want to treat our `Text` as the one from `SVG`, therefore we add special field to ref.
36
+ refHandler.rngh = true;
37
+ (0, _react.useEffect)(() => {
38
+ if (_reactNative.Platform.OS !== 'web') {
39
+ return;
40
+ }
41
+ const textElement = ref ? ref.current : textRef.current;
42
+
43
+ // At this point we are sure that textElement is div in HTML tree
44
+ textElement?.setAttribute('rnghtext', 'true');
45
+ }, []);
46
+ return onPress || onLongPress ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_GestureDetector.GestureDetector, {
47
+ gesture: native,
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
49
+ onPress: onPress,
50
+ onLongPress: onLongPress,
51
+ ref: refHandler,
52
+ ...rest
53
+ })
54
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
55
+ ref: ref,
56
+ ...rest
57
+ });
58
+ });
59
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
60
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_gestureObjects","_GestureDetector","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Text","exports","forwardRef","props","ref","onPress","onLongPress","rest","textRef","useRef","native","Gesture","Native","runOnJS","refHandler","node","current","rngh","useEffect","Platform","OS","textElement","setAttribute","jsx","GestureDetector","gesture","children"],"sourceRoot":"../../../src","sources":["components/Text.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAAuE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,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AG,CAACW,IAAI,CAAC;IACX,CAAC,MAAM;MACLX,GAAG,CAACY,OAAO,GAAGD,IAAI;IACpB;EACF,CAAC;;EAED;EACA;EACA;EACAD,UAAU,CAACG,IAAI,GAAG,IAAI;EAEtB,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;MACzB;IACF;IAEA,MAAMC,WAAW,GAAGjB,GAAG,GAClBA,GAAG,CAAkDY,OAAO,GAC7DR,OAAO,CAACQ,OAAO;;IAEnB;IACCK,WAAW,EAAgCC,YAAY,CACtD,UAAU,EACV,MACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOjB,OAAO,IAAIC,WAAW,gBAC3B,IAAA1B,WAAA,CAAA2C,GAAA,EAAC5C,gBAAA,CAAA6C,eAAe;IAACC,OAAO,EAAEf,MAAO;IAAAgB,QAAA,eAC/B,IAAA9C,WAAA,CAAA2C,GAAA,EAAC9C,YAAA,CAAAuB,IAAM;MACLK,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA,WAAY;MACzBF,GAAG,EAAEU,UAAW;MAAA,GACZP;IAAI,CACT;EAAC,CACa,CAAC,gBAElB,IAAA3B,WAAA,CAAA2C,GAAA,EAAC9C,YAAA,CAAAuB,IAAM;IAACI,GAAG,EAAEA,GAAI;IAAA,GAAKG;EAAI,CAAG,CAC9B;AACH,CACF,CAAC;AACD","ignoreList":[]}
@@ -8,14 +8,20 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
10
10
  var _GestureHandlerRootView = _interopRequireDefault(require("./GestureHandlerRootView"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- 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); }
13
- 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 && {}.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; }
14
- function gestureHandlerRootHOC(Component, containerStyles) {
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ /**
15
+ * @deprecated `gestureHandlerRootHOC` is deprecated and will be removed in the future version of Gesture Handler.
16
+ * Use `GestureHandlerRootView` directly instead.
17
+ */function gestureHandlerRootHOC(Component, containerStyles) {
15
18
  function Wrapper(props) {
16
- return /*#__PURE__*/React.createElement(_GestureHandlerRootView.default, {
17
- style: [styles.container, containerStyles]
18
- }, /*#__PURE__*/React.createElement(Component, props));
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GestureHandlerRootView.default, {
20
+ style: [styles.container, containerStyles],
21
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
22
+ ...props
23
+ })
24
+ });
19
25
  }
20
26
  Wrapper.displayName = `gestureHandlerRootHOC(${Component.displayName || Component.name})`;
21
27
 
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_hoistNonReactStatics","_interopRequireDefault","_GestureHandlerRootView","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","gestureHandlerRootHOC","Component","containerStyles","Wrapper","props","createElement","style","styles","container","displayName","name","hoistNonReactStatics","StyleSheet","create","flex"],"sources":["gestureHandlerRootHOC.tsx"],"sourcesContent":["import * as React from 'react';\nimport { StyleSheet, StyleProp, ViewStyle } from 'react-native';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport GestureHandlerRootView from './GestureHandlerRootView';\n\nexport default function gestureHandlerRootHOC<\n P extends Record<string, unknown>\n>(\n Component: React.ComponentType<P>,\n containerStyles?: StyleProp<ViewStyle>\n): React.ComponentType<P> {\n function Wrapper(props: P) {\n return (\n <GestureHandlerRootView style={[styles.container, containerStyles]}>\n <Component {...props} />\n </GestureHandlerRootView>\n );\n }\n\n Wrapper.displayName = `gestureHandlerRootHOC(${\n Component.displayName || Component.name\n })`;\n\n // @ts-ignore - hoistNonReactStatics uses old version of @types/react\n hoistNonReactStatics(Wrapper, Component);\n\n return Wrapper;\n}\n\nconst styles = StyleSheet.create({\n container: { flex: 1 },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA8D,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CA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AD,OAAO,CAACM,WAAW,GAAG,yBACpBR,SAAS,CAACQ,WAAW,IAAIR,SAAS,CAACS,IAAI,GACtC;;EAEH;EACA,IAAAC,6BAAoB,EAACR,OAAO,EAAEF,SAAS,CAAC;EAExC,OAAOE,OAAO;AAChB;AAEA,MAAMI,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IAAEM,IAAI,EAAE;EAAE;AACvB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_hoistNonReactStatics","_interopRequireDefault","_GestureHandlerRootView","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","gestureHandlerRootHOC","Component","containerStyles","Wrapper","props","jsx","style","styles","container","children","displayName","name","hoistNonReactStatics","StyleSheet","create","flex"],"sourceRoot":"../../../src","sources":["components/gestureHandlerRootHOC.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA8D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAO,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAA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AAM,CAAC;EAC/BN,SAAS,EAAE;IAAEO,IAAI,EAAE;EAAE;AACvB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=ExtraButtonProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/touchables/ExtraButtonProps.ts"],"mappings":"","ignoreList":[]}
@@ -9,12 +9,8 @@ var React = _react;
9
9
  var _reactNative = require("react-native");
10
10
  var _State = require("../../State");
11
11
  var _GestureButtons = require("../GestureButtons");
12
- 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); }
13
- 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 && {}.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; }
14
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
14
  /**
19
15
  * Each touchable is a states' machine which preforms transitions.
20
16
  * On very beginning (and on the very end or recognition) touchable is
@@ -37,64 +33,23 @@ const TOUCHABLE_STATE = exports.TOUCHABLE_STATE = {
37
33
  */
38
34
 
39
35
  class GenericTouchable extends _react.Component {
40
- constructor(...args) {
41
- super(...args);
42
- // timeout handlers
43
- _defineProperty(this, "pressInTimeout", void 0);
44
- _defineProperty(this, "pressOutTimeout", void 0);
45
- _defineProperty(this, "longPressTimeout", void 0);
46
- // This flag is required since recognition of longPress implies not-invoking onPress
47
- _defineProperty(this, "longPressDetected", false);
48
- _defineProperty(this, "pointerInside", true);
49
- // State of touchable
50
- _defineProperty(this, "STATE", TOUCHABLE_STATE.UNDETERMINED);
51
- _defineProperty(this, "onGestureEvent", ({
52
- nativeEvent: {
53
- pointerInside
54
- }
55
- }) => {
56
- if (this.pointerInside !== pointerInside) {
57
- if (pointerInside) {
58
- this.onMoveIn();
59
- } else {
60
- this.onMoveOut();
61
- }
62
- }
63
- this.pointerInside = pointerInside;
64
- });
65
- _defineProperty(this, "onHandlerStateChange", ({
66
- nativeEvent
67
- }) => {
68
- const {
69
- state
70
- } = nativeEvent;
71
- if (state === _State.State.CANCELLED || state === _State.State.FAILED) {
72
- // Need to handle case with external cancellation (e.g. by ScrollView)
73
- this.moveToState(TOUCHABLE_STATE.UNDETERMINED);
74
- } else if (
75
- // This platform check is an implication of slightly different behavior of handlers on different platform.
76
- // And Android "Active" state is achieving on first move of a finger, not on press in.
77
- // On iOS event on "Began" is not delivered.
78
- state === (_reactNative.Platform.OS !== 'android' ? _State.State.ACTIVE : _State.State.BEGAN) && this.STATE === TOUCHABLE_STATE.UNDETERMINED) {
79
- // Moving inside requires
80
- this.handlePressIn();
81
- } else if (state === _State.State.END) {
82
- const shouldCallOnPress = !this.longPressDetected && this.STATE !== TOUCHABLE_STATE.MOVED_OUTSIDE && this.pressOutTimeout === null;
83
- this.handleGoToUndetermined();
84
- if (shouldCallOnPress) {
85
- var _this$props$onPress, _this$props;
86
- // Calls only inside component whether no long press was called previously
87
- (_this$props$onPress = (_this$props = this.props).onPress) === null || _this$props$onPress === void 0 || _this$props$onPress.call(_this$props);
88
- }
89
- }
90
- });
91
- _defineProperty(this, "onLongPressDetected", () => {
92
- var _this$props$onLongPre, _this$props2;
93
- this.longPressDetected = true;
94
- // checked for in the caller of `onLongPressDetected`, but better to check twice
95
- (_this$props$onLongPre = (_this$props2 = this.props).onLongPress) === null || _this$props$onLongPre === void 0 || _this$props$onLongPre.call(_this$props2);
96
- });
97
- }
36
+ static defaultProps = {
37
+ delayLongPress: 600,
38
+ extraButtonProps: {
39
+ rippleColor: 'transparent',
40
+ exclusive: true
41
+ }
42
+ };
43
+
44
+ // Timeout handlers
45
+
46
+ // This flag is required since recognition of longPress implies not-invoking onPress
47
+ longPressDetected = false;
48
+ pointerInside = true;
49
+
50
+ // State of touchable
51
+ STATE = TOUCHABLE_STATE.UNDETERMINED;
52
+
98
53
  // handlePressIn in called on first touch on traveling inside component.
99
54
  // Handles state transition with delay.
100
55
  handlePressIn() {
@@ -145,7 +100,7 @@ class GenericTouchable extends _react.Component {
145
100
  componentDidMount() {
146
101
  this.reset();
147
102
  }
148
- // reset timeout to prevent memory leaks.
103
+ // Reset timeout to prevent memory leaks.
149
104
  reset() {
150
105
  this.longPressDetected = false;
151
106
  this.pointerInside = true;
@@ -159,35 +114,75 @@ class GenericTouchable extends _react.Component {
159
114
 
160
115
  // All states' transitions are defined here.
161
116
  moveToState(newState) {
162
- var _this$props$onStateCh, _this$props6;
163
117
  if (newState === this.STATE) {
164
118
  // Ignore dummy transitions
165
119
  return;
166
120
  }
167
121
  if (newState === TOUCHABLE_STATE.BEGAN) {
168
- var _this$props$onPressIn, _this$props3;
169
122
  // First touch and moving inside
170
- (_this$props$onPressIn = (_this$props3 = this.props).onPressIn) === null || _this$props$onPressIn === void 0 || _this$props$onPressIn.call(_this$props3);
123
+ this.props.onPressIn?.();
171
124
  } else if (newState === TOUCHABLE_STATE.MOVED_OUTSIDE) {
172
- var _this$props$onPressOu, _this$props4;
173
125
  // Moving outside
174
- (_this$props$onPressOu = (_this$props4 = this.props).onPressOut) === null || _this$props$onPressOu === void 0 || _this$props$onPressOu.call(_this$props4);
126
+ this.props.onPressOut?.();
175
127
  } else if (newState === TOUCHABLE_STATE.UNDETERMINED) {
176
128
  // Need to reset each time on transition to UNDETERMINED
177
129
  this.reset();
178
130
  if (this.STATE === TOUCHABLE_STATE.BEGAN) {
179
- var _this$props$onPressOu2, _this$props5;
180
131
  // ... and if it happens inside button.
181
- (_this$props$onPressOu2 = (_this$props5 = this.props).onPressOut) === null || _this$props$onPressOu2 === void 0 || _this$props$onPressOu2.call(_this$props5);
132
+ this.props.onPressOut?.();
182
133
  }
183
134
  }
184
135
  // Finally call lister (used by subclasses)
185
- (_this$props$onStateCh = (_this$props6 = this.props).onStateChange) === null || _this$props$onStateCh === void 0 || _this$props$onStateCh.call(_this$props6, this.STATE, newState);
136
+ this.props.onStateChange?.(this.STATE, newState);
186
137
  // ... and make transition.
187
138
  this.STATE = newState;
188
139
  }
140
+ onGestureEvent = ({
141
+ nativeEvent: {
142
+ pointerInside
143
+ }
144
+ }) => {
145
+ if (this.pointerInside !== pointerInside) {
146
+ if (pointerInside) {
147
+ this.onMoveIn();
148
+ } else {
149
+ this.onMoveOut();
150
+ }
151
+ }
152
+ this.pointerInside = pointerInside;
153
+ };
154
+ onHandlerStateChange = ({
155
+ nativeEvent
156
+ }) => {
157
+ const {
158
+ state
159
+ } = nativeEvent;
160
+ if (state === _State.State.CANCELLED || state === _State.State.FAILED) {
161
+ // Need to handle case with external cancellation (e.g. by ScrollView)
162
+ this.moveToState(TOUCHABLE_STATE.UNDETERMINED);
163
+ } else if (
164
+ // This platform check is an implication of slightly different behavior of handlers on different platform.
165
+ // And Android "Active" state is achieving on first move of a finger, not on press in.
166
+ // On iOS event on "Began" is not delivered.
167
+ state === (_reactNative.Platform.OS !== 'android' ? _State.State.ACTIVE : _State.State.BEGAN) && this.STATE === TOUCHABLE_STATE.UNDETERMINED) {
168
+ // Moving inside requires
169
+ this.handlePressIn();
170
+ } else if (state === _State.State.END) {
171
+ const shouldCallOnPress = !this.longPressDetected && this.STATE !== TOUCHABLE_STATE.MOVED_OUTSIDE && this.pressOutTimeout === null;
172
+ this.handleGoToUndetermined();
173
+ if (shouldCallOnPress) {
174
+ // Calls only inside component whether no long press was called previously
175
+ this.props.onPress?.();
176
+ }
177
+ }
178
+ };
179
+ onLongPressDetected = () => {
180
+ this.longPressDetected = true;
181
+ // Checked for in the caller of `onLongPressDetected`, but better to check twice
182
+ this.props.onLongPress?.();
183
+ };
189
184
  componentWillUnmount() {
190
- // to prevent memory leaks
185
+ // To prevent memory leaks
191
186
  this.reset();
192
187
  }
193
188
  onMoveIn() {
@@ -197,7 +192,7 @@ class GenericTouchable extends _react.Component {
197
192
  }
198
193
  }
199
194
  onMoveOut() {
200
- // long press should no longer be detected
195
+ // Long press should no longer be detected
201
196
  clearTimeout(this.longPressTimeout);
202
197
  this.longPressTimeout = null;
203
198
  if (this.STATE === TOUCHABLE_STATE.BEGAN) {
@@ -205,13 +200,12 @@ class GenericTouchable extends _react.Component {
205
200
  }
206
201
  }
207
202
  render() {
208
- var _ref, _this$props$touchSoun;
209
- const hitSlop = (_ref = typeof this.props.hitSlop === 'number' ? {
203
+ const hitSlop = (typeof this.props.hitSlop === 'number' ? {
210
204
  top: this.props.hitSlop,
211
205
  left: this.props.hitSlop,
212
206
  bottom: this.props.hitSlop,
213
207
  right: this.props.hitSlop
214
- } : this.props.hitSlop) !== null && _ref !== void 0 ? _ref : undefined;
208
+ } : this.props.hitSlop) ?? undefined;
215
209
  const coreProps = {
216
210
  accessible: this.props.accessible !== false,
217
211
  accessibilityLabel: this.props.accessibilityLabel,
@@ -225,29 +219,27 @@ class GenericTouchable extends _react.Component {
225
219
  nativeID: this.props.nativeID,
226
220
  onLayout: this.props.onLayout
227
221
  };
228
- return /*#__PURE__*/React.createElement(_GestureButtons.BaseButton, _extends({
222
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GestureButtons.BaseButton, {
229
223
  style: this.props.containerStyle,
230
224
  onHandlerStateChange:
231
225
  // TODO: not sure if it can be undefined instead of null
232
226
  this.props.disabled ? undefined : this.onHandlerStateChange,
233
227
  onGestureEvent: this.onGestureEvent,
234
228
  hitSlop: hitSlop,
229
+ userSelect: this.props.userSelect,
235
230
  shouldActivateOnStart: this.props.shouldActivateOnStart,
236
231
  disallowInterruption: this.props.disallowInterruption,
237
232
  testID: this.props.testID,
238
- touchSoundDisabled: (_this$props$touchSoun = this.props.touchSoundDisabled) !== null && _this$props$touchSoun !== void 0 ? _this$props$touchSoun : false,
239
- enabled: !this.props.disabled
240
- }, this.props.extraButtonProps), /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, coreProps, {
241
- style: this.props.style
242
- }), this.props.children));
233
+ touchSoundDisabled: this.props.touchSoundDisabled ?? false,
234
+ enabled: !this.props.disabled,
235
+ ...this.props.extraButtonProps,
236
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
237
+ ...coreProps,
238
+ style: this.props.style,
239
+ children: this.props.children
240
+ })
241
+ });
243
242
  }
244
243
  }
245
244
  exports.default = GenericTouchable;
246
- _defineProperty(GenericTouchable, "defaultProps", {
247
- delayLongPress: 600,
248
- extraButtonProps: {
249
- rippleColor: 'transparent',
250
- exclusive: true
251
- }
252
- });
253
245
  //# sourceMappingURL=GenericTouchable.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_State","_GestureButtons","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","TOUCHABLE_STATE","exports","UNDETERMINED","BEGAN","MOVED_OUTSIDE","GenericTouchable","Component","constructor","args","nativeEvent","pointerInside","onMoveIn","onMoveOut","state","State","CANCELLED","FAILED","moveToState","Platform","OS","ACTIVE","STATE","handlePressIn","END","shouldCallOnPress","longPressDetected","pressOutTimeout","handleGoToUndetermined","_this$props$onPress","_this$props","props","onPress","_this$props$onLongPre","_this$props2","onLongPress","delayPressIn","pressInTimeout","setTimeout","time","delayLongPress","longPressTimeout","onLongPressDetected","handleMoveOutside","delayPressOut","clearTimeout","componentDidMount","reset","newState","_this$props$onStateCh","_this$props6","_this$props$onPressIn","_this$props3","onPressIn","_this$props$onPressOu","_this$props4","onPressOut","_this$props$onPressOu2","_this$props5","onStateChange","componentWillUnmount","render","_ref","_this$props$touchSoun","hitSlop","top","left","bottom","right","undefined","coreProps","accessible","accessibilityLabel","accessibilityHint","accessibilityRole","accessibilityState","accessibilityActions","onAccessibilityAction","nativeID","onLayout","createElement","BaseButton","style","containerStyle","onHandlerStateChange","disabled","onGestureEvent","shouldActivateOnStart","disallowInterruption","testID","touchSoundDisabled","enabled","extraButtonProps","Animated","View","children","rippleColor","exclusive"],"sources":["GenericTouchable.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Component } from 'react';\nimport {\n Animated,\n Platform,\n StyleProp,\n ViewStyle,\n TouchableWithoutFeedbackProps,\n Insets,\n} from 'react-native';\n\nimport { State } from '../../State';\nimport { BaseButton } from '../GestureButtons';\n\nimport {\n GestureEvent,\n HandlerStateChangeEvent,\n} from '../../handlers/gestureHandlerCommon';\nimport { NativeViewGestureHandlerPayload } from '../../handlers/NativeViewGestureHandler';\nimport { TouchableNativeFeedbackExtraProps } from './TouchableNativeFeedback.android';\n\n/**\n * Each touchable is a states' machine which preforms transitions.\n * On very beginning (and on the very end or recognition) touchable is\n * UNDETERMINED. Then it moves to BEGAN. If touchable recognizes that finger\n * travel outside it transits to special MOVED_OUTSIDE state. Gesture recognition\n * finishes in UNDETERMINED state.\n */\nexport const TOUCHABLE_STATE = {\n UNDETERMINED: 0,\n BEGAN: 1,\n MOVED_OUTSIDE: 2,\n} as const;\n\ntype TouchableState = typeof TOUCHABLE_STATE[keyof typeof TOUCHABLE_STATE];\n\nexport interface GenericTouchableProps\n extends Omit<TouchableWithoutFeedbackProps, 'hitSlop'> {\n // Decided to drop not used fields from RN's implementation.\n // e.g. onBlur and onFocus as well as deprecated props. - TODO: this comment may be unuseful in this moment\n\n // TODO: in RN these events get native event parameter, which prolly could be used in our implementation too\n onPress?: () => void;\n onPressIn?: () => void;\n onPressOut?: () => void;\n onLongPress?: () => void;\n\n nativeID?: string;\n shouldActivateOnStart?: boolean;\n disallowInterruption?: boolean;\n\n containerStyle?: StyleProp<ViewStyle>;\n hitSlop?: Insets | number;\n}\n\ninterface InternalProps {\n extraButtonProps: TouchableNativeFeedbackExtraProps;\n onStateChange?: (oldState: TouchableState, newState: TouchableState) => void;\n}\n\n// TODO: maybe can be better\n// TODO: all clearTimeout have ! added, maybe they shouldn't ?\ntype Timeout = ReturnType<typeof setTimeout> | null | undefined;\n\n/**\n * GenericTouchable is not intented to be used as it is.\n * Should be treated as a source for the rest of touchables\n */\n\nexport default class GenericTouchable extends Component<\n GenericTouchableProps & InternalProps\n> {\n static defaultProps = {\n delayLongPress: 600,\n extraButtonProps: {\n rippleColor: 'transparent',\n exclusive: true,\n },\n };\n\n // timeout handlers\n pressInTimeout: Timeout;\n pressOutTimeout: Timeout;\n longPressTimeout: Timeout;\n\n // This flag is required since recognition of longPress implies not-invoking onPress\n longPressDetected = false;\n\n pointerInside = true;\n\n // State of touchable\n STATE: TouchableState = TOUCHABLE_STATE.UNDETERMINED;\n\n // handlePressIn in called on first touch on traveling inside component.\n // Handles state transition with delay.\n handlePressIn() {\n if (this.props.delayPressIn) {\n this.pressInTimeout = setTimeout(() => {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n this.pressInTimeout = null;\n }, this.props.delayPressIn);\n } else {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n if (this.props.onLongPress) {\n const time =\n (this.props.delayPressIn || 0) + (this.props.delayLongPress || 0);\n this.longPressTimeout = setTimeout(this.onLongPressDetected, time);\n }\n }\n // handleMoveOutside in called on traveling outside component.\n // Handles state transition with delay.\n handleMoveOutside() {\n if (this.props.delayPressOut) {\n this.pressOutTimeout =\n this.pressOutTimeout ||\n setTimeout(() => {\n this.moveToState(TOUCHABLE_STATE.MOVED_OUTSIDE);\n this.pressOutTimeout = null;\n }, this.props.delayPressOut);\n } else {\n this.moveToState(TOUCHABLE_STATE.MOVED_OUTSIDE);\n }\n }\n\n // handleGoToUndetermined transits to UNDETERMINED state with proper delay\n handleGoToUndetermined() {\n clearTimeout(this.pressOutTimeout!); // TODO: maybe it can be undefined\n if (this.props.delayPressOut) {\n this.pressOutTimeout = setTimeout(() => {\n if (this.STATE === TOUCHABLE_STATE.UNDETERMINED) {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n this.moveToState(TOUCHABLE_STATE.UNDETERMINED);\n this.pressOutTimeout = null;\n }, this.props.delayPressOut);\n } else {\n if (this.STATE === TOUCHABLE_STATE.UNDETERMINED) {\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n this.moveToState(TOUCHABLE_STATE.UNDETERMINED);\n }\n }\n\n componentDidMount() {\n this.reset();\n }\n // reset timeout to prevent memory leaks.\n reset() {\n this.longPressDetected = false;\n this.pointerInside = true;\n clearTimeout(this.pressInTimeout!);\n clearTimeout(this.pressOutTimeout!);\n clearTimeout(this.longPressTimeout!);\n this.pressOutTimeout = null;\n this.longPressTimeout = null;\n this.pressInTimeout = null;\n }\n\n // All states' transitions are defined here.\n moveToState(newState: TouchableState) {\n if (newState === this.STATE) {\n // Ignore dummy transitions\n return;\n }\n if (newState === TOUCHABLE_STATE.BEGAN) {\n // First touch and moving inside\n this.props.onPressIn?.();\n } else if (newState === TOUCHABLE_STATE.MOVED_OUTSIDE) {\n // Moving outside\n this.props.onPressOut?.();\n } else if (newState === TOUCHABLE_STATE.UNDETERMINED) {\n // Need to reset each time on transition to UNDETERMINED\n this.reset();\n if (this.STATE === TOUCHABLE_STATE.BEGAN) {\n // ... and if it happens inside button.\n this.props.onPressOut?.();\n }\n }\n // Finally call lister (used by subclasses)\n this.props.onStateChange?.(this.STATE, newState);\n // ... and make transition.\n this.STATE = newState;\n }\n\n onGestureEvent = ({\n nativeEvent: { pointerInside },\n }: GestureEvent<NativeViewGestureHandlerPayload>) => {\n if (this.pointerInside !== pointerInside) {\n if (pointerInside) {\n this.onMoveIn();\n } else {\n this.onMoveOut();\n }\n }\n this.pointerInside = pointerInside;\n };\n\n onHandlerStateChange = ({\n nativeEvent,\n }: HandlerStateChangeEvent<NativeViewGestureHandlerPayload>) => {\n const { state } = nativeEvent;\n if (state === State.CANCELLED || state === State.FAILED) {\n // Need to handle case with external cancellation (e.g. by ScrollView)\n this.moveToState(TOUCHABLE_STATE.UNDETERMINED);\n } else if (\n // This platform check is an implication of slightly different behavior of handlers on different platform.\n // And Android \"Active\" state is achieving on first move of a finger, not on press in.\n // On iOS event on \"Began\" is not delivered.\n state === (Platform.OS !== 'android' ? State.ACTIVE : State.BEGAN) &&\n this.STATE === TOUCHABLE_STATE.UNDETERMINED\n ) {\n // Moving inside requires\n this.handlePressIn();\n } else if (state === State.END) {\n const shouldCallOnPress =\n !this.longPressDetected &&\n this.STATE !== TOUCHABLE_STATE.MOVED_OUTSIDE &&\n this.pressOutTimeout === null;\n this.handleGoToUndetermined();\n if (shouldCallOnPress) {\n // Calls only inside component whether no long press was called previously\n this.props.onPress?.();\n }\n }\n };\n\n onLongPressDetected = () => {\n this.longPressDetected = true;\n // checked for in the caller of `onLongPressDetected`, but better to check twice\n this.props.onLongPress?.();\n };\n\n componentWillUnmount() {\n // to prevent memory leaks\n this.reset();\n }\n\n onMoveIn() {\n if (this.STATE === TOUCHABLE_STATE.MOVED_OUTSIDE) {\n // This call is not throttled with delays (like in RN's implementation).\n this.moveToState(TOUCHABLE_STATE.BEGAN);\n }\n }\n\n onMoveOut() {\n // long press should no longer be detected\n clearTimeout(this.longPressTimeout!);\n this.longPressTimeout = null;\n if (this.STATE === TOUCHABLE_STATE.BEGAN) {\n this.handleMoveOutside();\n }\n }\n\n render() {\n const hitSlop =\n (typeof this.props.hitSlop === 'number'\n ? {\n top: this.props.hitSlop,\n left: this.props.hitSlop,\n bottom: this.props.hitSlop,\n right: this.props.hitSlop,\n }\n : this.props.hitSlop) ?? undefined;\n\n const coreProps = {\n accessible: this.props.accessible !== false,\n accessibilityLabel: this.props.accessibilityLabel,\n accessibilityHint: this.props.accessibilityHint,\n accessibilityRole: this.props.accessibilityRole,\n // TODO: check if changed to no 's' correctly, also removed 2 props that are no longer available: `accessibilityComponentType` and `accessibilityTraits`,\n // would be good to check if it is ok for sure, see: https://github.com/facebook/react-native/issues/24016\n accessibilityState: this.props.accessibilityState,\n accessibilityActions: this.props.accessibilityActions,\n onAccessibilityAction: this.props.onAccessibilityAction,\n nativeID: this.props.nativeID,\n onLayout: this.props.onLayout,\n };\n\n return (\n <BaseButton\n style={this.props.containerStyle}\n onHandlerStateChange={\n // TODO: not sure if it can be undefined instead of null\n this.props.disabled ? undefined : this.onHandlerStateChange\n }\n onGestureEvent={this.onGestureEvent}\n hitSlop={hitSlop}\n shouldActivateOnStart={this.props.shouldActivateOnStart}\n disallowInterruption={this.props.disallowInterruption}\n testID={this.props.testID}\n touchSoundDisabled={this.props.touchSoundDisabled ?? false}\n enabled={!this.props.disabled}\n {...this.props.extraButtonProps}>\n <Animated.View {...coreProps} style={this.props.style}>\n {this.props.children}\n </Animated.View>\n </BaseButton>\n );\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AASA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AAA+C,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MA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,kBAAkB,GAAA3B,qBAAA,GAAE,IAAI,CAAChC,KAAK,CAAC2D,kBAAkB,cAAA3B,qBAAA,cAAAA,qBAAA,GAAI,KAAM;MAC3D4B,OAAO,EAAE,CAAC,IAAI,CAAC5D,KAAK,CAACsD;IAAS,GAC1B,IAAI,CAACtD,KAAK,CAAC6D,gBAAgB,gBAC/BrI,KAAA,CAAAyH,aAAA,CAACxH,YAAA,CAAAqI,QAAQ,CAACC,IAAI,EAAA/G,QAAA,KAAKuF,SAAS;MAAEY,KAAK,EAAE,IAAI,CAACnD,KAAK,CAACmD;IAAM,IACnD,IAAI,CAACnD,KAAK,CAACgE,QACC,CACL,CAAC;EAEjB;AACF;AAAC7F,OAAA,CAAAjC,OAAA,GAAAqC,gBAAA;AAAAjB,eAAA,CAvOoBiB,gBAAgB,kBAGb;EACpBkC,cAAc,EAAE,GAAG;EACnBoD,gBAAgB,EAAE;IAChBI,WAAW,EAAE,aAAa;IAC1BC,SAAS,EAAE;EACb;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","React","_reactNative","_State","_GestureButtons","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TOUCHABLE_STATE","exports","UNDETERMINED","BEGAN","MOVED_OUTSIDE","GenericTouchable","Component","defaultProps","delayLongPress","extraButtonProps","rippleColor","exclusive","longPressDetected","pointerInside","STATE","handlePressIn","props","delayPressIn","pressInTimeout","setTimeout","moveToState","onLongPress","time","longPressTimeout","onLongPressDetected","handleMoveOutside","delayPressOut","pressOutTimeout","handleGoToUndetermined","clearTimeout","componentDidMount","reset","newState","onPressIn","onPressOut","onStateChange","onGestureEvent","nativeEvent","onMoveIn","onMoveOut","onHandlerStateChange","state","State","CANCELLED","FAILED","Platform","OS","ACTIVE","END","shouldCallOnPress","onPress","componentWillUnmount","render","hitSlop","top","left","bottom","right","undefined","coreProps","accessible","accessibilityLabel","accessibilityHint","accessibilityRole","accessibilityState","accessibilityActions","onAccessibilityAction","nativeID","onLayout","jsx","BaseButton","style","containerStyle","disabled","userSelect","shouldActivateOnStart","disallowInterruption","testID","touchSoundDisabled","enabled","children","Animated","View"],"sourceRoot":"../../../../src","sources":["components/touchables/GenericTouchable.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,KAAA,GAAAH,MAAA;AAE/B,IAAAI,YAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AAA+C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,I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KAAK,CAACoD;IACvB,CAAC;IAED,oBACE,IAAAxF,WAAA,CAAAyF,GAAA,EAAC1F,eAAA,CAAA2F,UAAU;MACTC,KAAK,EAAE,IAAI,CAACvD,KAAK,CAACwD,cAAe;MACjChC,oBAAoB;MAClB;MACA,IAAI,CAACxB,KAAK,CAACyD,QAAQ,GAAGf,SAAS,GAAG,IAAI,CAAClB,oBACxC;MACDJ,cAAc,EAAE,IAAI,CAACA,cAAe;MACpCiB,OAAO,EAAEA,OAAQ;MACjBqB,UAAU,EAAE,IAAI,CAAC1D,KAAK,CAAC0D,UAAW;MAClCC,qBAAqB,EAAE,IAAI,CAAC3D,KAAK,CAAC2D,qBAAsB;MACxDC,oBAAoB,EAAE,IAAI,CAAC5D,KAAK,CAAC4D,oBAAqB;MACtDC,MAAM,EAAE,IAAI,CAAC7D,KAAK,CAAC6D,MAAO;MAC1BC,kBAAkB,EAAE,IAAI,CAAC9D,KAAK,CAAC8D,kBAAkB,IAAI,KAAM;MAC3DC,OAAO,EAAE,CAAC,IAAI,CAAC/D,KAAK,CAACyD,QAAS;MAAA,GAC1B,IAAI,CAACzD,KAAK,CAACP,gBAAgB;MAAAuE,QAAA,eAC/B,IAAApG,WAAA,CAAAyF,GAAA,EAAC5F,YAAA,CAAAwG,QAAQ,CAACC,IAAI;QAAA,GAAKvB,SAAS;QAAEY,KAAK,EAAE,IAAI,CAACvD,KAAK,CAACuD,KAAM;QAAAS,QAAA,EACnD,IAAI,CAAChE,KAAK,CAACgE;MAAQ,CACP;IAAC,CACN,CAAC;EAEjB;AACF;AAAC/E,OAAA,CAAAV,OAAA,GAAAc,gBAAA","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=GenericTouchableProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/touchables/GenericTouchableProps.ts"],"mappings":"","ignoreList":[]}