@amazon-devices/react-native-gesture-handler 2.0.1759135970 → 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 +145 -142
  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 +138 -134
  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 -2
  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 -1
  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 +97 -58
  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/94837b5e706b3cc0138b2ee460c5e7c9c0ae02fcab7709d9bd0845d4a59b1c43.bundle +0 -67496
  1242. package/SystemBundles/94837b5e706b3cc0138b2ee460c5e7c9c0ae02fcab7709d9bd0845d4a59b1c43.map +0 -1
  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 -96
  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
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PressableStateMachine","constructor","states","currentStepIndex","eventPayload","setStates","reset","handleEvent","eventName","step","callback","length"],"sourceRoot":"../../../../src","sources":["components/Pressable/StateMachine.tsx"],"mappings":";;AAOA,MAAMA,qBAAqB,CAAC;EAK1BC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,MAAM,GAAG,IAAI;IAClB,IAAI,CAACC,gBAAgB,GAAG,CAAC;IACzB,IAAI,CAACC,YAAY,GAAG,IAAI;EAC1B;EAEOC,SAASA,CAACH,MAAyB,EAAE;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;EAEOI,KAAKA,CAAA,EAAG;IACb,IAAI,CAACH,gBAAgB,GAAG,CAAC;IACzB,IAAI,CAACC,YAAY,GAAG,IAAI;EAC1B;EAEOG,WAAWA,CAACC,SAAiB,EAAEJ,YAA6B,EAAE;IACnE,IAAI,CAAC,IAAI,CAACF,MAAM,EAAE;MAChB;IACF;IAEA,MAAMO,IAAI,GAAG,IAAI,CAACP,MAAM,CAAC,IAAI,CAACC,gBAAgB,CAAC;IAC/C,IAAI,CAACC,YAAY,GAAGA,YAAY,IAAI,IAAI,CAACA,YAAY;IAErD,IAAIK,IAAI,CAACD,SAAS,KAAKA,SAAS,EAAE;MAChC,IAAI,IAAI,CAACL,gBAAgB,GAAG,CAAC,EAAE;QAC7B;QACA,IAAI,CAACG,KAAK,CAAC,CAAC;QACZ,IAAI,CAACC,WAAW,CAACC,SAAS,EAAEJ,YAAY,CAAC;MAC3C;MACA;IACF;IAEA,IAAI,IAAI,CAACA,YAAY,IAAIK,IAAI,CAACC,QAAQ,EAAE;MACtCD,IAAI,CAACC,QAAQ,CAAC,IAAI,CAACN,YAAY,CAAC;IAClC;IAEA,IAAI,CAACD,gBAAgB,EAAE;IAEvB,IAAI,IAAI,CAACA,gBAAgB,KAAK,IAAI,CAACD,MAAM,CAACS,MAAM,EAAE;MAChD,IAAI,CAACL,KAAK,CAAC,CAAC;IACd;EACF;AACF;AAEA,SAASN,qBAAqB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { default } from './Pressable';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["default"],"sourceRoot":"../../../../src","sources":["components/Pressable/index.ts"],"mappings":";;AAIA,SAASA,OAAO,QAAQ,aAAa","ignoreList":[]}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ export let StateMachineEvent = /*#__PURE__*/function (StateMachineEvent) {
5
+ StateMachineEvent["NATIVE_BEGIN"] = "nativeBegin";
6
+ StateMachineEvent["NATIVE_START"] = "nativeStart";
7
+ StateMachineEvent["FINALIZE"] = "finalize";
8
+ StateMachineEvent["LONG_PRESS_TOUCHES_DOWN"] = "longPressTouchesDown";
9
+ StateMachineEvent["CANCEL"] = "cancel";
10
+ return StateMachineEvent;
11
+ }({});
12
+ function getAndroidStatesConfig(handlePressIn, handlePressOut) {
13
+ return [{
14
+ eventName: StateMachineEvent.NATIVE_BEGIN
15
+ }, {
16
+ eventName: StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,
17
+ callback: handlePressIn
18
+ }, {
19
+ eventName: StateMachineEvent.FINALIZE,
20
+ callback: handlePressOut
21
+ }];
22
+ }
23
+ function getIosStatesConfig(handlePressIn, handlePressOut) {
24
+ return [{
25
+ eventName: StateMachineEvent.LONG_PRESS_TOUCHES_DOWN
26
+ }, {
27
+ eventName: StateMachineEvent.NATIVE_START,
28
+ callback: handlePressIn
29
+ }, {
30
+ eventName: StateMachineEvent.FINALIZE,
31
+ callback: handlePressOut
32
+ }];
33
+ }
34
+ function getWebStatesConfig(handlePressIn, handlePressOut) {
35
+ return [{
36
+ eventName: StateMachineEvent.NATIVE_BEGIN
37
+ }, {
38
+ eventName: StateMachineEvent.NATIVE_START
39
+ }, {
40
+ eventName: StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,
41
+ callback: handlePressIn
42
+ }, {
43
+ eventName: StateMachineEvent.FINALIZE,
44
+ callback: handlePressOut
45
+ }];
46
+ }
47
+ function getMacosStatesConfig(handlePressIn, handlePressOut) {
48
+ return [{
49
+ eventName: StateMachineEvent.LONG_PRESS_TOUCHES_DOWN
50
+ }, {
51
+ eventName: StateMachineEvent.NATIVE_BEGIN,
52
+ callback: handlePressIn
53
+ }, {
54
+ eventName: StateMachineEvent.NATIVE_START
55
+ }, {
56
+ eventName: StateMachineEvent.FINALIZE,
57
+ callback: handlePressOut
58
+ }];
59
+ }
60
+ function getUniversalStatesConfig(handlePressIn, handlePressOut) {
61
+ return [{
62
+ eventName: StateMachineEvent.FINALIZE,
63
+ callback: event => {
64
+ handlePressIn(event);
65
+ handlePressOut(event);
66
+ }
67
+ }];
68
+ }
69
+ export function getStatesConfig(handlePressIn, handlePressOut) {
70
+ if (Platform.OS === 'android') {
71
+ return getAndroidStatesConfig(handlePressIn, handlePressOut);
72
+ } else if (Platform.OS === 'ios') {
73
+ return getIosStatesConfig(handlePressIn, handlePressOut);
74
+ } else if (Platform.OS === 'web') {
75
+ return getWebStatesConfig(handlePressIn, handlePressOut);
76
+ } else if (Platform.OS === 'macos') {
77
+ return getMacosStatesConfig(handlePressIn, handlePressOut);
78
+ } else {
79
+ // Unknown platform - using minimal universal setup.
80
+ return getUniversalStatesConfig(handlePressIn, handlePressOut);
81
+ }
82
+ }
83
+ //# sourceMappingURL=stateDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","StateMachineEvent","getAndroidStatesConfig","handlePressIn","handlePressOut","eventName","NATIVE_BEGIN","LONG_PRESS_TOUCHES_DOWN","callback","FINALIZE","getIosStatesConfig","NATIVE_START","getWebStatesConfig","getMacosStatesConfig","getUniversalStatesConfig","event","getStatesConfig","OS"],"sourceRoot":"../../../../src","sources":["components/Pressable/stateDefinitions.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAIvC,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAQ7B,SAASC,sBAAsBA,CAC7BC,aAA8C,EAC9CC,cAA+C,EAC/C;EACA,OAAO,CACL;IACEC,SAAS,EAAEJ,iBAAiB,CAACK;EAC/B,CAAC,EACD;IACED,SAAS,EAAEJ,iBAAiB,CAACM,uBAAuB;IACpDC,QAAQ,EAAEL;EACZ,CAAC,EACD;IACEE,SAAS,EAAEJ,iBAAiB,CAACQ,QAAQ;IACrCD,QAAQ,EAAEJ;EACZ,CAAC,CACF;AACH;AAEA,SAASM,kBAAkBA,CACzBP,aAA8C,EAC9CC,cAA+C,EAC/C;EACA,OAAO,C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EACnB,IAAIJ,QAAQ,CAACiB,EAAE,KAAK,SAAS,EAAE;IAC7B,OAAOf,sBAAsB,CAACC,aAAa,EAAEC,cAAc,CAAC;EAC9D,CAAC,MAAM,IAAIJ,QAAQ,CAACiB,EAAE,KAAK,KAAK,EAAE;IAChC,OAAOP,kBAAkB,CAACP,aAAa,EAAEC,cAAc,CAAC;EAC1D,CAAC,MAAM,IAAIJ,QAAQ,CAACiB,EAAE,KAAK,KAAK,EAAE;IAChC,OAAOL,kBAAkB,CAACT,aAAa,EAAEC,cAAc,CAAC;EAC1D,CAAC,MAAM,IAAIJ,QAAQ,CAACiB,EAAE,KAAK,OAAO,EAAE;IAClC,OAAOJ,oBAAoB,CAACV,aAAa,EAAEC,cAAc,CAAC;EAC5D,CAAC,MAAM;IACL;IACA,OAAOU,wBAAwB,CAACX,aAAa,EAAEC,cAAc,CAAC;EAChE;AACF","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ const numberAsInset = value => ({
4
+ left: value,
5
+ right: value,
6
+ top: value,
7
+ bottom: value
8
+ });
9
+ const addInsets = (a, b) => ({
10
+ left: (a.left ?? 0) + (b.left ?? 0),
11
+ right: (a.right ?? 0) + (b.right ?? 0),
12
+ top: (a.top ?? 0) + (b.top ?? 0),
13
+ bottom: (a.bottom ?? 0) + (b.bottom ?? 0)
14
+ });
15
+ const touchDataToPressEvent = (data, timestamp, targetId) => ({
16
+ identifier: data.id,
17
+ locationX: data.x,
18
+ locationY: data.y,
19
+ pageX: data.absoluteX,
20
+ pageY: data.absoluteY,
21
+ target: targetId,
22
+ timestamp: timestamp,
23
+ touches: [],
24
+ // Always empty - legacy compatibility
25
+ changedTouches: [] // Always empty - legacy compatibility
26
+ });
27
+ const gestureToPressEvent = (event, timestamp, targetId) => ({
28
+ identifier: event.handlerTag,
29
+ locationX: event.x,
30
+ locationY: event.y,
31
+ pageX: event.absoluteX,
32
+ pageY: event.absoluteY,
33
+ target: targetId,
34
+ timestamp: timestamp,
35
+ touches: [],
36
+ // Always empty - legacy compatibility
37
+ changedTouches: [] // Always empty - legacy compatibility
38
+ });
39
+ const isTouchWithinInset = (dimensions, inset, touch) => (touch?.locationX ?? 0) < (inset.right ?? 0) + dimensions.width && (touch?.locationY ?? 0) < (inset.bottom ?? 0) + dimensions.height && (touch?.locationX ?? 0) > -(inset.left ?? 0) && (touch?.locationY ?? 0) > -(inset.top ?? 0);
40
+ const gestureToPressableEvent = event => {
41
+ const timestamp = Date.now();
42
+
43
+ // As far as I can see, there isn't a conventional way of getting targetId with the data we get
44
+ const targetId = 0;
45
+ const pressEvent = gestureToPressEvent(event, timestamp, targetId);
46
+ return {
47
+ nativeEvent: {
48
+ touches: [pressEvent],
49
+ changedTouches: [pressEvent],
50
+ identifier: pressEvent.identifier,
51
+ locationX: event.x,
52
+ locationY: event.y,
53
+ pageX: event.absoluteX,
54
+ pageY: event.absoluteY,
55
+ target: targetId,
56
+ timestamp: timestamp,
57
+ force: undefined
58
+ }
59
+ };
60
+ };
61
+ const gestureTouchToPressableEvent = event => {
62
+ const timestamp = Date.now();
63
+
64
+ // As far as I can see, there isn't a conventional way of getting targetId with the data we get
65
+ const targetId = 0;
66
+ const touchesList = event.allTouches.map(touch => touchDataToPressEvent(touch, timestamp, targetId));
67
+ const changedTouchesList = event.changedTouches.map(touch => touchDataToPressEvent(touch, timestamp, targetId));
68
+ return {
69
+ nativeEvent: {
70
+ touches: touchesList,
71
+ changedTouches: changedTouchesList,
72
+ identifier: event.handlerTag,
73
+ locationX: event.allTouches.at(0)?.x ?? -1,
74
+ locationY: event.allTouches.at(0)?.y ?? -1,
75
+ pageX: event.allTouches.at(0)?.absoluteX ?? -1,
76
+ pageY: event.allTouches.at(0)?.absoluteY ?? -1,
77
+ target: targetId,
78
+ timestamp: timestamp,
79
+ force: undefined
80
+ }
81
+ };
82
+ };
83
+ export { numberAsInset, addInsets, isTouchWithinInset, gestureToPressableEvent, gestureTouchToPressableEvent };
84
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["numberAsInset","value","left","right","top","bottom","addInsets","a","b","touchDataToPressEvent","data","timestamp","targetId","identifier","id","locationX","x","locationY","y","pageX","absoluteX","pageY","absoluteY","target","touches","changedTouches","gestureToPressEvent","event","handlerTag","isTouchWithinInset","dimensions","inset","touch","width","height","gestureToPressableEvent","Date","now","pressEvent","nativeEvent","force","undefined","gestureTouchToPressableEvent","touchesList","allTouches","map","changedTouchesList","at"],"sourceRoot":"../../../../src","sources":["components/Pressable/utils.ts"],"mappings":";;AAgBA,MAAMA,aAAa,GAAIC,KAAa,KAAc;EAChDC,IAAI,EAAED,KAAK;EACXE,KAAK,EAAEF,KAAK;EACZG,GAAG,EAAEH,KAAK;EACVI,MAAM,EAAEJ;AACV,CAAC,CAAC;AAEF,MAAMK,SAAS,GAAGA,CAACC,CAAS,EAAEC,CAAS,MAAc;EACnDN,IAAI,EAAE,CAACK,CAAC,CAACL,IAAI,IAAI,CAAC,KAAKM,CAAC,CAACN,IAAI,IAAI,CAAC,CAAC;EACnCC,KAAK,EAAE,CAACI,CAAC,CAACJ,KAAK,IAAI,CAAC,KAAKK,CAAC,CAACL,KAAK,IAAI,CAAC,CAAC;EACtCC,GAAG,EAAE,CAACG,CAAC,CAACH,GAAG,IAAI,CAAC,KAAKI,CAAC,CAACJ,GAAG,IAAI,CAAC,CAAC;EAChCC,MAAM,EAAE,CAACE,CAAC,CAACF,MAAM,IAAI,CAAC,KAAKG,CAAC,CAACH,MAAM,IAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAMI,qBAAqB,GAAGA,CAC5BC,IAAe,EACfC,SAAiB,EACjBC,QAAgB,MACS;EACzBC,UAAU,EAAEH,IAAI,CAACI,EAAE;EACnBC,SAAS,EAAEL,IAAI,CAACM,CAAC;EACjBC,SAAS,EAAEP,IAAI,CAACQ,CAAC;EACjBC,KAAK,EAAET,IAAI,CAACU,SAAS;EACrBC,KAAK,EAAEX,IAAI,CAACY,SA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,KAAK,CAACiB,UAAU,CAACG,EAAE,CAAC,CAAC,CAAC,EAAE3B,SAAS,IAAI,CAAC,CAAC;MAC9CC,KAAK,EAAEM,KAAK,CAACiB,UAAU,CAACG,EAAE,CAAC,CAAC,CAAC,EAAEzB,SAAS,IAAI,CAAC,CAAC;MAC9CC,MAAM,EAAEX,QAAQ;MAChBD,SAAS,EAAEA,SAAS;MACpB6B,KAAK,EAAEC;IACT;EACF,CAAC;AACH,CAAC;AAED,SACEzC,aAAa,EACbM,SAAS,EACTuB,kBAAkB,EAClBM,uBAAuB,EACvBO,4BAA4B","ignoreList":[]}
@@ -0,0 +1,352 @@
1
+ "use strict";
2
+
3
+ // This component is based on RN's DrawerLayoutAndroid API
4
+ // It's cross-compatible with all platforms despite
5
+ // `DrawerLayoutAndroid` only being available on android
6
+
7
+ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useState } from 'react';
8
+ import { StyleSheet, Keyboard, StatusBar, I18nManager, Platform } from 'react-native';
9
+ import Animated, { Extrapolation, interpolate, runOnJS, useAnimatedProps, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring } from 'react-native-reanimated';
10
+ import { GestureObjects as Gesture } from '../handlers/gestures/gestureObjects';
11
+ import { GestureDetector } from '../handlers/gestures/GestureDetector';
12
+ import { MouseButton } from '../handlers/gestureHandlerCommon';
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ const DRAG_TOSS = 0.05;
15
+ export let DrawerPosition = /*#__PURE__*/function (DrawerPosition) {
16
+ DrawerPosition[DrawerPosition["LEFT"] = 0] = "LEFT";
17
+ DrawerPosition[DrawerPosition["RIGHT"] = 1] = "RIGHT";
18
+ return DrawerPosition;
19
+ }({});
20
+ export let DrawerState = /*#__PURE__*/function (DrawerState) {
21
+ DrawerState[DrawerState["IDLE"] = 0] = "IDLE";
22
+ DrawerState[DrawerState["DRAGGING"] = 1] = "DRAGGING";
23
+ DrawerState[DrawerState["SETTLING"] = 2] = "SETTLING";
24
+ return DrawerState;
25
+ }({});
26
+ export let DrawerType = /*#__PURE__*/function (DrawerType) {
27
+ DrawerType[DrawerType["FRONT"] = 0] = "FRONT";
28
+ DrawerType[DrawerType["BACK"] = 1] = "BACK";
29
+ DrawerType[DrawerType["SLIDE"] = 2] = "SLIDE";
30
+ return DrawerType;
31
+ }({});
32
+ export let DrawerLockMode = /*#__PURE__*/function (DrawerLockMode) {
33
+ DrawerLockMode[DrawerLockMode["UNLOCKED"] = 0] = "UNLOCKED";
34
+ DrawerLockMode[DrawerLockMode["LOCKED_CLOSED"] = 1] = "LOCKED_CLOSED";
35
+ DrawerLockMode[DrawerLockMode["LOCKED_OPEN"] = 2] = "LOCKED_OPEN";
36
+ return DrawerLockMode;
37
+ }({});
38
+ export let DrawerKeyboardDismissMode = /*#__PURE__*/function (DrawerKeyboardDismissMode) {
39
+ DrawerKeyboardDismissMode[DrawerKeyboardDismissMode["NONE"] = 0] = "NONE";
40
+ DrawerKeyboardDismissMode[DrawerKeyboardDismissMode["ON_DRAG"] = 1] = "ON_DRAG";
41
+ return DrawerKeyboardDismissMode;
42
+ }({});
43
+ const defaultProps = {
44
+ drawerWidth: 200,
45
+ drawerPosition: DrawerPosition.LEFT,
46
+ drawerType: DrawerType.FRONT,
47
+ edgeWidth: 20,
48
+ minSwipeDistance: 3,
49
+ overlayColor: 'rgba(0, 0, 0, 0.7)',
50
+ drawerLockMode: DrawerLockMode.UNLOCKED,
51
+ enableTrackpadTwoFingerGesture: false,
52
+ activeCursor: 'auto',
53
+ mouseButton: MouseButton.LEFT,
54
+ statusBarAnimation: 'slide'
55
+ };
56
+
57
+ // StatusBar.setHidden and Keyboard.dismiss cannot be directly referenced in worklets.
58
+ const setStatusBarHidden = StatusBar.setHidden;
59
+ const dismissKeyboard = Keyboard.dismiss;
60
+ const DrawerLayout = /*#__PURE__*/forwardRef(function DrawerLayout(props, ref) {
61
+ const [containerWidth, setContainerWidth] = useState(0);
62
+ const [drawerState, setDrawerState] = useState(DrawerState.IDLE);
63
+ const [drawerOpened, setDrawerOpened] = useState(false);
64
+ const {
65
+ drawerPosition = defaultProps.drawerPosition,
66
+ drawerWidth = defaultProps.drawerWidth,
67
+ drawerType = defaultProps.drawerType,
68
+ drawerBackgroundColor,
69
+ drawerContainerStyle,
70
+ contentContainerStyle,
71
+ minSwipeDistance = defaultProps.minSwipeDistance,
72
+ edgeWidth = defaultProps.edgeWidth,
73
+ drawerLockMode = defaultProps.drawerLockMode,
74
+ overlayColor = defaultProps.overlayColor,
75
+ enableTrackpadTwoFingerGesture = defaultProps.enableTrackpadTwoFingerGesture,
76
+ activeCursor = defaultProps.activeCursor,
77
+ mouseButton = defaultProps.mouseButton,
78
+ statusBarAnimation = defaultProps.statusBarAnimation,
79
+ hideStatusBar,
80
+ keyboardDismissMode,
81
+ userSelect,
82
+ enableContextMenu,
83
+ renderNavigationView,
84
+ onDrawerSlide,
85
+ onDrawerClose,
86
+ onDrawerOpen,
87
+ onDrawerStateChanged,
88
+ animationSpeed: animationSpeedProp
89
+ } = props;
90
+ const isFromLeft = drawerPosition === DrawerPosition.LEFT;
91
+ const sideCorrection = isFromLeft ? 1 : -1;
92
+
93
+ // While closing the drawer when user starts gesture in the greyed out part of the window,
94
+ // we want the drawer to follow only once the finger reaches the edge of the drawer.
95
+ // See the diagram for reference. * = starting finger position, < = current finger position
96
+ // 1) +---------------+ 2) +---------------+ 3) +---------------+ 4) +---------------+
97
+ // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
98
+ // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
99
+ // |XXXXXXXX|..<*..| |XXXXXXXX|.<-*..| |XXXXXXXX|<--*..| |XXXXX|<-----*..|
100
+ // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
101
+ // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
102
+ // +---------------+ +---------------+ +---------------+ +---------------+
103
+
104
+ const openValue = useSharedValue(0);
105
+ useDerivedValue(() => {
106
+ onDrawerSlide && runOnJS(onDrawerSlide)(openValue.value);
107
+ }, []);
108
+ const isDrawerOpen = useSharedValue(false);
109
+ const handleContainerLayout = ({
110
+ nativeEvent
111
+ }) => {
112
+ setContainerWidth(nativeEvent.layout.width);
113
+ };
114
+ const emitStateChanged = useCallback((newState, drawerWillShow) => {
115
+ 'worklet';
116
+
117
+ onDrawerStateChanged && runOnJS(onDrawerStateChanged)?.(newState, drawerWillShow);
118
+ }, [onDrawerStateChanged]);
119
+ const drawerAnimatedProps = useAnimatedProps(() => ({
120
+ accessibilityViewIsModal: isDrawerOpen.value
121
+ }));
122
+ const overlayAnimatedProps = useAnimatedProps(() => ({
123
+ pointerEvents: isDrawerOpen.value ? 'auto' : 'none'
124
+ }));
125
+
126
+ // While the drawer is hidden, it's hitSlop overflows onto the main view by edgeWidth
127
+ // This way it can be swiped open even when it's hidden
128
+ const [edgeHitSlop, setEdgeHitSlop] = useState(isFromLeft ? {
129
+ left: 0,
130
+ width: edgeWidth
131
+ } : {
132
+ right: 0,
133
+ width: edgeWidth
134
+ });
135
+
136
+ // gestureOrientation is 1 if the gesture is expected to move from left to right and -1 otherwise
137
+ const gestureOrientation = useMemo(() => sideCorrection * (drawerOpened ? -1 : 1), [sideCorrection, drawerOpened]);
138
+ useEffect(() => {
139
+ setEdgeHitSlop(isFromLeft ? {
140
+ left: 0,
141
+ width: edgeWidth
142
+ } : {
143
+ right: 0,
144
+ width: edgeWidth
145
+ });
146
+ }, [isFromLeft, edgeWidth]);
147
+ const animateDrawer = useCallback((toValue, initialVelocity, animationSpeed) => {
148
+ 'worklet';
149
+
150
+ const willShow = toValue !== 0;
151
+ isDrawerOpen.value = willShow;
152
+ emitStateChanged(DrawerState.SETTLING, willShow);
153
+ runOnJS(setDrawerState)(DrawerState.SETTLING);
154
+ if (hideStatusBar) {
155
+ runOnJS(setStatusBarHidden)(willShow, statusBarAnimation);
156
+ }
157
+ const normalizedToValue = interpolate(toValue, [0, drawerWidth], [0, 1], Extrapolation.CLAMP);
158
+ const normalizedInitialVelocity = interpolate(initialVelocity, [0, drawerWidth], [0, 1], Extrapolation.CLAMP);
159
+ openValue.value = withSpring(normalizedToValue, {
160
+ overshootClamping: true,
161
+ velocity: normalizedInitialVelocity,
162
+ mass: animationSpeed ? 1 / animationSpeed : 1 / (animationSpeedProp ?? 1),
163
+ damping: 40,
164
+ stiffness: 500
165
+ }, finished => {
166
+ if (finished) {
167
+ emitStateChanged(DrawerState.IDLE, willShow);
168
+ runOnJS(setDrawerOpened)(willShow);
169
+ runOnJS(setDrawerState)(DrawerState.IDLE);
170
+ if (willShow) {
171
+ onDrawerOpen && runOnJS(onDrawerOpen)?.();
172
+ } else {
173
+ onDrawerClose && runOnJS(onDrawerClose)?.();
174
+ }
175
+ }
176
+ });
177
+ }, [openValue, emitStateChanged, isDrawerOpen, hideStatusBar, onDrawerClose, onDrawerOpen, drawerWidth, statusBarAnimation]);
178
+ const handleRelease = useCallback(event => {
179
+ 'worklet';
180
+
181
+ let {
182
+ translationX: dragX,
183
+ velocityX,
184
+ x: touchX
185
+ } = event;
186
+ if (drawerPosition !== DrawerPosition.LEFT) {
187
+ // See description in _updateAnimatedEvent about why events are flipped
188
+ // for right-side drawer
189
+ dragX = -dragX;
190
+ touchX = containerWidth - touchX;
191
+ velocityX = -velocityX;
192
+ }
193
+ const gestureStartX = touchX - dragX;
194
+ let dragOffsetBasedOnStart = 0;
195
+ if (drawerType === DrawerType.FRONT) {
196
+ dragOffsetBasedOnStart = gestureStartX > drawerWidth ? gestureStartX - drawerWidth : 0;
197
+ }
198
+ const startOffsetX = dragX + dragOffsetBasedOnStart + (isDrawerOpen.value ? drawerWidth : 0);
199
+ const projOffsetX = startOffsetX + DRAG_TOSS * velocityX;
200
+ const shouldOpen = projOffsetX > drawerWidth / 2;
201
+ if (shouldOpen) {
202
+ animateDrawer(drawerWidth, velocityX);
203
+ } else {
204
+ animateDrawer(0, velocityX);
205
+ }
206
+ }, [animateDrawer, containerWidth, drawerPosition, drawerType, drawerWidth, isDrawerOpen]);
207
+ const openDrawer = useCallback((options = {}) => {
208
+ 'worklet';
209
+
210
+ animateDrawer(drawerWidth, options.initialVelocity ?? 0, options.animationSpeed);
211
+ }, [animateDrawer, drawerWidth]);
212
+ const closeDrawer = useCallback((options = {}) => {
213
+ 'worklet';
214
+
215
+ animateDrawer(0, options.initialVelocity ?? 0, options.animationSpeed);
216
+ }, [animateDrawer]);
217
+ const overlayDismissGesture = useMemo(() => Gesture.Tap().maxDistance(25).onEnd(() => {
218
+ if (isDrawerOpen.value && drawerLockMode !== DrawerLockMode.LOCKED_OPEN) {
219
+ closeDrawer();
220
+ }
221
+ }), [closeDrawer, isDrawerOpen, drawerLockMode]);
222
+ const overlayAnimatedStyle = useAnimatedStyle(() => ({
223
+ opacity: openValue.value,
224
+ backgroundColor: overlayColor
225
+ }));
226
+ const fillHitSlop = useMemo(() => isFromLeft ? {
227
+ left: drawerWidth
228
+ } : {
229
+ right: drawerWidth
230
+ }, [drawerWidth, isFromLeft]);
231
+ const panGesture = useMemo(() => {
232
+ return Gesture.Pan().activeCursor(activeCursor).mouseButton(mouseButton).hitSlop(drawerOpened ? fillHitSlop : edgeHitSlop).minDistance(drawerOpened ? 100 : 0).activeOffsetX(gestureOrientation * minSwipeDistance).failOffsetY([-15, 15]).simultaneousWithExternalGesture(overlayDismissGesture).enableTrackpadTwoFingerGesture(enableTrackpadTwoFingerGesture).enabled(drawerState !== DrawerState.SETTLING && (drawerOpened ? drawerLockMode !== DrawerLockMode.LOCKED_OPEN : drawerLockMode !== DrawerLockMode.LOCKED_CLOSED)).onStart(() => {
233
+ emitStateChanged(DrawerState.DRAGGING, false);
234
+ runOnJS(setDrawerState)(DrawerState.DRAGGING);
235
+ if (keyboardDismissMode === DrawerKeyboardDismissMode.ON_DRAG) {
236
+ runOnJS(dismissKeyboard)();
237
+ }
238
+ if (hideStatusBar) {
239
+ runOnJS(setStatusBarHidden)(true, statusBarAnimation);
240
+ }
241
+ }).onUpdate(event => {
242
+ const startedOutsideTranslation = isFromLeft ? interpolate(event.x, [0, drawerWidth, drawerWidth + 1], [0, drawerWidth, drawerWidth]) : interpolate(event.x - containerWidth, [-drawerWidth - 1, -drawerWidth, 0], [drawerWidth, drawerWidth, 0]);
243
+ const startedInsideTranslation = sideCorrection * (event.translationX + (drawerOpened ? drawerWidth * -gestureOrientation : 0));
244
+ const adjustedTranslation = Math.max(drawerOpened ? startedOutsideTranslation : 0, startedInsideTranslation);
245
+ openValue.value = interpolate(adjustedTranslation, [-drawerWidth, 0, drawerWidth], [1, 0, 1], Extrapolation.CLAMP);
246
+ }).onEnd(handleRelease);
247
+ }, [drawerLockMode, openValue, drawerWidth, emitStateChanged, gestureOrientation, handleRelease, edgeHitSlop, fillHitSlop, minSwipeDistance, hideStatusBar, keyboardDismissMode, overlayDismissGesture, drawerOpened, isFromLeft, containerWidth, sideCorrection, drawerState, activeCursor, enableTrackpadTwoFingerGesture, mouseButton, statusBarAnimation]);
248
+
249
+ // When using RTL, row and row-reverse flex directions are flipped.
250
+ const reverseContentDirection = I18nManager.isRTL ? isFromLeft : !isFromLeft;
251
+ const dynamicDrawerStyles = {
252
+ backgroundColor: drawerBackgroundColor,
253
+ width: drawerWidth
254
+ };
255
+ const containerStyles = useAnimatedStyle(() => {
256
+ if (drawerType === DrawerType.FRONT) {
257
+ return {};
258
+ }
259
+ return {
260
+ transform: [{
261
+ translateX: interpolate(openValue.value, [0, 1], [0, drawerWidth * sideCorrection], Extrapolation.CLAMP)
262
+ }]
263
+ };
264
+ });
265
+ const drawerAnimatedStyle = useAnimatedStyle(() => {
266
+ const closedDrawerOffset = drawerWidth * -sideCorrection;
267
+ const isBack = drawerType === DrawerType.BACK;
268
+ const isIdle = drawerState === DrawerState.IDLE;
269
+ if (isBack) {
270
+ return {
271
+ transform: [{
272
+ translateX: 0
273
+ }],
274
+ flexDirection: reverseContentDirection ? 'row-reverse' : 'row'
275
+ };
276
+ }
277
+ let translateX = 0;
278
+ if (isIdle) {
279
+ translateX = drawerOpened ? 0 : closedDrawerOffset;
280
+ } else {
281
+ translateX = interpolate(openValue.value, [0, 1], [closedDrawerOffset, 0], Extrapolation.CLAMP);
282
+ }
283
+ return {
284
+ transform: [{
285
+ translateX
286
+ }],
287
+ flexDirection: reverseContentDirection ? 'row-reverse' : 'row'
288
+ };
289
+ });
290
+ const containerAnimatedProps = useAnimatedProps(() => ({
291
+ importantForAccessibility: Platform.OS === 'android' ? isDrawerOpen.value ? 'no-hide-descendants' : 'yes' : undefined
292
+ }));
293
+ const children = typeof props.children === 'function' ? props.children(openValue) // renderer function
294
+ : props.children;
295
+ useImperativeHandle(ref, () => ({
296
+ openDrawer,
297
+ closeDrawer
298
+ }), [openDrawer, closeDrawer]);
299
+ return /*#__PURE__*/_jsx(GestureDetector, {
300
+ gesture: panGesture,
301
+ userSelect: userSelect,
302
+ enableContextMenu: enableContextMenu,
303
+ children: /*#__PURE__*/_jsxs(Animated.View, {
304
+ style: styles.main,
305
+ onLayout: handleContainerLayout,
306
+ children: [/*#__PURE__*/_jsx(GestureDetector, {
307
+ gesture: overlayDismissGesture,
308
+ children: /*#__PURE__*/_jsxs(Animated.View, {
309
+ style: [drawerType === DrawerType.FRONT ? styles.containerOnBack : styles.containerInFront, containerStyles, contentContainerStyle],
310
+ animatedProps: containerAnimatedProps,
311
+ children: [children, /*#__PURE__*/_jsx(Animated.View, {
312
+ animatedProps: overlayAnimatedProps,
313
+ style: [styles.overlay, overlayAnimatedStyle]
314
+ })]
315
+ })
316
+ }), /*#__PURE__*/_jsx(Animated.View, {
317
+ pointerEvents: "box-none",
318
+ animatedProps: drawerAnimatedProps,
319
+ style: [styles.drawerContainer, drawerAnimatedStyle, drawerContainerStyle],
320
+ children: /*#__PURE__*/_jsx(Animated.View, {
321
+ style: dynamicDrawerStyles,
322
+ children: renderNavigationView(openValue)
323
+ })
324
+ })]
325
+ })
326
+ });
327
+ });
328
+ export default DrawerLayout;
329
+ const styles = StyleSheet.create({
330
+ drawerContainer: {
331
+ ...StyleSheet.absoluteFillObject,
332
+ zIndex: 1001,
333
+ flexDirection: 'row'
334
+ },
335
+ containerInFront: {
336
+ ...StyleSheet.absoluteFillObject,
337
+ zIndex: 1002
338
+ },
339
+ containerOnBack: {
340
+ ...StyleSheet.absoluteFillObject
341
+ },
342
+ main: {
343
+ flex: 1,
344
+ zIndex: 0,
345
+ overflow: 'hidden'
346
+ },
347
+ overlay: {
348
+ ...StyleSheet.absoluteFillObject,
349
+ zIndex: 1000
350
+ }
351
+ });
352
+ //# sourceMappingURL=ReanimatedDrawerLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useCallback","useEffect","useImperativeHandle","useMemo","useState","StyleSheet","Keyboard","StatusBar","I18nManager","Platform","Animated","Extrapolation","interpolate","runOnJS","useAnimatedProps","useAnimatedStyle","useDerivedValue","useSharedValue","withSpring","GestureObjects","Gesture","GestureDetector","MouseButton","jsx","_jsx","jsxs","_jsxs","DRAG_TOSS","DrawerPosition","DrawerState","DrawerType","DrawerLockMode","DrawerKeyboardDismissMode","defaultProps","drawerWidth","drawerPosition","LEFT","drawerType","FRONT","edgeWidth","minSwipeDistance","overlayColor","drawerLockMode","UNLOCKED","enableTrackpadTwoFingerGesture","activeCursor","mouseButton","statusBarAnimation","setStatusBarHidden","setHidden","dismissKeyboard","dismiss","DrawerLayout","props","ref","containerWidth","setContainerWidth","drawerState","setDrawerState","IDLE","drawerOpened","setDrawerOpened","drawerBackgroundColor","drawerContainerStyle","contentContainerStyle","hideStatusBar","keyboardDismissMode","userSelect","enableContextMenu","renderNavigationView","onDrawerSlide","onDrawerClose","onDrawerOpen","onDrawerStateChanged","animationSpeed","animationSpeedProp","isFromLeft","sideCorrection","openValue","value","isDrawerOpen","handleContainerLayout","nativeEvent","layout","width","emitStateChanged","newState","drawerWillShow","drawerAnimatedProps","accessibilityViewIsModal","overlayAnimatedProps","pointerEvents","edgeHitSlop","setEdgeHitSlop","left","right","gestureOrientation","animateDrawer","toValue","initialVelocity","willShow","SETTLING","normalizedToValue","CLAMP","normalizedInitialVelocity","overshootClamping","velocity","mass","damping","stiffness","finished","handleRelease","event","translationX","dragX","velocityX","x","touchX","gestureStartX","dragOffsetBasedOnStart","startOffsetX","projOffsetX","shouldOpen","openDrawer","options","closeDrawer","overlayDismissGesture","Tap","maxDistance","onEnd","LOCKED_OPEN","overlayAnimatedStyle","opacity","backgroundColor","fillHitSlop","panGesture","Pan","hitSlop","minDistance","activeOffsetX","failOffsetY","simultaneousWithExternalGesture","enabled","LOCKED_CLOSED","onStart","DRAGGING","ON_DRAG","onUpdate","startedOutsideTranslation","startedInsideTranslation","adjustedTranslation","Math","max","reverseContentDirection","isRTL","dynamicDrawerStyles","containerStyles","transform","translateX","drawerAnimatedStyle","closedDrawerOffset","isBack","BACK","isIdle","flexDirection","containerAnimatedProps","importantForAccessibility","OS","undefined","children","gesture","View","style","styles","main","onLayout","containerOnBack","containerInFront","animatedProps","overlay","drawerContainer","create","absoluteFillObject","zIndex","flex","overflow"],"sourceRoot":"../../../src","sources":["components/ReanimatedDrawerLayout.tsx"],"mappings":";;AAAA;AACA;AACA;;AAEA,OAAOA,KAAK,IAEVC,UAAU,EACVC,WAAW,EACXC,SAAS,EACTC,mBAAmB,EACnBC,OAAO,EACPC,QAAQ,QACH,OAAO;AAEd,SACEC,UAAU,EACVC,QAAQ,EACRC,SAAS,EACTC,WAAW,EAKXC,QAAQ,QACH,cAAc;AAErB,OAAOC,QAAQ,IACbC,aAAa,EAEbC,WAAW,EACXC,OAAO,EACPC,gBAAgB,EAChBC,gBAAgB,EAChBC,eAAe,EACfC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAEhC,SAASC,cAAc,IAAIC,OAAO,QAAQ,qCAAqC;AAC/E,SAASC,eAAe,QAAQ,sCAAsC;AACtE,SAGEC,WAAW,QAGN,kCAAkC;AAAC,SAAAC,G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