react-native-gesture-handler 3.0.0-beta.3 → 3.0.0-beta.5
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.
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +42 -38
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +34 -8
- package/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt +3 -6
- package/android/src/main/java/com/swmansion/gesturehandler/core/ManualGestureHandler.kt +2 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt +68 -7
- package/android/src/main/java/com/swmansion/gesturehandler/core/OnJSResponderCancelListener.kt +6 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt +2 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PinchGestureHandler.kt +16 -6
- package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureHandler.kt +17 -4
- package/android/src/main/java/com/swmansion/gesturehandler/core/ViewConfigurationHelper.kt +0 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/Extensions.kt +21 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +160 -55
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerDetectorView.kt +75 -98
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +1 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +7 -10
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt +64 -2
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +18 -8
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +15 -4
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +0 -6
- package/apple/Handlers/RNForceTouchHandler.m +1 -1
- package/apple/Handlers/RNHoverHandler.m +11 -11
- package/apple/Handlers/RNLongPressHandler.m +2 -2
- package/apple/Handlers/RNManualHandler.m +5 -0
- package/apple/Handlers/RNNativeViewHandler.mm +114 -53
- package/apple/Handlers/RNPanHandler.m +7 -3
- package/apple/Handlers/RNPinchHandler.m +9 -3
- package/apple/Handlers/RNRotationHandler.m +7 -2
- package/apple/Handlers/RNTapHandler.m +1 -1
- package/apple/RNGestureHandler.h +18 -0
- package/apple/RNGestureHandler.mm +82 -33
- package/apple/RNGestureHandlerButton.h +12 -2
- package/apple/RNGestureHandlerButton.mm +208 -38
- package/apple/RNGestureHandlerButtonComponentView.mm +102 -6
- package/apple/RNGestureHandlerDetector.mm +99 -75
- package/apple/RNGestureHandlerModule.mm +11 -14
- package/apple/RNGestureHandlerRegistry.h +14 -1
- package/apple/RNGestureHandlerRegistry.m +56 -0
- package/apple/RNRootViewGestureRecognizer.m +4 -15
- package/lib/module/RNGestureHandlerModule.web.js +5 -1
- package/lib/module/RNGestureHandlerModule.web.js.map +1 -1
- package/lib/module/components/GestureButtons.js +23 -12
- package/lib/module/components/GestureButtons.js.map +1 -1
- package/lib/module/components/GestureHandlerButton.js.map +1 -1
- package/lib/module/components/GestureHandlerButton.web.js +113 -31
- package/lib/module/components/GestureHandlerButton.web.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.js +2 -1
- package/lib/module/components/Pressable/Pressable.js.map +1 -1
- package/lib/module/components/Pressable/stateDefinitions.js +2 -0
- package/lib/module/components/Pressable/stateDefinitions.js.map +1 -1
- package/lib/module/components/ReanimatedDrawerLayout.js.map +1 -1
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js +38 -5
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -1
- package/lib/module/components/touchables/GenericTouchable.js +2 -6
- package/lib/module/components/touchables/GenericTouchable.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js +1 -2
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/utils.js +11 -48
- package/lib/module/handlers/gestures/GestureDetector/utils.js.map +1 -1
- package/lib/module/handlers/gestures/flingGesture.js +8 -0
- package/lib/module/handlers/gestures/flingGesture.js.map +1 -1
- package/lib/module/handlers/gestures/forceTouchGesture.js +3 -3
- package/lib/module/handlers/gestures/gesture.js +8 -0
- package/lib/module/handlers/gestures/gesture.js.map +1 -1
- package/lib/module/handlers/gestures/gestureComposition.js +28 -0
- package/lib/module/handlers/gestures/gestureComposition.js.map +1 -1
- package/lib/module/handlers/gestures/gestureObjects.js +27 -1
- package/lib/module/handlers/gestures/gestureObjects.js.map +1 -1
- package/lib/module/handlers/gestures/gestureStateManager.js +9 -0
- package/lib/module/handlers/gestures/gestureStateManager.js.map +1 -1
- package/lib/module/handlers/gestures/hoverGesture.js +8 -0
- package/lib/module/handlers/gestures/hoverGesture.js.map +1 -1
- package/lib/module/handlers/gestures/longPressGesture.js +8 -0
- package/lib/module/handlers/gestures/longPressGesture.js.map +1 -1
- package/lib/module/handlers/gestures/manualGesture.js +8 -0
- package/lib/module/handlers/gestures/manualGesture.js.map +1 -1
- package/lib/module/handlers/gestures/nativeGesture.js +8 -0
- package/lib/module/handlers/gestures/nativeGesture.js.map +1 -1
- package/lib/module/handlers/gestures/panGesture.js +13 -0
- package/lib/module/handlers/gestures/panGesture.js.map +1 -1
- package/lib/module/handlers/gestures/pinchGesture.js +13 -0
- package/lib/module/handlers/gestures/pinchGesture.js.map +1 -1
- package/lib/module/handlers/gestures/reanimatedWrapper.js +14 -2
- package/lib/module/handlers/gestures/reanimatedWrapper.js.map +1 -1
- package/lib/module/handlers/gestures/rotationGesture.js +8 -0
- package/lib/module/handlers/gestures/rotationGesture.js.map +1 -1
- package/lib/module/handlers/gestures/tapGesture.js +8 -0
- package/lib/module/handlers/gestures/tapGesture.js.map +1 -1
- package/lib/module/mocks/module.js +3 -2
- package/lib/module/mocks/module.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.ts +28 -13
- package/lib/module/v3/NativeProxy.js +5 -3
- package/lib/module/v3/NativeProxy.js.map +1 -1
- package/lib/module/v3/NativeProxy.web.js +2 -2
- package/lib/module/v3/NativeProxy.web.js.map +1 -1
- package/lib/module/v3/components/GestureButtons.js +11 -6
- package/lib/module/v3/components/GestureButtons.js.map +1 -1
- package/lib/module/v3/components/Pressable.js +3 -2
- package/lib/module/v3/components/Pressable.js.map +1 -1
- package/lib/module/v3/components/Touchable/Touchable.js +119 -32
- package/lib/module/v3/components/Touchable/Touchable.js.map +1 -1
- package/lib/module/v3/detectors/HostGestureDetector.web.js +180 -59
- package/lib/module/v3/detectors/HostGestureDetector.web.js.map +1 -1
- package/lib/module/v3/detectors/NativeDetector.js +3 -2
- package/lib/module/v3/detectors/NativeDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js +3 -4
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js +4 -2
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js.map +1 -1
- package/lib/module/v3/detectors/useGestureRelationsUpdater.js +23 -0
- package/lib/module/v3/detectors/useGestureRelationsUpdater.js.map +1 -0
- package/lib/module/v3/detectors/useNativeGestureRole.js +6 -0
- package/lib/module/v3/detectors/useNativeGestureRole.js.map +1 -0
- package/lib/module/v3/detectors/useNativeGestureRole.web.js +27 -0
- package/lib/module/v3/detectors/useNativeGestureRole.web.js.map +1 -0
- package/lib/module/v3/detectors/utils.js +10 -8
- package/lib/module/v3/detectors/utils.js.map +1 -1
- package/lib/module/v3/hooks/callbacks/useReanimatedEventHandler.js +17 -2
- package/lib/module/v3/hooks/callbacks/useReanimatedEventHandler.js.map +1 -1
- package/lib/module/v3/hooks/gestures/fling/useFlingGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/fling/useFlingGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/hover/useHoverGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/hover/useHoverGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/longPress/useLongPressGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/longPress/useLongPressGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/manual/useManualGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/manual/useManualGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/native/NativeTypes.js +1 -1
- package/lib/module/v3/hooks/gestures/native/NativeTypes.js.map +1 -1
- package/lib/module/v3/hooks/gestures/native/useNativeGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/native/useNativeGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/pan/usePanGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/pan/usePanGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/pinch/usePinchGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/pinch/usePinchGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/rotation/useRotationGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/rotation/useRotationGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/tap/useTapGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/tap/useTapGesture.js.map +1 -1
- package/lib/module/v3/hooks/useGesture.js +4 -22
- package/lib/module/v3/hooks/useGesture.js.map +1 -1
- package/lib/module/v3/hooks/utils/configUtils.js +8 -6
- package/lib/module/v3/hooks/utils/configUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/eventHandlersUtils.js +31 -29
- package/lib/module/v3/hooks/utils/eventHandlersUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/index.js +1 -1
- package/lib/module/v3/hooks/utils/index.js.map +1 -1
- package/lib/module/v3/hooks/utils/propsWhiteList.js +1 -1
- package/lib/module/v3/hooks/utils/propsWhiteList.js.map +1 -1
- package/lib/module/v3/hooks/utils/reanimatedUtils.js +8 -2
- package/lib/module/v3/hooks/utils/reanimatedUtils.js.map +1 -1
- package/lib/module/web/constants.js +1 -0
- package/lib/module/web/constants.js.map +1 -1
- package/lib/module/web/detectors/RotationGestureDetector.js +18 -5
- package/lib/module/web/detectors/RotationGestureDetector.js.map +1 -1
- package/lib/module/web/detectors/ScaleGestureDetector.js +9 -1
- package/lib/module/web/detectors/ScaleGestureDetector.js.map +1 -1
- package/lib/module/web/handlers/GestureHandler.js +25 -5
- package/lib/module/web/handlers/GestureHandler.js.map +1 -1
- package/lib/module/web/handlers/HoverGestureHandler.js +1 -4
- package/lib/module/web/handlers/HoverGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/ManualGestureHandler.js +1 -0
- package/lib/module/web/handlers/ManualGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/NativeViewGestureHandler.js +65 -17
- package/lib/module/web/handlers/NativeViewGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/PanGestureHandler.js +1 -0
- package/lib/module/web/handlers/PanGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/PinchGestureHandler.js +4 -6
- package/lib/module/web/handlers/PinchGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/RotationGestureHandler.js +4 -3
- package/lib/module/web/handlers/RotationGestureHandler.js.map +1 -1
- package/lib/module/web/interfaces.js +6 -0
- package/lib/module/web/interfaces.js.map +1 -1
- package/lib/module/web/tools/GestureHandlerOrchestrator.js +8 -2
- package/lib/module/web/tools/GestureHandlerOrchestrator.js.map +1 -1
- package/lib/module/web/tools/GestureLifecycleEvents.js +10 -0
- package/lib/module/web/tools/GestureLifecycleEvents.js.map +1 -0
- package/lib/module/web/tools/NodeManager.js +44 -0
- package/lib/module/web/tools/NodeManager.js.map +1 -1
- package/lib/module/web/tools/PointerEventManager.js +9 -0
- package/lib/module/web/tools/PointerEventManager.js.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts +1 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts.map +1 -1
- package/lib/typescript/components/GestureButtons.d.ts +14 -6
- package/lib/typescript/components/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerButton.d.ts +62 -8
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerButton.web.d.ts +14 -3
- package/lib/typescript/components/GestureHandlerButton.web.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/Pressable.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/PressableProps.d.ts +1 -1
- package/lib/typescript/components/Pressable/PressableProps.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/stateDefinitions.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts +16 -14
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts +2 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts +30 -34
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts.map +1 -1
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/flingGesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/flingGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +3 -3
- package/lib/typescript/handlers/gestures/gesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/gesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts +21 -0
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts +27 -1
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +6 -0
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/manualGesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/manualGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/panGesture.d.ts +9 -0
- package/lib/typescript/handlers/gestures/panGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts +9 -0
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/tapGesture.d.ts +6 -0
- package/lib/typescript/handlers/gestures/tapGesture.d.ts.map +1 -1
- package/lib/typescript/mocks/module.d.ts +1 -1
- package/lib/typescript/mocks/module.d.ts.map +1 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +2 -2
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +19 -11
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -1
- package/lib/typescript/v3/NativeProxy.d.ts +1 -1
- package/lib/typescript/v3/NativeProxy.d.ts.map +1 -1
- package/lib/typescript/v3/NativeProxy.web.d.ts +1 -1
- package/lib/typescript/v3/NativeProxy.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureButtons.d.ts +1 -37
- package/lib/typescript/v3/components/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureButtonsProps.d.ts +1 -1
- package/lib/typescript/v3/components/GestureButtonsProps.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.d.ts +3 -0
- package/lib/typescript/v3/components/GestureComponents.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.web.d.ts +4 -0
- package/lib/typescript/v3/components/GestureComponents.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/Pressable.d.ts.map +1 -1
- package/lib/typescript/v3/components/Touchable/Touchable.d.ts.map +1 -1
- package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts +48 -1
- package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/HostGestureDetector.web.d.ts +1 -1
- package/lib/typescript/v3/detectors/HostGestureDetector.web.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/NativeDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/InterceptingGestureDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/VirtualDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/useGestureRelationsUpdater.d.ts +3 -0
- package/lib/typescript/v3/detectors/useGestureRelationsUpdater.d.ts.map +1 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.d.ts +3 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.d.ts.map +1 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.web.d.ts +3 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.web.d.ts.map +1 -0
- package/lib/typescript/v3/detectors/utils.d.ts +3 -3
- package/lib/typescript/v3/detectors/utils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/callbacks/useReanimatedEventHandler.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/fling/useFlingGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/fling/useFlingGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/hover/useHoverGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/hover/useHoverGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/longPress/useLongPressGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/longPress/useLongPressGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/manual/useManualGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/manual/useManualGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/native/NativeTypes.d.ts +7 -0
- package/lib/typescript/v3/hooks/gestures/native/NativeTypes.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/native/useNativeGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/native/useNativeGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/pan/usePanGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/pan/usePanGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/pinch/usePinchGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/pinch/usePinchGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/rotation/useRotationGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/rotation/useRotationGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/tap/useTapGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/gestures/tap/useTapGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/useGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/configUtils.d.ts +2 -2
- package/lib/typescript/v3/hooks/utils/configUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/eventHandlersUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/index.d.ts +1 -1
- package/lib/typescript/v3/hooks/utils/index.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/propsWhiteList.d.ts +2 -2
- package/lib/typescript/v3/hooks/utils/propsWhiteList.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts +1 -0
- package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts.map +1 -1
- package/lib/typescript/v3/types/ConfigTypes.d.ts +1 -0
- package/lib/typescript/v3/types/ConfigTypes.d.ts.map +1 -1
- package/lib/typescript/web/constants.d.ts +1 -0
- package/lib/typescript/web/constants.d.ts.map +1 -1
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts.map +1 -1
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts.map +1 -1
- package/lib/typescript/web/handlers/GestureHandler.d.ts +8 -2
- package/lib/typescript/web/handlers/GestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +1 -1
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/IGestureHandler.d.ts +2 -0
- package/lib/typescript/web/handlers/IGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +1 -0
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +13 -3
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts +1 -0
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +1 -0
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +1 -0
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/interfaces.d.ts +6 -0
- package/lib/typescript/web/interfaces.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +1 -0
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureLifecycleEvents.d.ts +7 -0
- package/lib/typescript/web/tools/GestureLifecycleEvents.d.ts.map +1 -0
- package/lib/typescript/web/tools/NodeManager.d.ts +7 -0
- package/lib/typescript/web/tools/NodeManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/PointerEventManager.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/RNGestureHandlerModule.web.ts +5 -1
- package/src/components/GestureButtons.tsx +33 -16
- package/src/components/GestureHandlerButton.tsx +70 -8
- package/src/components/GestureHandlerButton.web.tsx +184 -48
- package/src/components/Pressable/Pressable.tsx +3 -1
- package/src/components/Pressable/PressableProps.tsx +2 -1
- package/src/components/Pressable/stateDefinitions.ts +3 -0
- package/src/components/ReanimatedDrawerLayout.tsx +27 -23
- package/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +51 -5
- package/src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts +31 -39
- package/src/components/touchables/GenericTouchable.tsx +2 -5
- package/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts +1 -2
- package/src/handlers/gestures/GestureDetector/utils.ts +11 -53
- package/src/handlers/gestures/flingGesture.ts +6 -0
- package/src/handlers/gestures/forceTouchGesture.ts +3 -3
- package/src/handlers/gestures/gesture.ts +6 -0
- package/src/handlers/gestures/gestureComposition.ts +21 -0
- package/src/handlers/gestures/gestureObjects.ts +27 -1
- package/src/handlers/gestures/gestureStateManager.ts +6 -0
- package/src/handlers/gestures/hoverGesture.ts +6 -0
- package/src/handlers/gestures/longPressGesture.ts +6 -0
- package/src/handlers/gestures/manualGesture.ts +6 -0
- package/src/handlers/gestures/nativeGesture.ts +6 -0
- package/src/handlers/gestures/panGesture.ts +9 -0
- package/src/handlers/gestures/pinchGesture.ts +9 -0
- package/src/handlers/gestures/reanimatedWrapper.ts +20 -2
- package/src/handlers/gestures/rotationGesture.ts +6 -0
- package/src/handlers/gestures/tapGesture.ts +6 -0
- package/src/mocks/module.tsx +4 -2
- package/src/specs/NativeRNGestureHandlerModule.ts +2 -4
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +28 -13
- package/src/v3/NativeProxy.ts +9 -7
- package/src/v3/NativeProxy.web.ts +2 -2
- package/src/v3/components/GestureButtons.tsx +18 -10
- package/src/v3/components/GestureButtonsProps.ts +1 -0
- package/src/v3/components/Pressable.tsx +2 -1
- package/src/v3/components/Touchable/Touchable.tsx +144 -50
- package/src/v3/components/Touchable/TouchableProps.ts +64 -2
- package/src/v3/detectors/HostGestureDetector.web.tsx +268 -108
- package/src/v3/detectors/NativeDetector.tsx +3 -2
- package/src/v3/detectors/VirtualDetector/InterceptingGestureDetector.tsx +3 -4
- package/src/v3/detectors/VirtualDetector/VirtualDetector.tsx +5 -2
- package/src/v3/detectors/useGestureRelationsUpdater.ts +30 -0
- package/src/v3/detectors/useNativeGestureRole.ts +8 -0
- package/src/v3/detectors/useNativeGestureRole.web.ts +42 -0
- package/src/v3/detectors/utils.ts +28 -12
- package/src/v3/hooks/callbacks/useReanimatedEventHandler.ts +23 -7
- package/src/v3/hooks/gestures/fling/useFlingGesture.ts +5 -1
- package/src/v3/hooks/gestures/hover/useHoverGesture.ts +5 -1
- package/src/v3/hooks/gestures/longPress/useLongPressGesture.ts +3 -1
- package/src/v3/hooks/gestures/manual/useManualGesture.ts +5 -1
- package/src/v3/hooks/gestures/native/NativeTypes.ts +13 -1
- package/src/v3/hooks/gestures/native/useNativeGesture.ts +5 -1
- package/src/v3/hooks/gestures/pan/usePanGesture.ts +5 -1
- package/src/v3/hooks/gestures/pinch/usePinchGesture.ts +5 -1
- package/src/v3/hooks/gestures/rotation/useRotationGesture.ts +3 -1
- package/src/v3/hooks/gestures/tap/useTapGesture.ts +5 -1
- package/src/v3/hooks/useGesture.ts +4 -18
- package/src/v3/hooks/utils/configUtils.ts +18 -8
- package/src/v3/hooks/utils/eventHandlersUtils.ts +43 -32
- package/src/v3/hooks/utils/index.ts +0 -1
- package/src/v3/hooks/utils/propsWhiteList.ts +1 -0
- package/src/v3/hooks/utils/reanimatedUtils.ts +10 -10
- package/src/v3/types/ConfigTypes.ts +1 -0
- package/src/web/constants.ts +1 -0
- package/src/web/detectors/RotationGestureDetector.ts +19 -5
- package/src/web/detectors/ScaleGestureDetector.ts +9 -3
- package/src/web/handlers/GestureHandler.ts +36 -6
- package/src/web/handlers/HoverGestureHandler.ts +2 -5
- package/src/web/handlers/IGestureHandler.ts +2 -0
- package/src/web/handlers/ManualGestureHandler.ts +2 -0
- package/src/web/handlers/NativeViewGestureHandler.ts +122 -19
- package/src/web/handlers/PanGestureHandler.ts +2 -0
- package/src/web/handlers/PinchGestureHandler.ts +5 -7
- package/src/web/handlers/RotationGestureHandler.ts +5 -5
- package/src/web/interfaces.ts +7 -0
- package/src/web/tools/GestureHandlerOrchestrator.ts +11 -3
- package/src/web/tools/GestureLifecycleEvents.ts +14 -0
- package/src/web/tools/NodeManager.ts +57 -0
- package/src/web/tools/PointerEventManager.ts +12 -0
- package/lib/module/RNRenderer.js +0 -6
- package/lib/module/RNRenderer.js.map +0 -1
- package/lib/module/RNRenderer.web.js +0 -6
- package/lib/module/RNRenderer.web.js.map +0 -1
- package/lib/typescript/RNRenderer.d.ts +0 -2
- package/lib/typescript/RNRenderer.d.ts.map +0 -1
- package/lib/typescript/RNRenderer.web.d.ts +0 -4
- package/lib/typescript/RNRenderer.web.d.ts.map +0 -1
- package/src/RNRenderer.ts +0 -3
- package/src/RNRenderer.web.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","Animated","
|
|
1
|
+
{"version":3,"names":["React","Component","Animated","State","LegacyBaseButton","jsx","_jsx","TOUCHABLE_STATE","UNDETERMINED","BEGAN","MOVED_OUTSIDE","GenericTouchable","defaultProps","delayLongPress","extraButtonProps","rippleColor","exclusive","longPressDetected","pointerInside","STATE","handlePressIn","props","delayPressIn","pressInTimeout","setTimeout","moveToState","undefined","onLongPress","time","longPressTimeout","onLongPressDetected","handleMoveOutside","delayPressOut","pressOutTimeout","handleGoToUndetermined","clearTimeout","componentDidMount","reset","newState","onPressIn","onPressOut","onStateChange","onGestureEvent","nativeEvent","onMoveIn","onMoveOut","onHandlerStateChange","state","CANCELLED","FAILED","END","shouldCallOnPress","onPress","componentWillUnmount","render","hitSlop","top","left","bottom","right","coreProps","accessible","accessibilityLabel","accessibilityHint","accessibilityRole","accessibilityState","accessibilityActions","onAccessibilityAction","nativeID","onLayout","style","containerStyle","disabled","userSelect","shouldActivateOnStart","disallowInterruption","testID","touchSoundDisabled","enabled","children","View"],"sourceRoot":"../../../../src","sources":["components/touchables/GenericTouchable.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,QAAQ,OAAO;AACjC,SAASC,QAAQ,QAAQ,cAAc;AAOvC,SAASC,KAAK,QAAQ,aAAa;AACnC,SAASC,gBAAgB,QAAQ,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAG;EAC7BC,YAAY,EAAE,CAAC;EACfC,KAAK,EAAE,CAAC;EACRC,aAAa,EAAE;AACjB,CAAU;AAUV;AACA;AACA;AACA;;AAEA,eAAe,MAAMC,gBAAgB,SAASV,SAAS,CAErD;EACA,OAAOW,YAAY,GAAG;IACpBC,cAAc,EAAE,GAAG;IACnBC,gBAAgB,EAAE;MAChBC,WAAW,EAAE,aAAa;MAC1BC,SAAS,EAAE;IACb;EACF,CAAC;;EAED;;EAKA;EACAC,iBAAiB,GAAG,KAAK;EAEzBC,aAAa,GAAG,IAAI;;EAEpB;EACAC,KAAK,GAAmBZ,eAAe,CAACC,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AAA,CAACJ,QAAQ,CAAC8E,IAAI;QAAA,GAAKpB,SAAS;QAAEU,KAAK,EAAE,IAAI,CAACjD,KAAK,CAACiD,KAAM;QAAAS,QAAA,EACnD,IAAI,CAAC1D,KAAK,CAAC0D;MAAQ,CACP;IAAC,CACA,CAAC;EAEvB;AACF","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ import { attachHandlers } from './attachHandlers';
|
|
|
6
6
|
import { dropHandlers } from './dropHandlers';
|
|
7
7
|
import { needsToReattach } from './needsToReattach';
|
|
8
8
|
import { updateHandlers } from './updateHandlers';
|
|
9
|
-
import { useForceRender
|
|
9
|
+
import { useForceRender } from './utils';
|
|
10
10
|
|
|
11
11
|
// Returns a function that's responsible for updating the attached gestures
|
|
12
12
|
// If the view has changed, it will reattach the handlers to the new view
|
|
@@ -20,7 +20,6 @@ export function useDetectorUpdater(state, preparedGesture, gesturesToAttach, ges
|
|
|
20
20
|
const viewTag = findNodeHandle(state.viewRef);
|
|
21
21
|
const didUnderlyingViewChange = viewTag !== state.previousViewTag;
|
|
22
22
|
if (didUnderlyingViewChange || needsToReattach(preparedGesture, gesturesToAttach)) {
|
|
23
|
-
validateDetectorChildren(state.viewRef);
|
|
24
23
|
dropHandlers(preparedGesture);
|
|
25
24
|
attachHandlers({
|
|
26
25
|
preparedGesture,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","findNodeHandle","attachHandlers","dropHandlers","needsToReattach","updateHandlers","useForceRender","
|
|
1
|
+
{"version":3,"names":["useCallback","findNodeHandle","attachHandlers","dropHandlers","needsToReattach","updateHandlers","useForceRender","useDetectorUpdater","state","preparedGesture","gesturesToAttach","gestureConfig","webEventHandlersRef","forceRender","updateAttachedGestures","skipConfigUpdate","viewTag","viewRef","didUnderlyingViewChange","previousViewTag","forceRebuildReanimatedEvent"],"sourceRoot":"../../../../../src","sources":["handlers/gestures/GestureDetector/useDetectorUpdater.ts"],"mappings":";;AACA,SAASA,WAAW,QAAQ,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
3
3
|
import { useCallback, useRef, useState } from 'react';
|
|
4
|
-
import { Platform } from 'react-native';
|
|
5
|
-
import { RNRenderer } from '../../../RNRenderer';
|
|
6
4
|
import { isTestEnv, tagMessage } from '../../../utils';
|
|
7
5
|
import { flingGestureHandlerProps } from '../../FlingGestureHandler';
|
|
8
6
|
import { forceTouchGestureHandlerProps } from '../../ForceTouchGestureHandler';
|
|
@@ -16,6 +14,16 @@ import { BaseGesture } from '../gesture';
|
|
|
16
14
|
import { hoverGestureHandlerProps } from '../hoverGesture';
|
|
17
15
|
import { Reanimated } from '../reanimatedWrapper';
|
|
18
16
|
export const ALLOWED_PROPS = [...baseGestureHandlerWithDetectorProps, ...tapGestureHandlerProps, ...panGestureHandlerProps, ...panGestureHandlerCustomNativeProps, ...longPressGestureHandlerProps, ...forceTouchGestureHandlerProps, ...flingGestureHandlerProps, ...hoverGestureHandlerProps, ...nativeViewGestureHandlerProps];
|
|
17
|
+
|
|
18
|
+
// In some environments (e.g. `Next.js`) Reanimated Babel plugin might not be used.
|
|
19
|
+
// In that case we would wrongly suggest to add `runOnJS` to gesture configuration, even if the user doesn't use worklets at all.
|
|
20
|
+
// To prevent this, we check whether the plugin is enabled by defining a worklet and checking if the `__workletHash` property is available.
|
|
21
|
+
function emptyWorklet() {
|
|
22
|
+
'worklet';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// @ts-expect-error if `emptyWorklet` is a worklet, `__workletHash` will be available, if not then the check will return false.
|
|
26
|
+
const wasBabelPluginEnabled = emptyWorklet.__workletHash !== undefined;
|
|
19
27
|
function convertToHandlerTag(ref) {
|
|
20
28
|
if (typeof ref === 'number') {
|
|
21
29
|
return ref;
|
|
@@ -64,55 +72,10 @@ export function checkGestureCallbacksForWorklets(gesture) {
|
|
|
64
72
|
const areAllNotWorklets = !areSomeWorklets && areSomeNotWorklets;
|
|
65
73
|
// If none of the callbacks are worklets and the gesture is not explicitly marked with
|
|
66
74
|
// `.runOnJS(true)` show a warning
|
|
67
|
-
if (areAllNotWorklets && !isTestEnv()) {
|
|
75
|
+
if (areAllNotWorklets && wasBabelPluginEnabled && !isTestEnv()) {
|
|
68
76
|
console.warn(tagMessage(`None of the callbacks in the gesture are worklets. If you wish to run them on the JS thread use '.runOnJS(true)' modifier on the gesture to make this explicit. Otherwise, mark the callbacks as 'worklet' to run them on the UI thread.`));
|
|
69
77
|
}
|
|
70
78
|
}
|
|
71
|
-
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
73
|
-
export function validateDetectorChildren(ref) {
|
|
74
|
-
// Finds the first native view under the Wrap component and traverses the fiber tree upwards
|
|
75
|
-
// to check whether there is more than one native view as a pseudo-direct child of GestureDetector
|
|
76
|
-
// i.e. this is not ok:
|
|
77
|
-
// Wrap
|
|
78
|
-
// |
|
|
79
|
-
// / \
|
|
80
|
-
// / \
|
|
81
|
-
// / \
|
|
82
|
-
// / \
|
|
83
|
-
// NativeView NativeView
|
|
84
|
-
//
|
|
85
|
-
// but this is fine:
|
|
86
|
-
// Wrap
|
|
87
|
-
// |
|
|
88
|
-
// NativeView
|
|
89
|
-
// |
|
|
90
|
-
// / \
|
|
91
|
-
// / \
|
|
92
|
-
// / \
|
|
93
|
-
// / \
|
|
94
|
-
// NativeView NativeView
|
|
95
|
-
if (__DEV__ && Platform.OS !== 'web') {
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
97
|
-
const wrapType =
|
|
98
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
99
|
-
ref._reactInternals.elementType;
|
|
100
|
-
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
102
|
-
let instance = RNRenderer.findHostInstance_DEPRECATED(ref)._internalFiberInstanceHandleDEV;
|
|
103
|
-
|
|
104
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
105
|
-
while (instance && instance.elementType !== wrapType) {
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
107
|
-
if (instance.sibling) {
|
|
108
|
-
throw new Error('GestureDetector has more than one native view as its children. This can happen if you are using a custom component that renders multiple views, like React.Fragment. You should wrap content of GestureDetector with a <View> or <Animated.View>.');
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
112
|
-
instance = instance.return;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
79
|
export function useForceRender() {
|
|
117
80
|
const [renderState, setRenderState] = useState(false);
|
|
118
81
|
const forceRender = useCallback(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useRef","useState","
|
|
1
|
+
{"version":3,"names":["useCallback","useRef","useState","isTestEnv","tagMessage","flingGestureHandlerProps","forceTouchGestureHandlerProps","baseGestureHandlerWithDetectorProps","longPressGestureHandlerProps","nativeViewGestureHandlerProps","panGestureHandlerCustomNativeProps","panGestureHandlerProps","tapGestureHandlerProps","onGestureHandlerEvent","BaseGesture","hoverGestureHandlerProps","Reanimated","ALLOWED_PROPS","emptyWorklet","wasBabelPluginEnabled","__workletHash","undefined","convertToHandlerTag","ref","handlerTag","current","extractValidHandlerTags","interactionGroup","Array","from","Set","map","filter","tag","extractGestureRelations","gesture","config","requireToFail","simultaneousWith","blocksHandlers","waitFor","simultaneousHandlers","checkGestureCallbacksForWorklets","__DEV__","runOnJS","areSomeNotWorklets","handlers","isWorklet","includes","areSomeWorklets","console","error","areAllNotWorklets","warn","useForceRender","renderState","setRenderState","forceRender","useWebEventHandlers","e","nativeEvent","onGestureHandlerStateChange","onGestureHandlerTouchEvent"],"sourceRoot":"../../../../../src","sources":["handlers/gestures/GestureDetector/utils.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAErD,SAASC,SAAS,EAAEC,UAAU,QAAQ,gBAAgB;AAMtD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+C,OAAO,CAACG,IAAI,CACVjD,UAAU,CACR,0OACF,CACF,CAAC;EACH;AACF;AAEA,OAAO,SAASkD,cAAcA,CAAA,EAAG;EAC/B,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGtD,QAAQ,CAAC,KAAK,CAAC;EACrD,MAAMuD,WAAW,GAAGzD,WAAW,CAAC,MAAM;IACpCwD,cAAc,CAAC,CAACD,WAAW,CAAC;EAC9B,CAAC,EAAE,CAACA,WAAW,EAAEC,cAAc,CAAC,CAAC;EAEjC,OAAOC,WAAW;AACpB;AAEA,OAAO,SAASC,mBAAmBA,CAAA,EAAG;EACpC,OAAOzD,MAAM,CAAW;IACtBY,qBAAqB,EAAG8C,CAAc,IAAK;MACzC9C,qBAAqB,CAAC8C,CAAC,CAACC,WAAwC,CAAC;IACnE,CAAC;IACDC,2BAA2B,EAAGF,CAAc,IAAK;MAC/C9C,qBAAqB,CAAC8C,CAAC,CAACC,WAAwC,CAAC;IACnE,CAAC;IACDE,0BAA0B,EAAEA,CAAA,KAAM;MAChC;IAAA;EAEJ,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { BaseGesture } from './gesture';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated `FlingGesture` is deprecated and will be removed in the future. Please use `useFlingGesture` instead.
|
|
7
|
+
*/
|
|
4
8
|
export class FlingGesture extends BaseGesture {
|
|
5
9
|
config = {};
|
|
6
10
|
constructor() {
|
|
@@ -29,4 +33,8 @@ export class FlingGesture extends BaseGesture {
|
|
|
29
33
|
return this;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated `FlingGestureType` is deprecated and will be removed in the future. Please use `FlingGesture` instead.
|
|
39
|
+
*/
|
|
32
40
|
//# sourceMappingURL=flingGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseGesture","FlingGesture","config","constructor","handlerName","numberOfPointers","pointers","direction"],"sourceRoot":"../../../../src","sources":["handlers/gestures/flingGesture.ts"],"mappings":";;AAGA,SAASA,WAAW,QAAQ,WAAW;
|
|
1
|
+
{"version":3,"names":["BaseGesture","FlingGesture","config","constructor","handlerName","numberOfPointers","pointers","direction"],"sourceRoot":"../../../../src","sources":["handlers/gestures/flingGesture.ts"],"mappings":";;AAGA,SAASA,WAAW,QAAQ,WAAW;;AAEvC;AACA;AACA;AACA,OAAO,MAAMC,YAAY,SAASD,WAAW,CAAkC;EAC7DE,MAAM,GAA2C,CAAC,CAAC;EAEnEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,qBAAqB;EAC1C;;EAEA;AACF;AACA;AACA;EACEC,gBAAgBA,CAACC,QAAgB,EAAE;IACjC,IAAI,CAACJ,MAAM,CAACG,gBAAgB,GAAGC,QAAQ;IACvC,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,SAASA,CAACA,SAAiB,EAAE;IAC3B,IAAI,CAACL,MAAM,CAACK,SAAS,GAAGA,SAAS;IACjC,OAAO,IAAI;EACb;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { ContinousBaseGesture } from './gesture';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated
|
|
6
|
+
* @deprecated `ForceTouchGestureChangeEventPayload` is deprecated and will be removed in the future.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
function changeEventCalculator(current, previous) {
|
|
@@ -26,7 +26,7 @@ function changeEventCalculator(current, previous) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated
|
|
29
|
+
* @deprecated `ForceTouchGesture` is deprecated and will be removed in the future.
|
|
30
30
|
*/
|
|
31
31
|
export class ForceTouchGesture extends ContinousBaseGesture {
|
|
32
32
|
config = {};
|
|
@@ -71,6 +71,6 @@ export class ForceTouchGesture extends ContinousBaseGesture {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* @deprecated
|
|
74
|
+
* @deprecated `ForceTouchGestureType` is deprecated and will be removed in the future.
|
|
75
75
|
*/
|
|
76
76
|
//# sourceMappingURL=forceTouchGesture.js.map
|
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
import { isRemoteDebuggingEnabled } from '../../utils';
|
|
4
4
|
import { getNextHandlerTag } from '../getNextHandlerTag';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `GestureType` is deprecated and will be removed in the future. Please use `SingleGesture` instead.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated `GestureRef` is deprecated and will be removed in the future.
|
|
12
|
+
*/
|
|
13
|
+
|
|
6
14
|
// Allow adding a ref to a gesture handler
|
|
7
15
|
|
|
8
16
|
export const CALLBACK_TYPE = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isRemoteDebuggingEnabled","getNextHandlerTag","CALLBACK_TYPE","UNDEFINED","BEGAN","START","UPDATE","CHANGE","END","FINALIZE","TOUCHES_DOWN","TOUCHES_MOVE","TOUCHES_UP","TOUCHES_CANCEL","Gesture","nextGestureId","BaseGesture","gestureId","handlerTag","handlerName","config","handlers","isWorklet","constructor","addDependency","key","gesture","value","Array","concat","withRef","ref","callback","__workletHash","undefined","onBegin","onStart","onEnd","onFinalize","onTouchesDown","needsPointerData","onTouchesMove","onTouchesUp","onTouchesCancelled","enabled","shouldCancelWhenOutside","hitSlop","activeCursor","mouseButton","runOnJS","simultaneousWithExternalGesture","gestures","requireExternalGestureToFail","blocksExternalGesture","withTestId","id","testId","cancelsTouchesInView","initialize","current","toGestureArray","prepare","shouldUseReanimated","includes","ContinousBaseGesture","onUpdate","onChange","manualActivation"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gesture.ts"],"mappings":";;AAAA,SAASA,wBAAwB,QAAQ,aAAa;AAqBtD,SAASC,iBAAiB,QAAQ,sBAAsB;;
|
|
1
|
+
{"version":3,"names":["isRemoteDebuggingEnabled","getNextHandlerTag","CALLBACK_TYPE","UNDEFINED","BEGAN","START","UPDATE","CHANGE","END","FINALIZE","TOUCHES_DOWN","TOUCHES_MOVE","TOUCHES_UP","TOUCHES_CANCEL","Gesture","nextGestureId","BaseGesture","gestureId","handlerTag","handlerName","config","handlers","isWorklet","constructor","addDependency","key","gesture","value","Array","concat","withRef","ref","callback","__workletHash","undefined","onBegin","onStart","onEnd","onFinalize","onTouchesDown","needsPointerData","onTouchesMove","onTouchesUp","onTouchesCancelled","enabled","shouldCancelWhenOutside","hitSlop","activeCursor","mouseButton","runOnJS","simultaneousWithExternalGesture","gestures","requireExternalGestureToFail","blocksExternalGesture","withTestId","id","testId","cancelsTouchesInView","initialize","current","toGestureArray","prepare","shouldUseReanimated","includes","ContinousBaseGesture","onUpdate","onChange","manualActivation"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gesture.ts"],"mappings":";;AAAA,SAASA,wBAAwB,QAAQ,aAAa;AAqBtD,SAASC,iBAAiB,QAAQ,sBAAsB;;AAGxD;AACA;AACA;;AAcA;AACA;AACA;;AAK6D;;AA8C7D,OAAO,MAAMC,aAAa,GAAG;EAC3BC,SAAS,EAAE,CAAC;EACZC,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTC,GAAG,EAAE,CAAC;EACNC,QAAQ,EAAE,CAAC;EACXC,YAAY,EAAE,CAAC;EACfC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,CAAC;EACbC,cAAc,EAAE;AAClB,CAAU;;AAEV;AACA;;AAGA,OAAO,MAAeC,OAAO,CAAC;AAoB9B,IAAIC,aAAa,GAAG,CAAC;AACrB,OAA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;AACF;AACA;AACA;AACA;EACEmC,gBAAgBA,CAACA,gBAAyB,EAAE;IAC1C,IAAI,CAAC/C,MAAM,CAAC+C,gBAAgB,GAAGA,gBAAgB;IAC/C,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
|
@@ -8,6 +8,10 @@ function extendRelation(currentRelation, extendWith) {
|
|
|
8
8
|
return [...currentRelation, ...extendWith];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated `ComposedGesture` is deprecated and will be removed in the future. Please use `useCompetingGestures` instead.
|
|
14
|
+
*/
|
|
11
15
|
export class ComposedGesture extends Gesture {
|
|
12
16
|
gestures = [];
|
|
13
17
|
simultaneousGestures = [];
|
|
@@ -47,6 +51,10 @@ export class ComposedGesture extends Gesture {
|
|
|
47
51
|
return this.gestures.flatMap(gesture => gesture.toGestureArray());
|
|
48
52
|
}
|
|
49
53
|
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated `SimultaneousGesture` is deprecated and will be removed in the future. Please use `useSimultaneousGestures` instead.
|
|
57
|
+
*/
|
|
50
58
|
export class SimultaneousGesture extends ComposedGesture {
|
|
51
59
|
prepare() {
|
|
52
60
|
// This piece of magic works something like this:
|
|
@@ -66,6 +74,10 @@ export class SimultaneousGesture extends ComposedGesture {
|
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
76
|
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated `ExclusiveGesture` is deprecated and will be removed in the future. Please use `useExclusiveGestures` instead.
|
|
80
|
+
*/
|
|
69
81
|
export class ExclusiveGesture extends ComposedGesture {
|
|
70
82
|
prepare() {
|
|
71
83
|
// Transforms the array of gestures into array of grouped raw (not composed) gestures
|
|
@@ -80,4 +92,20 @@ export class ExclusiveGesture extends ComposedGesture {
|
|
|
80
92
|
}
|
|
81
93
|
}
|
|
82
94
|
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated `ComposedGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated `RaceGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated `SimultaneousGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated `ExclusiveGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
110
|
+
*/
|
|
83
111
|
//# sourceMappingURL=gestureComposition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseGesture","Gesture","extendRelation","currentRelation","extendWith","undefined","ComposedGesture","gestures","simultaneousGestures","requireGesturesToFail","constructor","prepareSingleGesture","gesture","newConfig","config","simultaneousWith","requireToFail","prepare","initialize","toGestureArray","flatMap","SimultaneousGesture","simultaneousArrays","map","filter","x","i","length","ExclusiveGesture","gestureArrays","concat"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureComposition.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,OAAO,QAAQ,WAAW;AAEhD,SAASC,cAAcA,CACrBC,eAAyC,EACzCC,UAAyB,EACzB;EACA,IAAID,eAAe,KAAKE,SAAS,EAAE;IACjC,OAAO,CAAC,GAAGD,UAAU,CAAC;EACxB,CAAC,MAAM;IACL,OAAO,CAAC,GAAGD,eAAe,EAAE,GAAGC,UAAU,CAAC;EAC5C;AACF;
|
|
1
|
+
{"version":3,"names":["BaseGesture","Gesture","extendRelation","currentRelation","extendWith","undefined","ComposedGesture","gestures","simultaneousGestures","requireGesturesToFail","constructor","prepareSingleGesture","gesture","newConfig","config","simultaneousWith","requireToFail","prepare","initialize","toGestureArray","flatMap","SimultaneousGesture","simultaneousArrays","map","filter","x","i","length","ExclusiveGesture","gestureArrays","concat"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureComposition.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,OAAO,QAAQ,WAAW;AAEhD,SAASC,cAAcA,CACrBC,eAAyC,EACzCC,UAAyB,EACzB;EACA,IAAID,eAAe,KAAKE,SAAS,EAAE;IACjC,OAAO,CAAC,GAAGD,UAAU,CAAC;EACxB,CAAC,MAAM;IACL,OAAO,CAAC,GAAGD,eAAe,EAAE,GAAGC,UAAU,CAAC;EAC5C;AACF;;AAEA;AACA;AACA;AACA,OAAO,MAAME,eAAe,SAASL,OAAO,CAAC;EACjCM,QAAQ,GAAc,EAAE;EACxBC,oBAAoB,GAAkB,EAAE;EACxCC,qBAAqB,GAAkB,EAAE;EAEnDC,WAAWA,CAAC,GAAGH,QAAmB,EAAE;IAClC,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;EAEUI,oBAAoBA,CAC5BC,OAAgB,EAChBJ,oBAAmC,EACnCC,qBAAoC,EACpC;IACA,IAAIG,OAAO,YAAYZ,WAAW,EAAE;MAClC,MAAMa,SAAS,GAAG;QAAE,GAAGD,OAAO,CAACE;MAAO,CAAC;;MAEvC;MACA;MACAD,SAAS,CAACE,gBAAgB,GAAGb,cAAc,CACzCW,SAAS,CAACE,gBAAgB,EAC1BP,oBACF,CAAC;MACDK,SAAS,CAACG,aAAa,GAAGd,cAAc,CACtCW,SAAS,CAACG,aAAa,EACvBP,qBACF,CAAC;MAEDG,OAAO,CAACE,MAAM,GAAGD,SAAS;IAC5B,CAAC,MAAM,IAAID,OAAO,YAAYN,eAAe,EAAE;MAC7CM,OAAO,CAACJ,oBAAoB,GAAGA,oBAAoB;MACnDI,OAAO,CAACH,qBAAqB,GAAGA,qBAAqB;MACrDG,OAAO,CAACK,OAAO,CAAC,CAAC;IACnB;EACF;EAEAA,OAAOA,CAAA,EAAG;IACR,KAAK,MAAML,OAAO,IAAI,IAAI,CAACL,QA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IAED,IAAIH,aAA4B,GAAG,EAAE;IAErC,KAAK,IAAIU,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,IAAI,CAACnB,QAAQ,CAACoB,MAAM,EAAED,CAAC,EAAE,EAAE;MAC7C,IAAI,CAACf,oBAAoB,CACvB,IAAI,CAACJ,QAAQ,CAACmB,CAAC,CAAC,EAChB,IAAI,CAAClB,oBAAoB,EACzB,IAAI,CAACC,qBAAqB,CAACqB,MAAM,CAACd,aAAa,CACjD,CAAC;;MAED;MACAA,aAAa,GAAGA,aAAa,CAACc,MAAM,CAACD,aAAa,CAACH,CAAC,CAAC,CAAC;IACxD;EACF;AACF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -13,6 +13,8 @@ import { RotationGesture } from './rotationGesture';
|
|
|
13
13
|
import { TapGesture } from './tapGesture';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
+
* @deprecated `Gesture` builder API is deprecated and will be removed in a future version of Gesture Handler. Please migrate to the new, hook-based API.
|
|
17
|
+
*
|
|
16
18
|
* `Gesture` is the object that allows you to create and compose gestures.
|
|
17
19
|
*
|
|
18
20
|
* ### Remarks
|
|
@@ -22,6 +24,8 @@ import { TapGesture } from './tapGesture';
|
|
|
22
24
|
*/
|
|
23
25
|
export const GestureObjects = {
|
|
24
26
|
/**
|
|
27
|
+
* @deprecated `Gesture.Tap()` is deprecated and will be removed in the future. Please use `useTapGesture` instead.
|
|
28
|
+
*
|
|
25
29
|
* A discrete gesture that recognizes one or many taps.
|
|
26
30
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture
|
|
27
31
|
*/
|
|
@@ -29,6 +33,8 @@ export const GestureObjects = {
|
|
|
29
33
|
return new TapGesture();
|
|
30
34
|
},
|
|
31
35
|
/**
|
|
36
|
+
* @deprecated `Gesture.Pan()` is deprecated and will be removed in the future. Please use `usePanGesture` instead.
|
|
37
|
+
*
|
|
32
38
|
* A continuous gesture that can recognize a panning (dragging) gesture and track its movement.
|
|
33
39
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture
|
|
34
40
|
*/
|
|
@@ -36,6 +42,8 @@ export const GestureObjects = {
|
|
|
36
42
|
return new PanGesture();
|
|
37
43
|
},
|
|
38
44
|
/**
|
|
45
|
+
* @deprecated `Gesture.Pinch()` is deprecated and will be removed in the future. Please use `usePinchGesture` instead.
|
|
46
|
+
*
|
|
39
47
|
* A continuous gesture that recognizes pinch gesture. It allows for tracking the distance between two fingers and use that information to scale or zoom your content.
|
|
40
48
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pinch-gesture
|
|
41
49
|
*/
|
|
@@ -43,6 +51,8 @@ export const GestureObjects = {
|
|
|
43
51
|
return new PinchGesture();
|
|
44
52
|
},
|
|
45
53
|
/**
|
|
54
|
+
* @deprecated `Gesture.Rotation()` is deprecated and will be removed in the future. Please use `useRotationGesture` instead.
|
|
55
|
+
*
|
|
46
56
|
* A continuous gesture that can recognize rotation and track its movement.
|
|
47
57
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/rotation-gesture
|
|
48
58
|
*/
|
|
@@ -50,6 +60,8 @@ export const GestureObjects = {
|
|
|
50
60
|
return new RotationGesture();
|
|
51
61
|
},
|
|
52
62
|
/**
|
|
63
|
+
* @deprecated `Gesture.Fling()` is deprecated and will be removed in the future. Please use `useFlingGesture` instead.
|
|
64
|
+
*
|
|
53
65
|
* A discrete gesture that activates when the movement is sufficiently fast.
|
|
54
66
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/fling-gesture
|
|
55
67
|
*/
|
|
@@ -57,6 +69,8 @@ export const GestureObjects = {
|
|
|
57
69
|
return new FlingGesture();
|
|
58
70
|
},
|
|
59
71
|
/**
|
|
72
|
+
* @deprecated `Gesture.LongPress()` is deprecated and will be removed in the future. Please use `useLongPressGesture` instead.
|
|
73
|
+
*
|
|
60
74
|
* A discrete gesture that activates when the corresponding view is pressed for a sufficiently long time.
|
|
61
75
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/long-press-gesture
|
|
62
76
|
*/
|
|
@@ -64,7 +78,7 @@ export const GestureObjects = {
|
|
|
64
78
|
return new LongPressGesture();
|
|
65
79
|
},
|
|
66
80
|
/**
|
|
67
|
-
* @deprecated ForceTouch
|
|
81
|
+
* @deprecated `Gesture.ForceTouch()` is deprecated and will be removed in the future.
|
|
68
82
|
*
|
|
69
83
|
* #### iOS only
|
|
70
84
|
* A continuous gesture that recognizes force of a touch. It allows for tracking pressure of touch on some iOS devices.
|
|
@@ -74,6 +88,8 @@ export const GestureObjects = {
|
|
|
74
88
|
return new ForceTouchGesture();
|
|
75
89
|
},
|
|
76
90
|
/**
|
|
91
|
+
* @deprecated `Gesture.Native()` is deprecated and will be removed in the future. Please use `useNativeGesture` instead.
|
|
92
|
+
*
|
|
77
93
|
* A gesture that allows other touch handling components to participate in RNGH's gesture system.
|
|
78
94
|
* When used, the other component should be the direct child of a `GestureDetector`.
|
|
79
95
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/native-gesture
|
|
@@ -82,6 +98,8 @@ export const GestureObjects = {
|
|
|
82
98
|
return new NativeGesture();
|
|
83
99
|
},
|
|
84
100
|
/**
|
|
101
|
+
* @deprecated `Gesture.Manual()` is deprecated and will be removed in the future. Please use `useManualGesture` instead.
|
|
102
|
+
*
|
|
85
103
|
* A plain gesture that has no specific activation criteria nor event data set.
|
|
86
104
|
* Its state has to be controlled manually using a state manager.
|
|
87
105
|
* It will not fail when all the pointers are lifted from the screen.
|
|
@@ -91,6 +109,8 @@ export const GestureObjects = {
|
|
|
91
109
|
return new ManualGesture();
|
|
92
110
|
},
|
|
93
111
|
/**
|
|
112
|
+
* @deprecated `Gesture.Hover()` is deprecated and will be removed in the future. Please use `useHoverGesture` instead.
|
|
113
|
+
*
|
|
94
114
|
* A continuous gesture that can recognize hovering above the view it's attached to.
|
|
95
115
|
* The hover effect may be activated by moving a mouse or a stylus over the view.
|
|
96
116
|
*
|
|
@@ -100,6 +120,8 @@ export const GestureObjects = {
|
|
|
100
120
|
return new HoverGesture();
|
|
101
121
|
},
|
|
102
122
|
/**
|
|
123
|
+
* @deprecated `Gesture.Race()` is deprecated and will be removed in the future. Please use `useCompetingGestures` instead.
|
|
124
|
+
*
|
|
103
125
|
* Builds a composed gesture consisting of gestures provided as parameters.
|
|
104
126
|
* The first one that becomes active cancels the rest of gestures.
|
|
105
127
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#race
|
|
@@ -108,6 +130,8 @@ export const GestureObjects = {
|
|
|
108
130
|
return new ComposedGesture(...gestures);
|
|
109
131
|
},
|
|
110
132
|
/**
|
|
133
|
+
* @deprecated `Gesture.Simultaneous()` is deprecated and will be removed in the future. Please use `useSimultaneousGestures` instead.
|
|
134
|
+
*
|
|
111
135
|
* Builds a composed gesture that allows all base gestures to run simultaneously.
|
|
112
136
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#simultaneous
|
|
113
137
|
*/
|
|
@@ -115,6 +139,8 @@ export const GestureObjects = {
|
|
|
115
139
|
return new SimultaneousGesture(...gestures);
|
|
116
140
|
},
|
|
117
141
|
/**
|
|
142
|
+
* @deprecated `Gesture.Exclusive()` is deprecated and will be removed in the future. Please use `useExclusiveGestures` instead.
|
|
143
|
+
*
|
|
118
144
|
* Builds a composed gesture where only one of the provided gestures can become active.
|
|
119
145
|
* Priority is decided through the order of gestures: the first one has higher priority
|
|
120
146
|
* than the second one, second one has higher priority than the third one, and so on.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlingGesture","ForceTouchGesture","ComposedGesture","ExclusiveGesture","SimultaneousGesture","HoverGesture","LongPressGesture","ManualGesture","NativeGesture","PanGesture","PinchGesture","RotationGesture","TapGesture","GestureObjects","Tap","Pan","Pinch","Rotation","Fling","LongPress","ForceTouch","Native","Manual","Hover","Race","gestures","Simultaneous","Exclusive"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureObjects.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,iBAAiB,QAAQ,qBAAqB;AAEvD,SACEC,eAAe,EACfC,gBAAgB,EAChBC,mBAAmB,QACd,sBAAsB;AAC7B,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG;EAC5B;AACF;AACA;AACA;EACEC,GAAG,EAAEA,CAAA,KAAM;IACT,OAAO,IAAIF,UAAU,CAAC,CAAC;EACzB,CAAC;EAED;AACF;AACA;AACA;EACEG,GAAG,EAAEA,CAAA,KAAM;IACT,OAAO,IAAIN,UAAU,CAAC,CAAC;EACzB,CAAC;EAED;AACF;AACA;AACA;EACEO,KAAK,EAAEA,CAAA,KAAM;IACX,OAAO,IAAIN,YAAY,CAAC,CAAC;EAC3B,CAAC;EAED;AACF;AACA;AACA;EACEO,QAAQ,EAAEA,CAAA,KAAM;IACd,OAAO,IAAIN,eAAe,CAAC,CAAC;EAC9B,CAAC;EAED;AACF;AACA;AACA;EACEO,KAAK,EAAEA,CAAA,KAAM;IACX,OAAO,IAAIlB,YAAY,CAAC,CAAC;EAC3B,CAAC;EAED;AACF;AACA;AACA;EACEmB,SAAS,EAAEA,CAAA,KAAM;IACf,OAAO,IAAIb,gBAAgB,CAAC,CAAC;EAC/B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEc,UAAU,EAAEA,CAAA,KAAM;IAChB,OAAO,IAAInB,iBAAiB,CAAC,CAAC;EAChC,CAAC;EAED;AACF;AACA;AACA;AACA;EACEoB,MAAM,EAAEA,CAAA,KAAM;IACZ,OAAO,IAAIb,aAAa,CAAC,CAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEc,MAAM,EAAEA,CAAA,KAAM;IACZ,OAAO,IAAIf,aAAa,CAAC,CAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEgB,KAAK,EAAEA,CAAA,KAAM;IACX,OAAO,IAAIlB,YAAY,CAAC,CAAC;EAC3B,CAAC;EAED;AACF;AACA;AACA;AACA;EACEmB,IAAI,EAAEA,CAAC,GAAGC,QAAmB,KAAK;IAChC,OAAO,IAAIvB,eAAe,CAAC,GAAGuB,QAAQ,CAAC;EACzC,CAAC;EAED;AACF;AACA;AACA;EACEC,YAAYA,CAAC,GAAGD,QAAmB,EAAE;IACnC,OAAO,IAAIrB,mBAAmB,CAAC,GAAGqB,QAAQ,CAAC;EAC7C,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEE,SAASA,CAAC,GAAGF,QAAmB,EAAE;IAChC,OAAO,IAAItB,gBAAgB,CAAC,GAAGsB,QAAQ,CAAC;EAC1C;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["FlingGesture","ForceTouchGesture","ComposedGesture","ExclusiveGesture","SimultaneousGesture","HoverGesture","LongPressGesture","ManualGesture","NativeGesture","PanGesture","PinchGesture","RotationGesture","TapGesture","GestureObjects","Tap","Pan","Pinch","Rotation","Fling","LongPress","ForceTouch","Native","Manual","Hover","Race","gestures","Simultaneous","Exclusive"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureObjects.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,iBAAiB,QAAQ,qBAAqB;AAEvD,SACEC,eAAe,EACfC,gBAAgB,EAChBC,mBAAmB,QACd,s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,CAAC,CAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEc,MAAM,EAAEA,CAAA,KAAM;IACZ,OAAO,IAAIf,aAAa,CAAC,CAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEgB,KAAK,EAAEA,CAAA,KAAM;IACX,OAAO,IAAIlB,YAAY,CAAC,CAAC;EAC3B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEmB,IAAI,EAAEA,CAAC,GAAGC,QAAmB,KAAK;IAChC,OAAO,IAAIvB,eAAe,CAAC,GAAGuB,QAAQ,CAAC;EACzC,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEC,YAAYA,CAAC,GAAGD,QAAmB,EAAE;IACnC,OAAO,IAAIrB,mBAAmB,CAAC,GAAGqB,QAAQ,CAAC;EAC7C,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEE,SAASA,CAAC,GAAGF,QAAmB,EAAE;IAChC,OAAO,IAAItB,gBAAgB,CAAC,GAAGsB,QAAQ,CAAC;EAC1C;AACF,CAAC","ignoreList":[]}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { State } from '../../State';
|
|
4
4
|
import { tagMessage } from '../../utils';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `LegacyGestureStateManagerType` is deprecated and will be removed in the future. Please use the new, hook-based API instead.
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
const wrappedSetGestureState = (handlerTag, state) => {
|
|
6
11
|
'worklet';
|
|
7
12
|
|
|
@@ -40,6 +45,10 @@ function create(handlerTag) {
|
|
|
40
45
|
}
|
|
41
46
|
};
|
|
42
47
|
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated `LegacyGestureStateManager` is deprecated and will be removed in the future. Please use the new, hook-based API instead.
|
|
51
|
+
*/
|
|
43
52
|
export const GestureStateManager = {
|
|
44
53
|
create
|
|
45
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["State","tagMessage","wrappedSetGestureState","handlerTag","state","globalThis","_setGestureStateSync","_setGestureStateAsync","Error","create","begin","BEGAN","activate","ACTIVE","fail","FAILED","end","END","GestureStateManager"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureStateManager.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,aAAa;AACnC,SAASC,UAAU,QAAQ,aAAa;
|
|
1
|
+
{"version":3,"names":["State","tagMessage","wrappedSetGestureState","handlerTag","state","globalThis","_setGestureStateSync","_setGestureStateAsync","Error","create","begin","BEGAN","activate","ACTIVE","fail","FAILED","end","END","GestureStateManager"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureStateManager.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,aAAa;AACnC,SAASC,UAAU,QAAQ,aAAa;;AAExC;AACA;AACA;;AAUA,MAAMC,sBAAsB,GAAGA,CAACC,UAAkB,EAAEC,KAAY,KAAK;EACnE,SAAS;;EAET,IAAIC,UAAU,CAACC,oBAAoB,EAAE;IACnCD,UAAU,CAACC,oBAAoB,CAACH,UAAU,EAAEC,KAAK,CAAC;EACpD,CAAC,MAAM,IAAIC,UAAU,CAACE,qBAAqB,EAAE;IAC3CF,UAAU,CAACE,qBAAqB,CAACJ,UAAU,EAAEC,KAAK,CAAC;EACrD,CAAC,MAAM;IACL,MAAM,IAAII,KAAK,CAACP,UAAU,CAAC,6BAA6B,CAAC,CAAC;EAC5D;AACF,CAAC;AAED,SAASQ,MAAMA,CAACN,UAAkB,EAA2B;EAC3D,SAAS;;EACT,OAAO;IACLA,UAAU;IAEVO,KAAK,EAAEA,CAAA,KAAM;MACX,SAAS;;MACTR,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACW,KAAK,CAAC;IACjD,CAAC;IAEDC,QAAQ,EAAEA,CAAA,KAAM;MACd,SAAS;;MACTV,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACa,MAAM,CAAC;IAClD,CAAC;IAEDC,IAAI,EAAEA,CAAA,KAAM;MACV,SAAS;;MACTZ,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACe,MAAM,CAAC;IAClD,CAAC;IAEDC,GAAG,EAAEA,CAAA,KAAM;MACT,SAAS;;MACTd,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACiB,GAAG,CAAC;IAC/C;EACF,CAAC;AACH;;AAEA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG;EACjCT;AACF,CAAC","ignoreList":[]}
|
|
@@ -28,6 +28,10 @@ function changeEventCalculator(current, previous) {
|
|
|
28
28
|
...changePayload
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated `HoverGesture` is deprecated and will be removed in the future. Please use `useHoverGesture` instead.
|
|
34
|
+
*/
|
|
31
35
|
export class HoverGesture extends ContinousBaseGesture {
|
|
32
36
|
config = {};
|
|
33
37
|
constructor() {
|
|
@@ -49,4 +53,8 @@ export class HoverGesture extends ContinousBaseGesture {
|
|
|
49
53
|
return super.onChange(callback);
|
|
50
54
|
}
|
|
51
55
|
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated `HoverGestureType` is deprecated and will be removed in the future. Please use `HoverGesture` instead.
|
|
59
|
+
*/
|
|
52
60
|
//# sourceMappingURL=hoverGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ContinousBaseGesture","HoverEffect","hoverGestureHandlerProps","changeEventCalculator","current","previous","changePayload","undefined","changeX","x","changeY","y","HoverGesture","config","constructor","handlerName","effect","hoverEffect","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/hoverGesture.ts"],"mappings":";;AAGA,SAASA,oBAAoB,QAAQ,WAAW;AAOhD,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAUvB,OAAO,MAAMC,wBAAwB,GAAG,CAAC,aAAa,CAAU;AAEhE,SAASC,qBAAqBA,CAC5BC,OAA4D,EAC5DC,QAA8D,EAC9D;EACA,SAAS;;EACT,IAAIC,aAA6C;EACjD,IAAID,QAAQ,KAAKE,SAAS,EAAE;IAC1BD,aAAa,GAAG;MACdE,OAAO,EAAEJ,OAAO,CAACK,CAAC;MAClBC,OAAO,EAAEN,OAAO,CAACO;IACnB,CAAC;EACH,CAAC,MAAM;IACLL,aAAa,GAAG;MACdE,OAAO,EAAEJ,OAAO,CAACK,CAAC,GAAGJ,QAAQ,CAACI,CAAC;MAC/BC,OAAO,EAAEN,OAAO,CAACO,CAAC,GAAGN,QAAQ,CAACM;IAChC,CAAC;EACH;EAEA,OAAO;IAAE,GAAGP,OAAO;IAAE,GAAGE;EAAc,CAAC;AACzC;
|
|
1
|
+
{"version":3,"names":["ContinousBaseGesture","HoverEffect","hoverGestureHandlerProps","changeEventCalculator","current","previous","changePayload","undefined","changeX","x","changeY","y","HoverGesture","config","constructor","handlerName","effect","hoverEffect","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/hoverGesture.ts"],"mappings":";;AAGA,SAASA,oBAAoB,QAAQ,WAAW;AAOhD,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAUvB,OAAO,MAAMC,wBAAwB,GAAG,CAAC,aAAa,CAAU;AAEhE,SAASC,qBAAqBA,CAC5BC,OAA4D,EAC5DC,QAA8D,EAC9D;EACA,SAAS;;EACT,IAAIC,aAA6C;EACjD,IAAID,QAAQ,KAAKE,SAAS,EAAE;IAC1BD,aAAa,GAAG;MACdE,OAAO,EAAEJ,OAAO,CAACK,CAAC;MAClBC,OAAO,EAAEN,OAAO,CAACO;IACnB,CAAC;EACH,CAAC,MAAM;IACLL,aAAa,GAAG;MACdE,OAAO,EAAEJ,OAAO,CAACK,CAAC,GAAGJ,QAAQ,CAACI,CAAC;MAC/BC,OAAO,EAAEN,OAAO,CAACO,CAAC,GAAGN,QAAQ,CAACM;IAChC,CAAC;EACH;EAEA,OAAO;IAAE,GAAGP,OAAO;IAAE,GAAGE;EAAc,CAAC;AACzC;;AAEA;AACA;AACA;AACA,OAAO,MAAMM,YAAY,SAASZ,oBAAoB,CAGpD;EACgBa,MAAM,GAA2C,CAAC,CAAC;EAEnEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,qBAAqB;EAC1C;;EAEA;AACF;AACA;AACA;EACEC,MAAMA,CAACA,MAAmB,EAAE;IAC1B,IAAI,CAACH,MAAM,CAACI,WAAW,GAAGD,MAAM;IAChC,OAAO,IAAI;EACb;EAESE,QAAQA,CACfC,QAIS,EACT;IACA;IACA,IAAI,CAACC,QAAQ,CAACjB,qBAAqB,GAAGA,qBAAqB;IAC3D,OAAO,KAAK,CAACe,QAAQ,CAACC,QAAQ,CAAC;EACjC;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { BaseGesture } from './gesture';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated `LongPressGesture` is deprecated and will be removed in the future. Please use `useLongPressGesture` instead.
|
|
7
|
+
*/
|
|
4
8
|
export class LongPressGesture extends BaseGesture {
|
|
5
9
|
config = {};
|
|
6
10
|
constructor() {
|
|
@@ -38,4 +42,8 @@ export class LongPressGesture extends BaseGesture {
|
|
|
38
42
|
return this;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated `LongPressGestureType` is deprecated and will be removed in the future. Please use `LongPressGesture` instead.
|
|
48
|
+
*/
|
|
41
49
|
//# sourceMappingURL=longPressGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseGesture","LongPressGesture","config","constructor","handlerName","shouldCancelWhenOutside","minDuration","duration","minDurationMs","maxDistance","distance","maxDist","numberOfPointers","pointers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/longPressGesture.ts"],"mappings":";;AAGA,SAASA,WAAW,QAAQ,WAAW;
|
|
1
|
+
{"version":3,"names":["BaseGesture","LongPressGesture","config","constructor","handlerName","shouldCancelWhenOutside","minDuration","duration","minDurationMs","maxDistance","distance","maxDist","numberOfPointers","pointers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/longPressGesture.ts"],"mappings":";;AAGA,SAASA,WAAW,QAAQ,WAAW;;AAEvC;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,SAASD,WAAW,CAAsC;EACrEE,MAAM,GAA+C,CAAC,CAAC;EAEvEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,yBAAyB;IAC5C,IAAI,CAACC,uBAAuB,CAAC,IAAI,CAAC;EACpC;;EAEA;AACF;AACA;AACA;AACA;EACEC,WAAWA,CAACC,QAAgB,EAAE;IAC5B,IAAI,CAACL,MAAM,CAACM,aAAa,GAAGD,QAAQ;IACpC,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;EACEE,WAAWA,CAACC,QAAgB,EAAE;IAC5B,IAAI,CAACR,MAAM,CAACS,OAAO,GAAGD,QAAQ;IAC9B,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;EACEE,gBAAgBA,CAACC,QAAgB,EAAE;IACjC,IAAI,CAACX,MAAM,CAACU,gBAAgB,GAAGC,QAAQ;IACvC,OAAO,IAAI;EACb;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -6,6 +6,10 @@ function changeEventCalculator(current, _previous) {
|
|
|
6
6
|
|
|
7
7
|
return current;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated `ManualGesture` is deprecated and will be removed in the future. Please use `useManualGesture` instead.
|
|
12
|
+
*/
|
|
9
13
|
export class ManualGesture extends ContinousBaseGesture {
|
|
10
14
|
constructor() {
|
|
11
15
|
super();
|
|
@@ -17,4 +21,8 @@ export class ManualGesture extends ContinousBaseGesture {
|
|
|
17
21
|
return super.onChange(callback);
|
|
18
22
|
}
|
|
19
23
|
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated `ManualGestureType` is deprecated and will be removed in the future. Please use `ManualGesture` instead.
|
|
27
|
+
*/
|
|
20
28
|
//# sourceMappingURL=manualGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ContinousBaseGesture","changeEventCalculator","current","_previous","ManualGesture","constructor","handlerName","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/manualGesture.ts"],"mappings":";;AACA,SAASA,oBAAoB,QAAQ,WAAW;AAEhD,SAASC,qBAAqBA,CAC5BC,OAAkD,EAClDC,SAAqD,EACrD;EACA,SAAS;;EACT,OAAOD,OAAO;AAChB;
|
|
1
|
+
{"version":3,"names":["ContinousBaseGesture","changeEventCalculator","current","_previous","ManualGesture","constructor","handlerName","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/manualGesture.ts"],"mappings":";;AACA,SAASA,oBAAoB,QAAQ,WAAW;AAEhD,SAASC,qBAAqBA,CAC5BC,OAAkD,EAClDC,SAAqD,EACrD;EACA,SAAS;;EACT,OAAOD,OAAO;AAChB;;AAEA;AACA;AACA;AACA,OAAO,MAAME,aAAa,SAASJ,oBAAoB,CAGrD;EACAK,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,sBAAsB;EAC3C;EAESC,QAAQA,CACfC,QAAoE,EACpE;IACA;IACA,IAAI,CAACC,QAAQ,CAACR,qBAAqB,GAAGA,qBAAqB;IAC3D,OAAO,KAAK,CAACM,QAAQ,CAACC,QAAQ,CAAC;EACjC;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|