react-native-gesture-handler 2.27.1 → 2.28.0

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 (426) hide show
  1. package/RNGestureHandler.podspec +3 -2
  2. package/ReanimatedSwipeable/package.json +4 -4
  3. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +14 -8
  4. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +10 -5
  5. package/android/src/main/jni/CMakeLists.txt +5 -0
  6. package/android/src/main/jni/cpp-adapter.cpp +6 -0
  7. package/apple/RNGestureHandler.h +4 -0
  8. package/apple/RNGestureHandler.mm +41 -6
  9. package/apple/RNGestureHandlerModule.mm +5 -0
  10. package/jestSetup.js +22 -3
  11. package/lib/commonjs/components/Pressable/Pressable.js +12 -21
  12. package/lib/commonjs/components/Pressable/Pressable.js.map +1 -1
  13. package/lib/commonjs/components/Pressable/StateMachine.js +8 -2
  14. package/lib/commonjs/components/Pressable/StateMachine.js.map +1 -1
  15. package/lib/commonjs/components/Pressable/stateDefinitions.js +22 -23
  16. package/lib/commonjs/components/Pressable/stateDefinitions.js.map +1 -1
  17. package/lib/commonjs/components/{ReanimatedSwipeable.js → ReanimatedSwipeable/ReanimatedSwipeable.js} +30 -39
  18. package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -0
  19. package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js +12 -0
  20. package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +1 -0
  21. package/lib/commonjs/components/ReanimatedSwipeable/index.js +21 -0
  22. package/lib/commonjs/components/ReanimatedSwipeable/index.js.map +1 -0
  23. package/lib/commonjs/components/gestureHandlerRootHOC.js +4 -1
  24. package/lib/commonjs/components/gestureHandlerRootHOC.js.map +1 -1
  25. package/lib/commonjs/handlers/createHandler.js +1 -1
  26. package/lib/commonjs/handlers/createHandler.js.map +1 -1
  27. package/lib/commonjs/handlers/gestures/GestureDetector/index.js +1 -1
  28. package/lib/commonjs/handlers/gestures/GestureDetector/index.js.map +1 -1
  29. package/lib/commonjs/mocks/Pressable.js +13 -0
  30. package/lib/commonjs/mocks/Pressable.js.map +1 -0
  31. package/lib/commonjs/{mocks.js → mocks/mocks.js} +8 -11
  32. package/lib/commonjs/mocks/mocks.js.map +1 -0
  33. package/lib/commonjs/web/handlers/GestureHandler.js +5 -2
  34. package/lib/commonjs/web/handlers/GestureHandler.js.map +1 -1
  35. package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +0 -5
  36. package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +1 -1
  37. package/lib/commonjs/web/tools/KeyboardEventManager.js +34 -8
  38. package/lib/commonjs/web/tools/KeyboardEventManager.js.map +1 -1
  39. package/lib/module/components/Pressable/Pressable.js +14 -23
  40. package/lib/module/components/Pressable/Pressable.js.map +1 -1
  41. package/lib/module/components/Pressable/StateMachine.js +8 -2
  42. package/lib/module/components/Pressable/StateMachine.js.map +1 -1
  43. package/lib/module/components/Pressable/stateDefinitions.js +21 -22
  44. package/lib/module/components/Pressable/stateDefinitions.js.map +1 -1
  45. package/lib/module/components/{ReanimatedSwipeable.js → ReanimatedSwipeable/ReanimatedSwipeable.js} +24 -33
  46. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -0
  47. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js +8 -0
  48. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +1 -0
  49. package/lib/module/components/ReanimatedSwipeable/index.js +5 -0
  50. package/lib/module/components/ReanimatedSwipeable/index.js.map +1 -0
  51. package/lib/module/components/gestureHandlerRootHOC.js +5 -0
  52. package/lib/module/components/gestureHandlerRootHOC.js.map +1 -1
  53. package/lib/module/handlers/createHandler.js +1 -1
  54. package/lib/module/handlers/createHandler.js.map +1 -1
  55. package/lib/module/handlers/gestures/GestureDetector/index.js +1 -1
  56. package/lib/module/handlers/gestures/GestureDetector/index.js.map +1 -1
  57. package/lib/module/mocks/Pressable.js +4 -0
  58. package/lib/module/mocks/Pressable.js.map +1 -0
  59. package/lib/module/{mocks.js → mocks/mocks.js} +7 -11
  60. package/lib/module/mocks/mocks.js.map +1 -0
  61. package/lib/module/web/handlers/GestureHandler.js +5 -2
  62. package/lib/module/web/handlers/GestureHandler.js.map +1 -1
  63. package/lib/module/web/tools/GestureHandlerWebDelegate.js +0 -5
  64. package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +1 -1
  65. package/lib/module/web/tools/KeyboardEventManager.js +34 -8
  66. package/lib/module/web/tools/KeyboardEventManager.js.map +1 -1
  67. package/lib/typescript/ActionType.d.ts +1 -0
  68. package/lib/typescript/Directions.d.ts +1 -0
  69. package/lib/typescript/EnableNewWebImplementation.d.ts +1 -0
  70. package/lib/typescript/GestureHandlerRootViewContext.d.ts +1 -0
  71. package/lib/typescript/PlatformConstants.d.ts +1 -0
  72. package/lib/typescript/PlatformConstants.web.d.ts +1 -0
  73. package/lib/typescript/PointerType.d.ts +1 -0
  74. package/lib/typescript/RNGestureHandlerModule.d.ts +1 -0
  75. package/lib/typescript/RNGestureHandlerModule.web.d.ts +1 -0
  76. package/lib/typescript/RNGestureHandlerModule.windows.d.ts +1 -0
  77. package/lib/typescript/RNRenderer.d.ts +1 -0
  78. package/lib/typescript/RNRenderer.web.d.ts +1 -0
  79. package/lib/typescript/State.d.ts +1 -0
  80. package/lib/typescript/TouchEventType.d.ts +1 -0
  81. package/lib/typescript/components/DrawerLayout.d.ts +1 -0
  82. package/lib/typescript/components/GestureButtons.d.ts +1 -0
  83. package/lib/typescript/components/GestureButtonsProps.d.ts +10 -1
  84. package/lib/typescript/components/GestureButtonsProps.d.ts.map +1 -1
  85. package/lib/typescript/components/GestureComponents.d.ts +1 -0
  86. package/lib/typescript/components/GestureComponents.web.d.ts +1 -0
  87. package/lib/typescript/components/GestureHandlerButton.d.ts +1 -0
  88. package/lib/typescript/components/GestureHandlerButton.web.d.ts +1 -0
  89. package/lib/typescript/components/GestureHandlerRootView.android.d.ts +1 -0
  90. package/lib/typescript/components/GestureHandlerRootView.d.ts +1 -0
  91. package/lib/typescript/components/GestureHandlerRootView.web.d.ts +1 -0
  92. package/lib/typescript/components/Pressable/Pressable.d.ts +1 -0
  93. package/lib/typescript/components/Pressable/Pressable.d.ts.map +1 -1
  94. package/lib/typescript/components/Pressable/PressableProps.d.ts +3 -4
  95. package/lib/typescript/components/Pressable/PressableProps.d.ts.map +1 -1
  96. package/lib/typescript/components/Pressable/StateMachine.d.ts +4 -2
  97. package/lib/typescript/components/Pressable/StateMachine.d.ts.map +1 -1
  98. package/lib/typescript/components/Pressable/index.d.ts +1 -0
  99. package/lib/typescript/components/Pressable/stateDefinitions.d.ts +3 -2
  100. package/lib/typescript/components/Pressable/stateDefinitions.d.ts.map +1 -1
  101. package/lib/typescript/components/Pressable/utils.d.ts +1 -0
  102. package/lib/typescript/components/ReanimatedDrawerLayout.d.ts +1 -0
  103. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts +6 -0
  104. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts.map +1 -0
  105. package/lib/typescript/components/{ReanimatedSwipeable.d.ts → ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts} +10 -7
  106. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts.map +1 -0
  107. package/lib/typescript/components/ReanimatedSwipeable/index.d.ts +3 -0
  108. package/lib/typescript/components/ReanimatedSwipeable/index.d.ts.map +1 -0
  109. package/lib/typescript/components/Swipeable.d.ts +1 -0
  110. package/lib/typescript/components/Text.d.ts +1 -0
  111. package/lib/typescript/components/gestureHandlerRootHOC.d.ts +5 -0
  112. package/lib/typescript/components/gestureHandlerRootHOC.d.ts.map +1 -1
  113. package/lib/typescript/components/touchables/ExtraButtonProps.d.ts +1 -0
  114. package/lib/typescript/components/touchables/GenericTouchable.d.ts +1 -0
  115. package/lib/typescript/components/touchables/GenericTouchableProps.d.ts +1 -0
  116. package/lib/typescript/components/touchables/TouchableHighlight.d.ts +1 -0
  117. package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts +1 -0
  118. package/lib/typescript/components/touchables/TouchableNativeFeedback.d.ts +1 -0
  119. package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts +1 -0
  120. package/lib/typescript/components/touchables/TouchableOpacity.d.ts +1 -0
  121. package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +1 -0
  122. package/lib/typescript/components/touchables/index.d.ts +1 -0
  123. package/lib/typescript/components/utils.d.ts +1 -0
  124. package/lib/typescript/findNodeHandle.d.ts +1 -0
  125. package/lib/typescript/findNodeHandle.web.d.ts +1 -0
  126. package/lib/typescript/getShadowNodeFromRef.d.ts +1 -0
  127. package/lib/typescript/getShadowNodeFromRef.web.d.ts +1 -0
  128. package/lib/typescript/ghQueueMicrotask.d.ts +1 -0
  129. package/lib/typescript/handlers/FlingGestureHandler.d.ts +1 -0
  130. package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts +1 -0
  131. package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts +1 -0
  132. package/lib/typescript/handlers/LongPressGestureHandler.d.ts +1 -0
  133. package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +1 -0
  134. package/lib/typescript/handlers/PanGestureHandler.d.ts +1 -0
  135. package/lib/typescript/handlers/PinchGestureHandler.d.ts +1 -0
  136. package/lib/typescript/handlers/PressabilityDebugView.d.ts +1 -0
  137. package/lib/typescript/handlers/PressabilityDebugView.web.d.ts +1 -0
  138. package/lib/typescript/handlers/RotationGestureHandler.d.ts +1 -0
  139. package/lib/typescript/handlers/TapGestureHandler.d.ts +1 -0
  140. package/lib/typescript/handlers/createHandler.d.ts +1 -0
  141. package/lib/typescript/handlers/createNativeWrapper.d.ts +1 -0
  142. package/lib/typescript/handlers/customDirectEventTypes.d.ts +1 -0
  143. package/lib/typescript/handlers/customDirectEventTypes.web.d.ts +1 -0
  144. package/lib/typescript/handlers/gestureHandlerCommon.d.ts +1 -0
  145. package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts +1 -0
  146. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts +1 -0
  147. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts +1 -0
  148. package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts +1 -0
  149. package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts +1 -0
  150. package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts +1 -0
  151. package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts +1 -0
  152. package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts +1 -0
  153. package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts +1 -0
  154. package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts +1 -0
  155. package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts +1 -0
  156. package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts +1 -0
  157. package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts +1 -0
  158. package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +1 -0
  159. package/lib/typescript/handlers/gestures/eventReceiver.d.ts +1 -0
  160. package/lib/typescript/handlers/gestures/flingGesture.d.ts +1 -0
  161. package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +1 -0
  162. package/lib/typescript/handlers/gestures/gesture.d.ts +1 -0
  163. package/lib/typescript/handlers/gestures/gestureComposition.d.ts +1 -0
  164. package/lib/typescript/handlers/gestures/gestureObjects.d.ts +1 -0
  165. package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +1 -0
  166. package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts +1 -0
  167. package/lib/typescript/handlers/gestures/hoverGesture.d.ts +1 -0
  168. package/lib/typescript/handlers/gestures/longPressGesture.d.ts +1 -0
  169. package/lib/typescript/handlers/gestures/manualGesture.d.ts +1 -0
  170. package/lib/typescript/handlers/gestures/nativeGesture.d.ts +1 -0
  171. package/lib/typescript/handlers/gestures/panGesture.d.ts +1 -0
  172. package/lib/typescript/handlers/gestures/pinchGesture.d.ts +1 -0
  173. package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +1 -0
  174. package/lib/typescript/handlers/gestures/rotationGesture.d.ts +1 -0
  175. package/lib/typescript/handlers/gestures/tapGesture.d.ts +1 -0
  176. package/lib/typescript/handlers/getNextHandlerTag.d.ts +1 -0
  177. package/lib/typescript/handlers/handlersRegistry.d.ts +1 -0
  178. package/lib/typescript/handlers/utils.d.ts +1 -0
  179. package/lib/typescript/index.d.ts +1 -0
  180. package/lib/typescript/init.d.ts +1 -0
  181. package/lib/typescript/jestUtils/index.d.ts +1 -0
  182. package/lib/typescript/jestUtils/jestUtils.d.ts +1 -0
  183. package/lib/typescript/mocks/Pressable.d.ts +2 -0
  184. package/lib/typescript/mocks/Pressable.d.ts.map +1 -0
  185. package/lib/typescript/{mocks.d.ts → mocks/mocks.d.ts} +5 -4
  186. package/lib/typescript/mocks/mocks.d.ts.map +1 -0
  187. package/lib/typescript/mountRegistry.d.ts +1 -0
  188. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +1 -0
  189. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +1 -0
  190. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +1 -0
  191. package/lib/typescript/typeUtils.d.ts +1 -0
  192. package/lib/typescript/utils.d.ts +1 -0
  193. package/lib/typescript/web/Gestures.d.ts +1 -0
  194. package/lib/typescript/web/constants.d.ts +1 -0
  195. package/lib/typescript/web/detectors/RotationGestureDetector.d.ts +1 -0
  196. package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts +1 -0
  197. package/lib/typescript/web/handlers/FlingGestureHandler.d.ts +1 -0
  198. package/lib/typescript/web/handlers/GestureHandler.d.ts +1 -0
  199. package/lib/typescript/web/handlers/GestureHandler.d.ts.map +1 -1
  200. package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +1 -0
  201. package/lib/typescript/web/handlers/IGestureHandler.d.ts +1 -0
  202. package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +1 -0
  203. package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +1 -0
  204. package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +1 -0
  205. package/lib/typescript/web/handlers/PanGestureHandler.d.ts +1 -0
  206. package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +1 -0
  207. package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +1 -0
  208. package/lib/typescript/web/handlers/TapGestureHandler.d.ts +1 -0
  209. package/lib/typescript/web/interfaces.d.ts +1 -0
  210. package/lib/typescript/web/tools/CircularBuffer.d.ts +1 -0
  211. package/lib/typescript/web/tools/EventManager.d.ts +1 -0
  212. package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts +1 -0
  213. package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +1 -0
  214. package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +1 -0
  215. package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts.map +1 -1
  216. package/lib/typescript/web/tools/InteractionManager.d.ts +1 -0
  217. package/lib/typescript/web/tools/KeyboardEventManager.d.ts +7 -3
  218. package/lib/typescript/web/tools/KeyboardEventManager.d.ts.map +1 -1
  219. package/lib/typescript/web/tools/LeastSquareSolver.d.ts +1 -0
  220. package/lib/typescript/web/tools/NodeManager.d.ts +1 -0
  221. package/lib/typescript/web/tools/PointerEventManager.d.ts +1 -0
  222. package/lib/typescript/web/tools/PointerTracker.d.ts +1 -0
  223. package/lib/typescript/web/tools/Vector.d.ts +1 -0
  224. package/lib/typescript/web/tools/VelocityTracker.d.ts +1 -0
  225. package/lib/typescript/web/tools/WheelEventManager.d.ts +1 -0
  226. package/lib/typescript/web/utils.d.ts +1 -0
  227. package/lib/typescript/web_hammer/DiscreteGestureHandler.d.ts +1 -0
  228. package/lib/typescript/web_hammer/DraggingGestureHandler.d.ts +1 -0
  229. package/lib/typescript/web_hammer/Errors.d.ts +1 -0
  230. package/lib/typescript/web_hammer/FlingGestureHandler.d.ts +1 -0
  231. package/lib/typescript/web_hammer/GestureHandler.d.ts +1 -0
  232. package/lib/typescript/web_hammer/IndiscreteGestureHandler.d.ts +1 -0
  233. package/lib/typescript/web_hammer/LongPressGestureHandler.d.ts +1 -0
  234. package/lib/typescript/web_hammer/NativeViewGestureHandler.d.ts +1 -0
  235. package/lib/typescript/web_hammer/NodeManager.d.ts +1 -0
  236. package/lib/typescript/web_hammer/PanGestureHandler.d.ts +1 -0
  237. package/lib/typescript/web_hammer/PinchGestureHandler.d.ts +1 -0
  238. package/lib/typescript/web_hammer/PressGestureHandler.d.ts +1 -0
  239. package/lib/typescript/web_hammer/RotationGestureHandler.d.ts +1 -0
  240. package/lib/typescript/web_hammer/TapGestureHandler.d.ts +1 -0
  241. package/lib/typescript/web_hammer/constants.d.ts +1 -0
  242. package/lib/typescript/web_hammer/utils.d.ts +1 -0
  243. package/package.json +4 -3
  244. package/scripts/gesture_handler_utils.rb +25 -0
  245. package/src/components/GestureButtonsProps.ts +10 -0
  246. package/src/components/Pressable/Pressable.tsx +20 -31
  247. package/src/components/Pressable/PressableProps.tsx +2 -4
  248. package/src/components/Pressable/StateMachine.tsx +12 -4
  249. package/src/components/Pressable/stateDefinitions.ts +23 -23
  250. package/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +603 -0
  251. package/src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts +199 -0
  252. package/src/components/ReanimatedSwipeable/index.ts +6 -0
  253. package/src/components/gestureHandlerRootHOC.tsx +4 -0
  254. package/src/handlers/createHandler.tsx +1 -1
  255. package/src/handlers/gestures/GestureDetector/index.tsx +1 -1
  256. package/src/mocks/Pressable.tsx +1 -0
  257. package/src/{mocks.tsx → mocks/mocks.tsx} +7 -11
  258. package/src/web/handlers/GestureHandler.ts +8 -3
  259. package/src/web/tools/GestureHandlerWebDelegate.ts +0 -5
  260. package/src/web/tools/KeyboardEventManager.ts +50 -8
  261. package/lib/commonjs/components/ReanimatedSwipeable.js.map +0 -1
  262. package/lib/commonjs/mocks.js.map +0 -1
  263. package/lib/module/components/ReanimatedSwipeable.js.map +0 -1
  264. package/lib/module/mocks.js.map +0 -1
  265. package/lib/typescript/ActionType.js +0 -6
  266. package/lib/typescript/Directions.js +0 -18
  267. package/lib/typescript/EnableNewWebImplementation.js +0 -30
  268. package/lib/typescript/GestureHandlerRootViewContext.js +0 -2
  269. package/lib/typescript/PlatformConstants.js +0 -3
  270. package/lib/typescript/PlatformConstants.web.js +0 -5
  271. package/lib/typescript/PointerType.js +0 -8
  272. package/lib/typescript/RNGestureHandlerModule.js +0 -4
  273. package/lib/typescript/RNGestureHandlerModule.web.js +0 -92
  274. package/lib/typescript/RNGestureHandlerModule.windows.js +0 -47
  275. package/lib/typescript/RNRenderer.js +0 -3
  276. package/lib/typescript/RNRenderer.web.js +0 -3
  277. package/lib/typescript/State.js +0 -9
  278. package/lib/typescript/TouchEventType.js +0 -7
  279. package/lib/typescript/components/DrawerLayout.js +0 -417
  280. package/lib/typescript/components/GestureButtons.js +0 -165
  281. package/lib/typescript/components/GestureButtonsProps.js +0 -1
  282. package/lib/typescript/components/GestureComponents.js +0 -67
  283. package/lib/typescript/components/GestureComponents.web.js +0 -21
  284. package/lib/typescript/components/GestureHandlerButton.js +0 -2
  285. package/lib/typescript/components/GestureHandlerButton.web.js +0 -3
  286. package/lib/typescript/components/GestureHandlerRootView.android.js +0 -17
  287. package/lib/typescript/components/GestureHandlerRootView.js +0 -16
  288. package/lib/typescript/components/GestureHandlerRootView.web.js +0 -11
  289. package/lib/typescript/components/Pressable/Pressable.js +0 -231
  290. package/lib/typescript/components/Pressable/PressableProps.js +0 -1
  291. package/lib/typescript/components/Pressable/StateMachine.js +0 -34
  292. package/lib/typescript/components/Pressable/index.js +0 -1
  293. package/lib/typescript/components/Pressable/stateDefinitions.js +0 -104
  294. package/lib/typescript/components/Pressable/utils.js +0 -80
  295. package/lib/typescript/components/ReanimatedDrawerLayout.js +0 -364
  296. package/lib/typescript/components/ReanimatedSwipeable.d.ts.map +0 -1
  297. package/lib/typescript/components/ReanimatedSwipeable.js +0 -400
  298. package/lib/typescript/components/Swipeable.js +0 -287
  299. package/lib/typescript/components/Text.js +0 -38
  300. package/lib/typescript/components/gestureHandlerRootHOC.js +0 -18
  301. package/lib/typescript/components/touchables/ExtraButtonProps.js +0 -1
  302. package/lib/typescript/components/touchables/GenericTouchable.js +0 -221
  303. package/lib/typescript/components/touchables/GenericTouchableProps.js +0 -1
  304. package/lib/typescript/components/touchables/TouchableHighlight.js +0 -75
  305. package/lib/typescript/components/touchables/TouchableNativeFeedback.android.js +0 -65
  306. package/lib/typescript/components/touchables/TouchableNativeFeedback.js +0 -6
  307. package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.js +0 -1
  308. package/lib/typescript/components/touchables/TouchableOpacity.js +0 -51
  309. package/lib/typescript/components/touchables/TouchableWithoutFeedback.js +0 -10
  310. package/lib/typescript/components/touchables/index.js +0 -4
  311. package/lib/typescript/components/utils.js +0 -11
  312. package/lib/typescript/findNodeHandle.js +0 -2
  313. package/lib/typescript/findNodeHandle.web.js +0 -31
  314. package/lib/typescript/getShadowNodeFromRef.js +0 -45
  315. package/lib/typescript/getShadowNodeFromRef.web.js +0 -7
  316. package/lib/typescript/ghQueueMicrotask.js +0 -7
  317. package/lib/typescript/handlers/FlingGestureHandler.js +0 -19
  318. package/lib/typescript/handlers/ForceTouchGestureHandler.js +0 -37
  319. package/lib/typescript/handlers/GestureHandlerEventPayload.js +0 -1
  320. package/lib/typescript/handlers/LongPressGestureHandler.js +0 -22
  321. package/lib/typescript/handlers/NativeViewGestureHandler.js +0 -20
  322. package/lib/typescript/handlers/PanGestureHandler.js +0 -128
  323. package/lib/typescript/handlers/PinchGestureHandler.js +0 -12
  324. package/lib/typescript/handlers/PressabilityDebugView.js +0 -2
  325. package/lib/typescript/handlers/PressabilityDebugView.web.js +0 -4
  326. package/lib/typescript/handlers/RotationGestureHandler.js +0 -12
  327. package/lib/typescript/handlers/TapGestureHandler.js +0 -26
  328. package/lib/typescript/handlers/createHandler.js +0 -375
  329. package/lib/typescript/handlers/createNativeWrapper.js +0 -67
  330. package/lib/typescript/handlers/customDirectEventTypes.js +0 -2
  331. package/lib/typescript/handlers/customDirectEventTypes.web.js +0 -4
  332. package/lib/typescript/handlers/gestureHandlerCommon.js +0 -42
  333. package/lib/typescript/handlers/gestureHandlerTypesCompat.js +0 -1
  334. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.js +0 -22
  335. package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.js +0 -24
  336. package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.js +0 -55
  337. package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.js +0 -12
  338. package/lib/typescript/handlers/gestures/GestureDetector/index.js +0 -114
  339. package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.js +0 -18
  340. package/lib/typescript/handlers/gestures/GestureDetector/types.js +0 -1
  341. package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.js +0 -54
  342. package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.js +0 -137
  343. package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.js +0 -48
  344. package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.js +0 -35
  345. package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.js +0 -32
  346. package/lib/typescript/handlers/gestures/GestureDetector/utils.js +0 -140
  347. package/lib/typescript/handlers/gestures/eventReceiver.js +0 -105
  348. package/lib/typescript/handlers/gestures/flingGesture.js +0 -27
  349. package/lib/typescript/handlers/gestures/forceTouchGesture.js +0 -57
  350. package/lib/typescript/handlers/gestures/gesture.js +0 -303
  351. package/lib/typescript/handlers/gestures/gestureComposition.js +0 -78
  352. package/lib/typescript/handlers/gestures/gestureObjects.js +0 -125
  353. package/lib/typescript/handlers/gestures/gestureStateManager.js +0 -60
  354. package/lib/typescript/handlers/gestures/gestureStateManager.web.js +0 -19
  355. package/lib/typescript/handlers/gestures/hoverGesture.js +0 -45
  356. package/lib/typescript/handlers/gestures/longPressGesture.js +0 -35
  357. package/lib/typescript/handlers/gestures/manualGesture.js +0 -16
  358. package/lib/typescript/handlers/gestures/nativeGesture.js +0 -24
  359. package/lib/typescript/handlers/gestures/panGesture.js +0 -181
  360. package/lib/typescript/handlers/gestures/pinchGesture.js +0 -27
  361. package/lib/typescript/handlers/gestures/reanimatedWrapper.js +0 -23
  362. package/lib/typescript/handlers/gestures/rotationGesture.js +0 -27
  363. package/lib/typescript/handlers/gestures/tapGesture.js +0 -72
  364. package/lib/typescript/handlers/getNextHandlerTag.js +0 -4
  365. package/lib/typescript/handlers/handlersRegistry.js +0 -36
  366. package/lib/typescript/handlers/utils.js +0 -58
  367. package/lib/typescript/index.js +0 -28
  368. package/lib/typescript/init.js +0 -15
  369. package/lib/typescript/jestUtils/index.js +0 -1
  370. package/lib/typescript/jestUtils/jestUtils.js +0 -290
  371. package/lib/typescript/mocks.d.ts.map +0 -1
  372. package/lib/typescript/mocks.js +0 -59
  373. package/lib/typescript/mountRegistry.js +0 -29
  374. package/lib/typescript/specs/NativeRNGestureHandlerModule.js +0 -2
  375. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.js +0 -2
  376. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.js +0 -2
  377. package/lib/typescript/typeUtils.js +0 -1
  378. package/lib/typescript/utils.js +0 -80
  379. package/lib/typescript/web/Gestures.js +0 -38
  380. package/lib/typescript/web/constants.js +0 -2
  381. package/lib/typescript/web/detectors/RotationGestureDetector.js +0 -122
  382. package/lib/typescript/web/detectors/ScaleGestureDetector.js +0 -117
  383. package/lib/typescript/web/handlers/FlingGestureHandler.js +0 -133
  384. package/lib/typescript/web/handlers/GestureHandler.js +0 -656
  385. package/lib/typescript/web/handlers/HoverGestureHandler.js +0 -37
  386. package/lib/typescript/web/handlers/IGestureHandler.js +0 -1
  387. package/lib/typescript/web/handlers/LongPressGestureHandler.js +0 -136
  388. package/lib/typescript/web/handlers/ManualGestureHandler.js +0 -29
  389. package/lib/typescript/web/handlers/NativeViewGestureHandler.js +0 -133
  390. package/lib/typescript/web/handlers/PanGestureHandler.js +0 -420
  391. package/lib/typescript/web/handlers/PinchGestureHandler.js +0 -117
  392. package/lib/typescript/web/handlers/RotationGestureHandler.js +0 -122
  393. package/lib/typescript/web/handlers/TapGestureHandler.js +0 -202
  394. package/lib/typescript/web/interfaces.js +0 -25
  395. package/lib/typescript/web/tools/CircularBuffer.js +0 -37
  396. package/lib/typescript/web/tools/EventManager.js +0 -85
  397. package/lib/typescript/web/tools/GestureHandlerDelegate.js +0 -1
  398. package/lib/typescript/web/tools/GestureHandlerOrchestrator.js +0 -273
  399. package/lib/typescript/web/tools/GestureHandlerWebDelegate.js +0 -169
  400. package/lib/typescript/web/tools/InteractionManager.js +0 -91
  401. package/lib/typescript/web/tools/KeyboardEventManager.js +0 -73
  402. package/lib/typescript/web/tools/LeastSquareSolver.js +0 -147
  403. package/lib/typescript/web/tools/NodeManager.js +0 -28
  404. package/lib/typescript/web/tools/PointerEventManager.js +0 -179
  405. package/lib/typescript/web/tools/PointerTracker.js +0 -161
  406. package/lib/typescript/web/tools/Vector.js +0 -43
  407. package/lib/typescript/web/tools/VelocityTracker.js +0 -76
  408. package/lib/typescript/web/tools/WheelEventManager.js +0 -40
  409. package/lib/typescript/web/utils.js +0 -233
  410. package/lib/typescript/web_hammer/DiscreteGestureHandler.js +0 -48
  411. package/lib/typescript/web_hammer/DraggingGestureHandler.js +0 -25
  412. package/lib/typescript/web_hammer/Errors.js +0 -5
  413. package/lib/typescript/web_hammer/FlingGestureHandler.js +0 -119
  414. package/lib/typescript/web_hammer/GestureHandler.js +0 -469
  415. package/lib/typescript/web_hammer/IndiscreteGestureHandler.js +0 -26
  416. package/lib/typescript/web_hammer/LongPressGestureHandler.js +0 -46
  417. package/lib/typescript/web_hammer/NativeViewGestureHandler.js +0 -40
  418. package/lib/typescript/web_hammer/NodeManager.js +0 -28
  419. package/lib/typescript/web_hammer/PanGestureHandler.js +0 -151
  420. package/lib/typescript/web_hammer/PinchGestureHandler.js +0 -19
  421. package/lib/typescript/web_hammer/PressGestureHandler.js +0 -133
  422. package/lib/typescript/web_hammer/RotationGestureHandler.js +0 -20
  423. package/lib/typescript/web_hammer/TapGestureHandler.js +0 -142
  424. package/lib/typescript/web_hammer/constants.js +0 -42
  425. package/lib/typescript/web_hammer/utils.js +0 -15
  426. package/src/components/ReanimatedSwipeable.tsx +0 -811
@@ -4,21 +4,35 @@ import { EventTypes } from '../interfaces';
4
4
  import EventManager from './EventManager';
5
5
  import { PointerType } from '../../PointerType';
6
6
  export default class KeyboardEventManager extends EventManager {
7
- activationKeys = ['Enter', ' '];
8
- cancelationKeys = ['Tab'];
7
+ static activationKeys = ['Enter', ' '];
8
+ static cancelationKeys = ['Tab'];
9
9
  isPressed = false;
10
+ static registeredStaticListeners = false;
11
+ static instances = new Set();
12
+ static keyUpStaticCallback = event => {
13
+ // We need a global listener, as in some cases, keyUp event gets stop-propagated.
14
+ // Then, if we used only component-level listeners the gesture would never end,
15
+ // causing other gestues to fail.
16
+
17
+ if (this.activationKeys.indexOf(event.key) === -1) {
18
+ return;
19
+ }
20
+ this.instances.forEach(item => {
21
+ item.onKeyUp(event);
22
+ });
23
+ };
10
24
  keyDownCallback = event => {
11
- if (this.cancelationKeys.indexOf(event.key) !== -1 && this.isPressed) {
25
+ if (KeyboardEventManager.cancelationKeys.indexOf(event.key) !== -1 && this.isPressed) {
12
26
  this.dispatchEvent(event, EventTypes.CANCEL);
13
27
  return;
14
28
  }
15
- if (this.activationKeys.indexOf(event.key) === -1) {
29
+ if (KeyboardEventManager.activationKeys.indexOf(event.key) === -1) {
16
30
  return;
17
31
  }
18
32
  this.dispatchEvent(event, EventTypes.DOWN);
19
33
  };
20
- keyUpCallback = event => {
21
- if (this.activationKeys.indexOf(event.key) === -1 || !this.isPressed) {
34
+ onKeyUp = event => {
35
+ if (KeyboardEventManager.activationKeys.indexOf(event.key) === -1 || !this.isPressed) {
22
36
  return;
23
37
  }
24
38
  this.dispatchEvent(event, EventTypes.UP);
@@ -45,11 +59,23 @@ export default class KeyboardEventManager extends EventManager {
45
59
  }
46
60
  registerListeners() {
47
61
  this.view.addEventListener('keydown', this.keyDownCallback);
48
- this.view.addEventListener('keyup', this.keyUpCallback);
62
+ KeyboardEventManager.instances.add(this);
63
+ if (!KeyboardEventManager.registeredStaticListeners) {
64
+ KeyboardEventManager.registeredStaticListeners = true;
65
+ document.addEventListener('keyup', KeyboardEventManager.keyUpStaticCallback, {
66
+ capture: true
67
+ });
68
+ }
49
69
  }
50
70
  unregisterListeners() {
51
71
  this.view.removeEventListener('keydown', this.keyDownCallback);
52
- this.view.removeEventListener('keyup', this.keyUpCallback);
72
+ KeyboardEventManager.instances.delete(this);
73
+ if (KeyboardEventManager.instances.size === 0) {
74
+ document.removeEventListener('keyup', KeyboardEventManager.keyUpStaticCallback, {
75
+ capture: true
76
+ });
77
+ KeyboardEventManager.registeredStaticListeners = false;
78
+ }
53
79
  }
54
80
  mapEvent(event, eventType) {
55
81
  const viewRect = event.target.getBoundingClientRect();
@@ -1 +1 @@
1
- {"version":3,"names":["EventTypes","EventManager","PointerType","KeyboardEventManager","activationKeys","cancelationKeys","isPressed","keyDownCallback","event","indexOf","key","dispatchEvent","CANCEL","DOWN","keyUpCallback","UP","eventType","target","HTMLElement","adaptedEvent","mapEvent","onPointerUp","onPointerDown","onPointerCancel","registerListeners","view","addEventListener","unregisterListeners","removeEventListener","viewRect","getBoundingClientRect","viewportPosition","x","width","y","height","relativePosition","offsetX","offsetY","pointerId","pointerType","KEY","time","timeStamp"],"sourceRoot":"../../../../src","sources":["web/tools/Keybo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C,EAAEH,gBAAgB,CAACG,CAAC;MACrBG,OAAO,EAAED,gBAAgB,CAACJ,CAAC;MAC3BM,OAAO,EAAEF,gBAAgB,CAACF,CAAC;MAC3BK,SAAS,EAAE,CAAC;MACZvB,SAAS,EAAEA,SAAS;MACpBwB,WAAW,EAAEtC,WAAW,CAACuC,GAAG;MAC5BC,IAAI,EAAElC,KAAK,CAACmC;IACd,CAAC;EACH;AACF","ignoreList":[]}
1
+ {"version":3,"names":["EventTypes","EventManager","PointerType","KeyboardEventManager","activationKeys","cancelationKeys","isPressed","registeredStaticListeners","instances","Set","keyUpStaticCallback","event","indexOf","key","forEach","item","onKeyUp","keyDownCallback","dispatchEvent","CANCEL","DOWN","UP","eventType","target","HTMLElement","adaptedEvent","mapEvent","onPointerUp","onPointerDown","onPointerCancel","registerListeners","view","addEventListener","add","document","capture","unregisterListeners","removeEventListener","delete","size","viewRect","getBoundingClientRect","viewportPosition","x","width","y","height","relativePosition","offsetX","offsetY","pointerId","pointerType","KEY","time","timeStamp"],"sourceRoot":"../../../../src","sources":["web/tools/KeyboardEventManager.ts"],"mappings":";;AAAA,SAAuBA,UAAU,QAAQ,eAAe;AACxD,OAAOC,YAAY,MAAM,gBAAgB;AACzC,SAASC,WAAW,QAAQ,mBAAmB;AAE/C,eAAe,MAAMC,oBAAoB,SAASF,YAAY,CAAc;EAC1E,OAAeG,cAAc,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC;EAC9C,OAAeC,eAAe,GAAG,CAAC,KAAK,CAAC;EAChCC,SAAS,GAAG,KAAK;EACzB,OAAeC,yBAAyB,GAAG,KAAK;EAChD,OAAeC,SAAS,GAA8B,IAAIC,GAAG,CAAC,CAAC;EAE/D,OAAeC,mBAAmB,GAAIC,KAAoB,IAAW;IACnE;IACA;IACA;;IAEA,IAAI,IAAI,CAACP,cAAc,CAACQ,OAAO,CAACD,KAAK,CAACE,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;MACjD;IACF;IAEA,IAAI,CAACL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AAGL,QAAQ,EAAEM,MAAM,GAAG;IACtC,CAAC;IAED,MAAMC,gBAAgB,GAAG;MACvBJ,CAAC,EAAEH,QAAQ,EAAEI,KAAK,GAAG,CAAC;MACtBC,CAAC,EAAEL,QAAQ,EAAEM,MAAM,GAAG;IACxB,CAAC;IAED,OAAO;MACLH,CAAC,EAAED,gBAAgB,CAACC,CAAC;MACrBE,CAAC,EAAEH,gBAAgB,CAACG,CAAC;MACrBG,OAAO,EAAED,gBAAgB,CAACJ,CAAC;MAC3BM,OAAO,EAAEF,gBAAgB,CAACF,CAAC;MAC3BK,SAAS,EAAE,CAAC;MACZ5B,SAAS,EAAEA,SAAS;MACpB6B,WAAW,EAAEjD,WAAW,CAACkD,GAAG;MAC5BC,IAAI,EAAE1C,KAAK,CAAC2C;IACd,CAAC;EACH;AACF","ignoreList":[]}
@@ -5,3 +5,4 @@ export declare const ActionType: {
5
5
  readonly JS_FUNCTION_NEW_API: 4;
6
6
  };
7
7
  export type ActionType = (typeof ActionType)[keyof typeof ActionType];
8
+ //# sourceMappingURL=ActionType.d.ts.map
@@ -12,3 +12,4 @@ export declare const DiagonalDirections: {
12
12
  };
13
13
  export type Directions = (typeof Directions)[keyof typeof Directions];
14
14
  export type DiagonalDirections = (typeof DiagonalDirections)[keyof typeof DiagonalDirections];
15
+ //# sourceMappingURL=Directions.d.ts.map
@@ -7,3 +7,4 @@ export declare function enableExperimentalWebImplementation(_shouldEnable?: bool
7
7
  */
8
8
  export declare function enableLegacyWebImplementation(shouldUseLegacyImplementation?: boolean): void;
9
9
  export declare function isNewWebImplementationEnabled(): boolean;
10
+ //# sourceMappingURL=EnableNewWebImplementation.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
2
  declare const _default: React.Context<boolean>;
3
3
  export default _default;
4
+ //# sourceMappingURL=GestureHandlerRootViewContext.d.ts.map
@@ -3,3 +3,4 @@ type PlatformConstants = {
3
3
  };
4
4
  declare const _default: PlatformConstants;
5
5
  export default _default;
6
+ //# sourceMappingURL=PlatformConstants.d.ts.map
@@ -2,3 +2,4 @@ declare const _default: {
2
2
  readonly forceTouchAvailable: boolean;
3
3
  };
4
4
  export default _default;
5
+ //# sourceMappingURL=PlatformConstants.web.d.ts.map
@@ -5,3 +5,4 @@ export declare enum PointerType {
5
5
  KEY = 3,
6
6
  OTHER = 4
7
7
  }
8
+ //# sourceMappingURL=PointerType.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import Module from './specs/NativeRNGestureHandlerModule';
2
2
  export default Module;
3
+ //# sourceMappingURL=RNGestureHandlerModule.d.ts.map
@@ -13,3 +13,4 @@ declare const _default: {
13
13
  flushOperations(): void;
14
14
  };
15
15
  export default _default;
16
+ //# sourceMappingURL=RNGestureHandlerModule.web.d.ts.map
@@ -30,3 +30,4 @@ declare const _default: {
30
30
  flushOperations(): void;
31
31
  };
32
32
  export default _default;
33
+ //# sourceMappingURL=RNGestureHandlerModule.windows.d.ts.map
@@ -1 +1,2 @@
1
1
  export { default as RNRenderer } from 'react-native/Libraries/Renderer/shims/ReactNative';
2
+ //# sourceMappingURL=RNRenderer.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const RNRenderer: {
2
2
  findHostInstance_DEPRECATED: (_ref: any) => null;
3
3
  };
4
+ //# sourceMappingURL=RNRenderer.web.d.ts.map
@@ -7,3 +7,4 @@ export declare const State: {
7
7
  readonly END: 5;
8
8
  };
9
9
  export type State = (typeof State)[keyof typeof State];
10
+ //# sourceMappingURL=State.d.ts.map
@@ -6,3 +6,4 @@ export declare const TouchEventType: {
6
6
  readonly TOUCHES_CANCELLED: 4;
7
7
  };
8
8
  export type TouchEventType = (typeof TouchEventType)[keyof typeof TouchEventType];
9
+ //# sourceMappingURL=TouchEventType.d.ts.map
@@ -183,3 +183,4 @@ export default class DrawerLayout extends Component<DrawerLayoutProps, DrawerLay
183
183
  render(): React.JSX.Element;
184
184
  }
185
185
  export {};
186
+ //# sourceMappingURL=DrawerLayout.d.ts.map
@@ -5,3 +5,4 @@ export declare const BaseButton: React.ForwardRefExoticComponent<Omit<BaseButton
5
5
  export declare const RectButton: React.ForwardRefExoticComponent<Omit<RectButtonProps, "innerRef"> & React.RefAttributes<React.ComponentType<{}>>>;
6
6
  export declare const BorderlessButton: React.ForwardRefExoticComponent<Omit<BorderlessButtonProps, "innerRef"> & React.RefAttributes<React.ComponentType<{}>>>;
7
7
  export { default as PureNativeButton } from './GestureHandlerButton';
8
+ //# sourceMappingURL=GestureButtons.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { AccessibilityProps, ColorValue, StyleProp, ViewStyle } from 'react-native';
2
+ import { AccessibilityProps, ColorValue, LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
3
3
  import type { NativeViewGestureHandlerProps } from '../handlers/NativeViewGestureHandler';
4
4
  export interface RawButtonProps extends NativeViewGestureHandlerProps, AccessibilityProps {
5
5
  /**
@@ -41,20 +41,28 @@ export interface RawButtonProps extends NativeViewGestureHandlerProps, Accessibi
41
41
  * Style object, use it to set additional styles.
42
42
  */
43
43
  style?: StyleProp<ViewStyle>;
44
+ /**
45
+ * Invoked on mount and layout changes.
46
+ */
47
+ onLayout?: (event: LayoutChangeEvent) => void;
44
48
  /**
45
49
  * Used for testing-library compatibility, not passed to the native component.
50
+ * @deprecated test-only props are deprecated and will be removed in the future.
46
51
  */
47
52
  testOnly_onPress?: Function | null;
48
53
  /**
49
54
  * Used for testing-library compatibility, not passed to the native component.
55
+ * @deprecated test-only props are deprecated and will be removed in the future.
50
56
  */
51
57
  testOnly_onPressIn?: Function | null;
52
58
  /**
53
59
  * Used for testing-library compatibility, not passed to the native component.
60
+ * @deprecated test-only props are deprecated and will be removed in the future.
54
61
  */
55
62
  testOnly_onPressOut?: Function | null;
56
63
  /**
57
64
  * Used for testing-library compatibility, not passed to the native component.
65
+ * @deprecated test-only props are deprecated and will be removed in the future.
58
66
  */
59
67
  testOnly_onLongPress?: Function | null;
60
68
  }
@@ -113,3 +121,4 @@ export interface BorderlessButtonProps extends BaseButtonProps {
113
121
  export interface BorderlessButtonWithRefProps extends BorderlessButtonProps, ButtonWithRefProps {
114
122
  }
115
123
  export {};
124
+ //# sourceMappingURL=GestureButtonsProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GestureButtonsProps.d.ts","sourceRoot":"","sources":["../../../src/components/GestureButtonsProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAE1F,MAAM,WAAW,cACf,SAAQ,6BAA6B,EACnC,kBAAkB;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC;IAEzC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IAEH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEnC;;OAEG;IAEH,kBAAkB,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAErC;;OAEG;IAEH,mBAAmB,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEtC;;OAEG;IAEH,oBAAoB,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxC;AACD,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IAE3C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AACD,MAAM,WAAW,sBACf,SAAQ,eAAe,EACrB,kBAAkB;CAAG;AAEzB,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,sBACf,SAAQ,eAAe,EACrB,kBAAkB;CAAG;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,4BACf,SAAQ,qBAAqB,EAC3B,kBAAkB;CAAG"}
1
+ {"version":3,"file":"GestureButtonsProps.d.ts","sourceRoot":"","sources":["../../../src/components/GestureButtonsProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAE1F,MAAM,WAAW,cACf,SAAQ,6BAA6B,EACnC,kBAAkB;IAC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,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AACD,MAAM,WAAW,sBACf,SAAQ,eAAe,EACrB,kBAAkB;CAAG;AAEzB,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,sBACf,SAAQ,eAAe,EACrB,kBAAkB;CAAG;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,4BACf,SAAQ,qBAAqB,EAC3B,kBAAkB;CAAG"}
@@ -20,3 +20,4 @@ export type DrawerLayoutAndroid = typeof DrawerLayoutAndroid & RNDrawerLayoutAnd
20
20
  export declare const FlatList: <ItemT = any>(props: PropsWithChildren<Omit<RNFlatListProps<ItemT>, "renderScrollComponent"> & RefAttributes<FlatList<ItemT>> & NativeViewGestureHandlerProps>, ref?: ForwardedRef<FlatList<ItemT>>) => ReactElement | null;
21
21
  export type FlatList<ItemT = any> = typeof FlatList & RNFlatList<ItemT>;
22
22
  export {};
23
+ //# sourceMappingURL=GestureComponents.d.ts.map
@@ -6,3 +6,4 @@ export declare const TextInput: React.ForwardRefExoticComponent<import("react-na
6
6
  export declare const DrawerLayoutAndroid: () => React.JSX.Element;
7
7
  export declare const RefreshControl: React.ForwardRefExoticComponent<import("react-native").ViewProps & import("..").NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
8
8
  export declare const FlatList: React.ForwardRefExoticComponent<FlatListProps<unknown> & React.RefAttributes<unknown>>;
9
+ //# sourceMappingURL=GestureComponents.web.d.ts.map
@@ -2,3 +2,4 @@ import { HostComponent } from 'react-native';
2
2
  import type { RawButtonProps } from './GestureButtonsProps';
3
3
  declare const _default: HostComponent<RawButtonProps>;
4
4
  export default _default;
5
+ //# sourceMappingURL=GestureHandlerButton.d.ts.map
@@ -2,3 +2,4 @@ import * as React from 'react';
2
2
  import { View } from 'react-native';
3
3
  declare const _default: React.ForwardRefExoticComponent<React.RefAttributes<View>>;
4
4
  export default _default;
5
+ //# sourceMappingURL=GestureHandlerButton.web.d.ts.map
@@ -4,3 +4,4 @@ import { ViewProps } from 'react-native';
4
4
  export interface GestureHandlerRootViewProps extends PropsWithChildren<ViewProps> {
5
5
  }
6
6
  export default function GestureHandlerRootView({ style, ...rest }: GestureHandlerRootViewProps): React.JSX.Element;
7
+ //# sourceMappingURL=GestureHandlerRootView.android.d.ts.map
@@ -4,3 +4,4 @@ import { ViewProps } from 'react-native';
4
4
  export interface GestureHandlerRootViewProps extends PropsWithChildren<ViewProps> {
5
5
  }
6
6
  export default function GestureHandlerRootView({ style, ...rest }: GestureHandlerRootViewProps): React.JSX.Element;
7
+ //# sourceMappingURL=GestureHandlerRootView.d.ts.map
@@ -4,3 +4,4 @@ import { ViewProps } from 'react-native';
4
4
  export interface GestureHandlerRootViewProps extends PropsWithChildren<ViewProps> {
5
5
  }
6
6
  export default function GestureHandlerRootView({ style, ...rest }: GestureHandlerRootViewProps): React.JSX.Element;
7
+ //# sourceMappingURL=GestureHandlerRootView.web.d.ts.map
@@ -2,3 +2,4 @@ import React from 'react';
2
2
  import { PressableProps } from './PressableProps';
3
3
  declare const Pressable: (props: PressableProps) => React.JSX.Element;
4
4
  export default Pressable;
5
+ //# sourceMappingURL=Pressable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAGf,OAAO,EAEL,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAkC1B,QAAA,MAAM,SAAS,GAAI,OAAO,cAAc,sBAkWvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAGf,OAAO,EAEL,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAgC1B,QAAA,MAAM,SAAS,GAAI,OAAO,cAAc,sBAyVvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -49,7 +49,7 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
49
49
  /**
50
50
  * A reference to the pressable element.
51
51
  */
52
- ref?: React.RefObject<View>;
52
+ ref?: React.Ref<View>;
53
53
  /**
54
54
  * Either children or a render prop that receives a boolean reflecting whether
55
55
  * the component is currently pressed.
@@ -130,9 +130,8 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
130
130
  */
131
131
  blocksExternalGesture?: RelationPropType;
132
132
  /**
133
- * Defines the dimensions of the Pressable after it's been resized.
134
- * This property does not affect Pressable's physical appearance.
135
- * Required when the Pressable is resized **and** uses pressRetentionOffset.
133
+ * @deprecated This property is no longer used, and will be removed in the future.
136
134
  */
137
135
  dimensionsAfterResize?: PressableDimensions;
138
136
  }
137
+ //# sourceMappingURL=PressableProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PressableProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/PressableProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,EACT,0BAA0B,IAAI,4BAA4B,EAC1D,4BAA4B,IAAI,8BAA8B,EAC9D,IAAI,EACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,0BAA0B,GAAG,4BAA4B,CAAC;AACt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AAC,EAAE,mBAAmB,CAAC;CAC7C"}
1
+ {"version":3,"file":"PressableProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/PressableProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,EACT,0BAA0B,IAAI,4BAA4B,EAC1D,4BAA4B,IAAI,8BAA8B,EAC9D,IAAI,EACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,0BAA0B,GAAG,4BAA4B,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,8BAA8B,CAAC;AAE1E,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,mBAAmB,EAAE,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAElE,MAAM,WAAW,cACf,SAAQ,kBAAkB,EACxB,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC,CAAC;IAErD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAA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AAc,CAAC,EAAE,IAAI,GAAG,4BAA4B,CAAC;IAErD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;IAElC;;;OAGG;IACH,KAAK,CAAC,EACF,SAAS,CAAC,SAAS,CAAC,GACpB,CAAC,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAElE;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,+BAA+B,CAAC,EAAE,gBAAgB,CAAC;IAEnD;;;OAGG;IACH,4BAA4B,CAAC,EAAE,gBAAgB,CAAC;IAEhD;;;OAGG;IACH,qBAAqB,CAAC,EAAE,gBAAgB,CAAC;IAEzC;;OAEG;IACH,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;CAC7C"}
@@ -1,5 +1,5 @@
1
1
  import { PressableEvent } from './PressableProps';
2
- interface StateDefinition {
2
+ export interface StateDefinition {
3
3
  eventName: string;
4
4
  callback?: (event: PressableEvent) => void;
5
5
  }
@@ -7,8 +7,10 @@ declare class PressableStateMachine {
7
7
  private states;
8
8
  private currentStepIndex;
9
9
  private eventPayload;
10
- constructor(steps: StateDefinition[]);
10
+ constructor();
11
+ setStates(states: StateDefinition[]): void;
11
12
  reset(): void;
12
13
  handleEvent(eventName: string, eventPayload?: PressableEvent): void;
13
14
  }
14
15
  export { PressableStateMachine };
16
+ //# sourceMappingURL=StateMachine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StateMachine.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/StateMachine.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,eAAe;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC5C;AAED,cAAM,qBAAqB;IACzB,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,YAAY,CAAwB;gBAEhC,KAAK,EAAE,eAAe,EAAE;IAM7B,KAAK;IAKL,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,cAAc;CAuBpE;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"StateMachine.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/StateMachine.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC5C;AAED,cAAM,qBAAqB;IACzB,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,YAAY,CAAwB;;IAQrC,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE;IAInC,KAAK;IAKL,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,cAAc;CA2BpE;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export type { PressableProps, PressableStateCallbackType, } from './PressableProps';
2
2
  export { default } from './Pressable';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,10 @@
1
1
  import { PressableEvent } from './PressableProps';
2
- import { PressableStateMachine } from './StateMachine';
2
+ import { StateDefinition } from './StateMachine';
3
3
  export declare enum StateMachineEvent {
4
4
  NATIVE_BEGIN = "nativeBegin",
5
5
  NATIVE_START = "nativeStart",
6
6
  FINALIZE = "finalize",
7
7
  LONG_PRESS_TOUCHES_DOWN = "longPressTouchesDown"
8
8
  }
9
- export declare function getConfiguredStateMachine(handlePressIn: (event: PressableEvent) => void, handlePressOut: (event: PressableEvent) => void): PressableStateMachine;
9
+ export declare function getStatesConfig(handlePressIn: (event: PressableEvent) => void, handlePressOut: (event: PressableEvent) => void): StateDefinition[];
10
+ //# sourceMappingURL=stateDefinitions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stateDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/stateDefinitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,oBAAY,iBAAiB;IAC3B,YAAY,gBAAgB;IAC5B,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;IACrB,uBAAuB,yBAAyB;CACjD;AAmGD,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,yBAchD"}
1
+ {"version":3,"file":"stateDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/stateDefinitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,oBAAY,iBAAiB;IAC3B,YAAY,gBAAgB;IAC5B,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;IACrB,uBAAuB,yBAAyB;CACjD;AAmGD,wBAAgB,eAAe,CAC7B,aAAa,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GAC9C,eAAe,EAAE,CAanB"}
@@ -8,3 +8,4 @@ declare const isTouchWithinInset: (dimensions: PressableDimensions, inset: Inset
8
8
  declare const gestureToPressableEvent: (event: GestureStateChangeEvent<HoverGestureHandlerEventPayload | LongPressGestureHandlerEventPayload>) => PressableEvent;
9
9
  declare const gestureTouchToPressableEvent: (event: GestureTouchEvent) => PressableEvent;
10
10
  export { numberAsInset, addInsets, isTouchWithinInset, gestureToPressableEvent, gestureTouchToPressableEvent, };
11
+ //# sourceMappingURL=utils.d.ts.map
@@ -165,3 +165,4 @@ export interface DrawerLayoutMethods {
165
165
  }
166
166
  declare const DrawerLayout: React.ForwardRefExoticComponent<DrawerLayoutProps & React.RefAttributes<DrawerLayoutMethods>>;
167
167
  export default DrawerLayout;
168
+ //# sourceMappingURL=ReanimatedDrawerLayout.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { ForwardedRef } from 'react';
2
+ import { SwipeableProps, SwipeableMethods } from '.';
3
+ declare const Swipeable: (props: SwipeableProps) => import("react").JSX.Element;
4
+ export default Swipeable;
5
+ export type SwipeableRef = ForwardedRef<SwipeableMethods>;
6
+ //# sourceMappingURL=ReanimatedSwipeable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReanimatedSwipeable.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6C,YAAY,EAAE,MAAM,OAAO,CAAC;AAahF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAkB,MAAM,GAAG,CAAC;AAqBrE,QAAA,MAAM,SAAS,GAAI,OAAO,cAAc,gCAqiBvC,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1,14 +1,18 @@
1
- import React, { ForwardedRef } from 'react';
2
- import type { PanGestureHandlerProps } from '../handlers/PanGestureHandler';
1
+ import React from 'react';
2
+ import type { PanGestureHandlerProps } from '../../handlers/PanGestureHandler';
3
3
  import { SharedValue } from 'react-native-reanimated';
4
4
  import { StyleProp, ViewStyle } from 'react-native';
5
- import { RelationPropType } from './utils';
5
+ import { RelationPropType } from '../utils';
6
6
  type SwipeableExcludes = Exclude<keyof PanGestureHandlerProps, 'onGestureEvent' | 'onHandlerStateChange'>;
7
- declare enum SwipeDirection {
7
+ export declare enum SwipeDirection {
8
8
  LEFT = "left",
9
9
  RIGHT = "right"
10
10
  }
11
11
  export interface SwipeableProps extends Pick<PanGestureHandlerProps, SwipeableExcludes> {
12
+ /**
13
+ *
14
+ */
15
+ ref?: React.RefObject<SwipeableMethods | null>;
12
16
  /**
13
17
  * Enables two-finger gestures on supported devices, for example iPads with
14
18
  * trackpads. If not enabled the gesture will require click + drag, with
@@ -142,6 +146,5 @@ export interface SwipeableMethods {
142
146
  openRight: () => void;
143
147
  reset: () => void;
144
148
  }
145
- declare const Swipeable: React.ForwardRefExoticComponent<SwipeableProps & React.RefAttributes<SwipeableMethods>>;
146
- export default Swipeable;
147
- export type SwipeableRef = ForwardedRef<SwipeableMethods>;
149
+ export {};
150
+ //# sourceMappingURL=ReanimatedSwipeableProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReanimatedSwipeableProps.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,iBAAiB,GAAG,OAAO,CAC9B,MAAM,sBAAsB,EAC5B,gBAAgB,GAAG,sBAAsB,CAC1C,CAAC;AAEF,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,iBAAiB,CAAC;IACvD;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,G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AC,EAAE,CAClB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,EAChC,gBAAgB,EAAE,gBAAgB,KAC/B,KAAK,CAAC,SAAS,CAAC;IAErB;;;;;;;;;SASK;IACL,kBAAkB,CAAC,EAAE,CACnB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,EAChC,gBAAgB,EAAE,gBAAgB,KAC/B,KAAK,CAAC,SAAS,CAAC;IAErB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE3C;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEtC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE9C;;;OAGG;IACH,+BAA+B,CAAC,EAAE,gBAAgB,CAAC;IAEnD;;;OAGG;IACH,4BAA4B,CAAC,EAAE,gBAAgB,CAAC;IAEhD;;;OAGG;IACH,qBAAqB,CAAC,EAAE,gBAAgB,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ export { type SwipeableProps, type SwipeableMethods, SwipeDirection, } from './ReanimatedSwipeableProps';
2
+ export { default } from './ReanimatedSwipeable';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
@@ -181,3 +181,4 @@ export default class Swipeable extends Component<SwipeableProps, SwipeableState>
181
181
  render(): React.JSX.Element;
182
182
  }
183
183
  export {};
184
+ //# sourceMappingURL=Swipeable.d.ts.map
@@ -2,3 +2,4 @@ import React from 'react';
2
2
  import { Text as RNText, TextProps as RNTextProps } from 'react-native';
3
3
  export declare const Text: React.ForwardRefExoticComponent<RNTextProps & React.RefAttributes<RNText>>;
4
4
  export type Text = typeof Text & RNText;
5
+ //# sourceMappingURL=Text.d.ts.map
@@ -1,3 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
+ /**
4
+ * @deprecated `gestureHandlerRootHOC` is deprecated and will be removed in the future version of Gesture Handler.
5
+ * Use `GestureHandlerRootView` directly instead.
6
+ */
3
7
  export default function gestureHandlerRootHOC<P extends object>(Component: React.ComponentType<P>, containerStyles?: StyleProp<ViewStyle>): React.ComponentType<P>;
8
+ //# sourceMappingURL=gestureHandlerRootHOC.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gestureHandlerRootHOC.d.ts","sourceRoot":"","sources":["../../../src/components/gestureHandlerRootHOC.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIhE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAC5D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,eAAe,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GACrC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAiBxB"}
1
+ {"version":3,"file":"gestureHandlerRootHOC.d.ts","sourceRoot":"","sources":["../../../src/components/gestureHandlerRootHOC.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIhE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAC5D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,eAAe,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GACrC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAiBxB"}
@@ -5,3 +5,4 @@ export type ExtraButtonProps = {
5
5
  foreground?: boolean;
6
6
  exclusive?: boolean;
7
7
  };
8
+ //# sourceMappingURL=ExtraButtonProps.d.ts.map
@@ -53,3 +53,4 @@ export default class GenericTouchable extends Component<GenericTouchableProps &
53
53
  render(): React.JSX.Element;
54
54
  }
55
55
  export {};
56
+ //# sourceMappingURL=GenericTouchable.d.ts.map
@@ -14,3 +14,4 @@ export interface GenericTouchableProps extends Omit<TouchableWithoutFeedbackProp
14
14
  userSelect?: UserSelect;
15
15
  extraButtonProps?: ExtraButtonProps;
16
16
  }
17
+ //# sourceMappingURL=GenericTouchableProps.d.ts.map
@@ -39,3 +39,4 @@ export default class TouchableHighlight extends Component<TouchableHighlightProp
39
39
  render(): React.JSX.Element;
40
40
  }
41
41
  export {};
42
+ //# sourceMappingURL=TouchableHighlight.d.ts.map
@@ -38,3 +38,4 @@ export default class TouchableNativeFeedback extends Component<TouchableNativeFe
38
38
  getExtraButtonProps(): import("./ExtraButtonProps").ExtraButtonProps;
39
39
  render(): React.JSX.Element;
40
40
  }
41
+ //# sourceMappingURL=TouchableNativeFeedback.android.d.ts.map
@@ -4,3 +4,4 @@ import { TouchableNativeFeedback as RNTouchableNativeFeedback } from 'react-nati
4
4
  */
5
5
  declare const TouchableNativeFeedback: typeof RNTouchableNativeFeedback;
6
6
  export default TouchableNativeFeedback;
7
+ //# sourceMappingURL=TouchableNativeFeedback.d.ts.map
@@ -6,3 +6,4 @@ export type TouchableNativeFeedbackExtraProps = ExtraButtonProps;
6
6
  * @deprecated TouchableNativeFeedback will be removed in the future version of Gesture Handler. Use Pressable instead.
7
7
  */
8
8
  export type TouchableNativeFeedbackProps = RNTouchableNativeFeedbackProps & GenericTouchableProps;
9
+ //# sourceMappingURL=TouchableNativeFeedbackProps.d.ts.map
@@ -28,3 +28,4 @@ export default class TouchableOpacity extends Component<TouchableOpacityProps> {
28
28
  onStateChange: (_from: number, to: number) => void;
29
29
  render(): React.JSX.Element;
30
30
  }
31
+ //# sourceMappingURL=TouchableOpacity.d.ts.map
@@ -12,3 +12,4 @@ declare const TouchableWithoutFeedback: React.ForwardRefExoticComponent<GenericT
12
12
  children?: React.ReactNode | undefined;
13
13
  } & React.RefAttributes<GenericTouchable>>;
14
14
  export default TouchableWithoutFeedback;
15
+ //# sourceMappingURL=TouchableWithoutFeedback.d.ts.map
@@ -5,3 +5,4 @@ export { default as TouchableNativeFeedback } from './TouchableNativeFeedback';
5
5
  export { default as TouchableWithoutFeedback } from './TouchableWithoutFeedback';
6
6
  export { default as TouchableOpacity } from './TouchableOpacity';
7
7
  export { default as TouchableHighlight } from './TouchableHighlight';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -2,3 +2,4 @@ import { BaseGesture, GestureRef } from '../handlers/gestures/gesture';
2
2
  export type RelationPropName = 'simultaneousWithExternalGesture' | 'requireExternalGestureToFail' | 'blocksExternalGesture';
3
3
  export type RelationPropType = Exclude<GestureRef, number> | Exclude<GestureRef, number>[];
4
4
  export declare function applyRelationProp(gesture: BaseGesture<any>, relationPropName: RelationPropName, relationProp: RelationPropType): void;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { findNodeHandle } from 'react-native';
2
2
  export default findNodeHandle;
3
+ //# sourceMappingURL=findNodeHandle.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { GestureHandlerRef, SVGRef } from './web/interfaces';
2
2
  export default function findNodeHandle(viewRef: GestureHandlerRef | SVGRef | HTMLElement | SVGElement): HTMLElement | SVGElement | number;
3
+ //# sourceMappingURL=findNodeHandle.web.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function getShadowNodeFromRef(ref: unknown): unknown;
2
+ //# sourceMappingURL=getShadowNodeFromRef.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function getShadowNodeFromRef(_ref: any): null;
2
+ //# sourceMappingURL=getShadowNodeFromRef.web.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const ghQueueMicrotask: typeof queueMicrotask;
2
+ //# sourceMappingURL=ghQueueMicrotask.d.ts.map
@@ -36,3 +36,4 @@ export type FlingGestureHandler = typeof FlingGestureHandler;
36
36
  * @deprecated FlingGestureHandler will be removed in the future version of Gesture Handler. Use `Gesture.Fling()` instead.
37
37
  */
38
38
  export declare const FlingGestureHandler: import("react").ComponentType<FlingGestureHandlerProps & import("react").RefAttributes<any>>;
39
+ //# sourceMappingURL=FlingGestureHandler.d.ts.map
@@ -42,3 +42,4 @@ export declare const forceTouchHandlerName = "ForceTouchGestureHandler";
42
42
  */
43
43
  export declare const ForceTouchGestureHandler: typeof ForceTouchFallback | React.ComponentType<ForceTouchGestureHandlerProps & React.RefAttributes<any>>;
44
44
  export {};
45
+ //# sourceMappingURL=ForceTouchGestureHandler.d.ts.map