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
|
@@ -3,18 +3,30 @@
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
4
4
|
export default class NodeManager {
|
|
5
5
|
static gestures = {};
|
|
6
|
+
static observers = new Map();
|
|
6
7
|
static getHandler(tag) {
|
|
7
8
|
if (tag in this.gestures) {
|
|
8
9
|
return this.gestures[tag];
|
|
9
10
|
}
|
|
10
11
|
throw new Error(`No handler for tag ${tag}`);
|
|
11
12
|
}
|
|
13
|
+
static hasHandler(tag) {
|
|
14
|
+
return tag in this.gestures;
|
|
15
|
+
}
|
|
12
16
|
static createGestureHandler(handlerTag, handler) {
|
|
13
17
|
if (handlerTag in this.gestures) {
|
|
14
18
|
throw new Error(`Handler with tag ${handlerTag} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);
|
|
15
19
|
}
|
|
16
20
|
this.gestures[handlerTag] = handler;
|
|
17
21
|
this.gestures[handlerTag].handlerTag = handlerTag;
|
|
22
|
+
const pending = this.observers.get(handlerTag);
|
|
23
|
+
if (pending) {
|
|
24
|
+
// Snapshot before iterating — callbacks may call back into observeHandler / cancelObservation
|
|
25
|
+
// and mutate the underlying map.
|
|
26
|
+
for (const callback of Array.from(pending.values())) {
|
|
27
|
+
callback(handler);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
18
30
|
}
|
|
19
31
|
static dropGestureHandler(handlerTag) {
|
|
20
32
|
if (!(handlerTag in this.gestures)) {
|
|
@@ -31,6 +43,38 @@ export default class NodeManager {
|
|
|
31
43
|
}
|
|
32
44
|
this.gestures[handlerTag].detach();
|
|
33
45
|
}
|
|
46
|
+
|
|
47
|
+
// Invokes `callback` every time a handler with `tag` is created and, if the handler already exists,
|
|
48
|
+
// immediately before returning. The observation persists until explicitly cancelled: the registry
|
|
49
|
+
// holds both `owner` and `callback` strongly, so callers MUST call `cancelObservation` or
|
|
50
|
+
// `cancelAllObservationsForOwner` when the owner is going away (typically in effect cleanup) to
|
|
51
|
+
// avoid leaking. Observing the same tag twice with the same `owner` replaces the previous callback.
|
|
52
|
+
static observeHandler(tag, owner, callback) {
|
|
53
|
+
let table = this.observers.get(tag);
|
|
54
|
+
if (!table) {
|
|
55
|
+
table = new Map();
|
|
56
|
+
this.observers.set(tag, table);
|
|
57
|
+
}
|
|
58
|
+
table.set(owner, callback);
|
|
59
|
+
if (tag in this.gestures) {
|
|
60
|
+
callback(this.gestures[tag]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
static cancelObservation(tag, owner) {
|
|
64
|
+
const table = this.observers.get(tag);
|
|
65
|
+
if (!table) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
table.delete(owner);
|
|
69
|
+
if (table.size === 0) {
|
|
70
|
+
this.observers.delete(tag);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
static cancelAllObservationsForOwner(owner) {
|
|
74
|
+
for (const tag of this.observers.keys()) {
|
|
75
|
+
this.cancelObservation(tag, owner);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
34
78
|
static get nodes() {
|
|
35
79
|
return {
|
|
36
80
|
...this.gestures
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NodeManager","gestures","getHandler","tag","Error","createGestureHandler","handlerTag","handler","dropGestureHandler","onDestroy","detachGestureHandler","detach","nodes"],"sourceRoot":"../../../../src","sources":["web/tools/NodeManager.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["NodeManager","gestures","observers","Map","getHandler","tag","Error","hasHandler","createGestureHandler","handlerTag","handler","pending","get","callback","Array","from","values","dropGestureHandler","onDestroy","detachGestureHandler","detach","observeHandler","owner","table","set","cancelObservation","delete","size","cancelAllObservationsForOwner","keys","nodes"],"sourceRoot":"../../../../src","sources":["web/tools/NodeManager.ts"],"mappings":";;AAMA;AACA,eAAe,MAAeA,WAAW,CAAC;EACxC,OAAeC,QAAQ,GAGnB,CAAC,CAAC;EAEN,OAAeC,SAAS,GACtB,IAAIC,GAAG,CAAC,CAAC;EAEX,OAAcC,UAAUA,CAACC,GAAW,EAAmB;IACrD,IAAIA,GAAG,IAAI,IAAI,CAACJ,QAAQ,EAAE;MACxB,OAAO,IAAI,CAACA,QAAQ,CAACI,GAAG,CAAC;IAC3B;IAEA,MAA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B,EACxB;IACN,IAAIU,KAAK,GAAG,IAAI,CAACrB,SAAS,CAACU,GAAG,CAACP,GAAG,CAAC;IACnC,IAAI,CAACkB,KAAK,EAAE;MACVA,KAAK,GAAG,IAAIpB,GAAG,CAAC,CAAC;MACjB,IAAI,CAACD,SAAS,CAACsB,GAAG,CAACnB,GAAG,EAAEkB,KAAK,CAAC;IAChC;IACAA,KAAK,CAACC,GAAG,CAACF,KAAK,EAAET,QAAQ,CAAC;IAE1B,IAAIR,GAAG,IAAI,IAAI,CAACJ,QAAQ,EAAE;MACxBY,QAAQ,CAAC,IAAI,CAACZ,QAAQ,CAACI,GAAG,CAAoB,CAAC;IACjD;EACF;EAEA,OAAcoB,iBAAiBA,CAACpB,GAAW,EAAEiB,KAAa,EAAQ;IAChE,MAAMC,KAAK,GAAG,IAAI,CAACrB,SAAS,CAACU,GAAG,CAACP,GAAG,CAAC;IACrC,IAAI,CAACkB,KAAK,EAAE;MACV;IACF;IACAA,KAAK,CAACG,MAAM,CAACJ,KAAK,CAAC;IACnB,IAAIC,KAAK,CAACI,IAAI,KAAK,CAAC,EAAE;MACpB,IAAI,CAACzB,SAAS,CAACwB,MAAM,CAACrB,GAAG,CAAC;IAC5B;EACF;EAEA,OAAcuB,6BAA6BA,CAACN,KAAa,EAAQ;IAC/D,KAAK,MAAMjB,GAAG,IAAI,IAAI,CAACH,SAAS,CAAC2B,IAAI,CAAC,CAAC,EAAE;MACvC,IAAI,CAACJ,iBAAiB,CAACpB,GAAG,EAAEiB,KAAK,CAAC;IACpC;EACF;EAEA,WAAkBQ,KAAKA,CAAA,EAAG;IACxB,OAAO;MAAE,GAAG,IAAI,CAAC7B;IAAS,CAAC;EAC7B;AACF","ignoreList":[]}
|
|
@@ -119,6 +119,15 @@ export default class PointerEventManager extends EventManager {
|
|
|
119
119
|
pointerLeaveCallback = event => {
|
|
120
120
|
const adaptedEvent = this.mapEvent(event, EventTypes.LEAVE);
|
|
121
121
|
this.onPointerMoveOut(adaptedEvent);
|
|
122
|
+
|
|
123
|
+
// When the view is not capturing the pointer (e.g. when `role="button"`),
|
|
124
|
+
// `pointermove` stops firing once the pointer leaves the view's bounds, so
|
|
125
|
+
// the out-of-bounds detection in `pointerMoveCallback` never runs. Fall back
|
|
126
|
+
// to the DOM `pointerleave` event for any tracked, in-bounds pointer.
|
|
127
|
+
if (this.trackedPointers.has(event.pointerId) && this.pointersInBounds.indexOf(event.pointerId) >= 0) {
|
|
128
|
+
this.onPointerLeave(adaptedEvent);
|
|
129
|
+
this.markAsOutOfBounds(event.pointerId);
|
|
130
|
+
}
|
|
122
131
|
};
|
|
123
132
|
lostPointerCaptureCallback = event => {
|
|
124
133
|
const adaptedEvent = this.mapEvent(event, EventTypes.CANCEL);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PointerType","EventTypes","calculateViewScale","getEffectiveBoundingRect","isPointerInBounds","PointerTypeMapping","tryExtractStylusData","EventManager","POINTER_CAPTURE_EXCLUDE_LIST","Set","PointerEventManager","trackedPointers","constructor","view","shouldSendHoverEvents","lastPosition","x","Infinity","y","pointerDownCallback","event","clientX","clientY","adaptedEvent","mapEvent","DOWN","target","has","tagName","getAttribute","setPointerCapture","pointerId","markAsInBounds","add","activePointersCounter","eventType","ADDITIONAL_POINTER_DOWN","onPointerAdd","onPointerDown","pointerUpCallback","UP","releasePointerCapture","markAsOutOfBounds","delete","ADDITIONAL_POINTER_UP","onPointerRemove","onPointerUp","pointerMoveCallback","MOVE","hasPointerCapture","inBounds","pointerIndex","pointersInBounds","indexOf","ENTER","onPointerEnter","onPointerMove","LEAVE","onPointerLeave","onPointerOutOfBounds","pointerCancelCallback","CANCEL","onPointerCancel","clear","pointerEnterCallback","onPointerMoveOver","pointerLeaveCallback","onPointerMoveOut","lostPointerCaptureCallback","registerListeners","addEventListener","unregisterListeners","removeEventListener","rect","scaleX","scaleY","offsetX","left","offsetY","top","pointerType","get","OTHER","button","buttons","time","timeStamp","stylusData","resetManager"],"sourceRoot":"../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B,iBAAiB,CAACnB,YAAY,CAACQ,SAAS,CAAC;MAChD,CAAC,MAAM;QACL,IAAI,CAAC4B,oBAAoB,CAACpC,YAAY,CAAC;MACzC;IACF;IAEA,IAAI,CAACR,YAAY,CAACC,CAAC,GAAGI,KAAK,CAACJ,CAAC;IAC7B,IAAI,CAACD,YAAY,CAACG,CAAC,GAAGE,KAAK,CAACF,CAAC;EAC/B,CAAC;EAEO0C,qBAAqB,GAAIxC,KAAmB,IAAK;IACvD,MAAMG,YAA0B,GAAG,IAAI,CAACC,QAAQ,CAACJ,KAAK,EAAEnB,UAAU,CAAC4D,MAAM,CAAC;IAE1E,IAAI,CAACC,eAAe,CAACvC,YAAY,CAAC;IAClC,IAAI,CAACmB,iBAAiB,CAACnB,YAAY,CAACQ,SAAS,CAAC;IAC9C,IAAI,CAACG,qBAAqB,GAAG,CAAC;IAC9B,IAAI,CAACvB,eAAe,CAACoD,KAAK,CAAC,CAAC;EAC9B,CAAC;EAEOC,oBAAoB,GAAI5C,KAAmB,IAAK;IACtD,MAAMG,YAA0B,GAAG,IAAI,CAACC,QAAQ,CAACJ,KAAK,EAAEnB,UAAU,CAACqD,KAAK,CAAC;IAEzE,IAAI,CAACW,iBAAiB,CAAC1C,YAAY,CAAC;EACtC,CAAC;EAEO2C,oBAAoB,GAAI9C,KAAmB,IAAK;IACtD,MAAMG,YAA0B,GAAG,IAAI,CAACC,QAAQ,CAACJ,KAAK,EAAEnB,UAAU,CAACwD,KAAK,CAAC;IAEzE,IAAI,CAACU,gBAAgB,CAAC5C,YAAY,CAAC;
|
|
1
|
+
{"version":3,"names":["PointerType","EventTypes","calculateViewScale","getEffectiveBoundingRect","isPointerInBounds","PointerTypeMapping","tryExtractStylusData","EventManager","POINTER_CAPTURE_EXCLUDE_LIST","Set","PointerEventManager","trackedPointers","constructor","view","shouldSendHoverEvents","lastPosition","x","Infinity","y","pointerDownCallback","event","clientX","clientY","adaptedEvent","mapEvent","DOWN","target","has","tagName","getAttribute","setPointerCapture","pointerId","markAsInBounds","add","activePointersCounter","eventType","ADDITIONAL_POINTER_DOWN","onPointerAdd","onPointerDown","pointerUpCallback","UP","releasePointerCapture","markAsOutOfBounds","delete","ADDITIONAL_POINTER_UP","onPointerRemove","onPointerUp","pointerMoveCallback","MOVE","hasPointerCapture","inBounds","pointerIndex","pointersInBounds","indexOf","ENTER","onPointerEnter","onPointerMove","LEAVE","onPointerLeave","onPointerOutOfBounds","pointerCancelCallback","CANCEL","onPointerCancel","clear","pointerEnterCallback","onPointerMoveOver","pointerLeaveCallback","onPointerMoveOut","lostPointerCaptureCallback","registerListeners","addEventListener","unregisterListeners","removeEventListener","rect","scaleX","scaleY","offsetX","left","offsetY","top","pointerType","get","OTHER","button","buttons","time","timeStamp","stylusData","resetManager"],"sourceRoot":"../../../../src","sources":["web/tools/PointerEventManager.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,mBAAmB;AAE/C,SAASC,UAAU,QAAQ,eAAe;AAC1C,SACEC,kBAAkB,EAClBC,wBAAwB,EACxBC,iBAAiB,EACjBC,kBAAkB,EAClBC,oBAAoB,QACf,UAAU;AACjB,OAAOC,YAAY,MAAM,gBAAgB;AAEzC,MAAMC,4BAA4B,GAAG,IAAIC,GAAG,CAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAEzE,eAAe,MAAMC,mBAAmB,SAASH,YAAY,CAAc;EACjEI,eAAe,GAAG,IAAIF,GAAG,CAAS,CAAC;EAI3CG,WAAWA,CAACC,IAAiB,EAAEC,qBAA8B,EAAE;IAC7D,KAAK,CAACD,IAAI,CAAC;IAEX,IAAI,CAACE,YAAY,GAAG;MAClBC,CAAC,EAAE,CAACC,QAAQ;MACZC,CAAC,EAAE,CAACD;IACN,CAAC;IAED,IAAI,CAACH,qBAAqB,GAAGA,qBAAqB;EACpD;EAEQK,mBAAmB,GAAIC,KAAmB,IAAK;IACrD,IAAI,CAAChB,iBAAiB,CAAC,IAAI,CAACS,IAAI,EAAE;MAAEG,CA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EAAEI,KAAK,CAACC,OAAO;MAChBH,CAAC,EAAEE,KAAK,CAACE,OAAO;MAChBsD,OAAO,EAAE,CAACxD,KAAK,CAACC,OAAO,GAAGoD,IAAI,CAACI,IAAI,IAAIH,MAAM;MAC7CI,OAAO,EAAE,CAAC1D,KAAK,CAACE,OAAO,GAAGmD,IAAI,CAACM,GAAG,IAAIJ,MAAM;MAC5C5C,SAAS,EAAEX,KAAK,CAACW,SAAS;MAC1BI,SAAS,EAAEA,SAAS;MACpB6C,WAAW,EACT3E,kBAAkB,CAAC4E,GAAG,CAAC7D,KAAK,CAAC4D,WAAW,CAAC,IAAIhF,WAAW,CAACkF,KAAK;MAChEC,MAAM,EAAE/D,KAAK,CAACgE,OAAO;MACrBC,IAAI,EAAEjE,KAAK,CAACkE,SAAS;MACrBC,UAAU,EAAEjF,oBAAoB,CAACc,KAAK;IACxC,CAAC;EACH;EAEgBoE,YAAYA,CAAA,EAAS;IACnC,KAAK,CAACA,YAAY,CAAC,CAAC;IACpB,IAAI,CAAC7E,eAAe,CAACoD,KAAK,CAAC,CAAC;EAC9B;AACF","ignoreList":[]}
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
dropGestureHandler(handlerTag: number): void;
|
|
14
14
|
configureRelations(handlerTag: number, relations: GestureRelations): void;
|
|
15
15
|
flushOperations(): void;
|
|
16
|
-
|
|
16
|
+
installUIRuntimeBindings(): boolean;
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|
|
19
19
|
//# sourceMappingURL=RNGestureHandlerModule.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNGestureHandlerModule.web.d.ts","sourceRoot":"","sources":["../../src/RNGestureHandlerModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;;yBAalC,CAAC,eACP,MAAM,OAAO,QAAQ,cACtB,MAAM,UACV,CAAC;qCAgBG,MAAM,WAET,GAAG,cACA,UAAU,YACZ,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;qCAiBJ,MAAM;wCAQH,MAAM,aAAa,MAAM;2CAGtB,MAAM,aAAa,OAAO,CAAC,MAAM,CAAC;sCAGvC,MAAM;mCAGT,MAAM;mCAQN,MAAM,aAAa,gBAAgB
|
|
1
|
+
{"version":3,"file":"RNGestureHandlerModule.web.d.ts","sourceRoot":"","sources":["../../src/RNGestureHandlerModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;;yBAalC,CAAC,eACP,MAAM,OAAO,QAAQ,cACtB,MAAM,UACV,CAAC;qCAgBG,MAAM,WAET,GAAG,cACA,UAAU,YACZ,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;qCAiBJ,MAAM;wCAQH,MAAM,aAAa,MAAM;2CAGtB,MAAM,aAAa,OAAO,CAAC,MAAM,CAAC;sCAGvC,MAAM;mCAGT,MAAM;mCAQN,MAAM,aAAa,gBAAgB;;;;AAlEpE,wBAiFE"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { LegacyBaseButtonProps, LegacyBorderlessButtonProps, LegacyRawButtonProps, LegacyRectButtonProps } from './GestureButtonsProps';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { type ButtonProps } from './GestureHandlerButton';
|
|
4
|
+
declare const LegacyRawButtonInner: {
|
|
5
|
+
(props: LegacyRawButtonProps & {
|
|
6
|
+
needsOffscreenAlphaCompositing?: boolean;
|
|
7
|
+
} & import("..").NativeViewGestureHandlerProps & {
|
|
8
8
|
ref?: React.Ref<React.ComponentType<any> | null> | undefined;
|
|
9
9
|
}): React.JSX.Element;
|
|
10
10
|
displayName: any;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use `RawButton` instead
|
|
14
|
+
*/
|
|
15
|
+
export declare const LegacyRawButton: (props: Omit<React.ComponentProps<typeof LegacyRawButtonInner>, "needsOffscreenAlphaCompositing">) => React.JSX.Element;
|
|
12
16
|
/**
|
|
13
17
|
* @deprecated use `BaseButton` instead
|
|
14
18
|
*/
|
|
@@ -27,5 +31,9 @@ export declare const LegacyRectButton: ({ ref, ...props }: Omit<LegacyRectButton
|
|
|
27
31
|
export declare const LegacyBorderlessButton: ({ ref, ...props }: Omit<LegacyBorderlessButtonProps, "innerRef"> & {
|
|
28
32
|
ref?: React.Ref<React.ComponentType<any>> | undefined;
|
|
29
33
|
}) => React.JSX.Element;
|
|
30
|
-
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated use `PureNativeButton` instead
|
|
36
|
+
*/
|
|
37
|
+
export declare const LegacyPureNativeButton: (props: Omit<ButtonProps, "needsOffscreenAlphaCompositing">) => React.JSX.Element;
|
|
38
|
+
export {};
|
|
31
39
|
//# sourceMappingURL=GestureButtons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureButtons.d.ts","sourceRoot":"","sources":["../../../src/components/GestureButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAGV,qBAAqB,EACrB,2BAA2B,EAC3B,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C;AAE1D;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,IAAI,CAAC,WAAW,EAAE,gCAAgC,CAAC,sBACW,CAAC"}
|
|
@@ -42,17 +42,28 @@ export interface ButtonProps extends ViewProps, AccessibilityProps {
|
|
|
42
42
|
*/
|
|
43
43
|
touchSoundDisabled?: boolean | undefined;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* to any negative value).
|
|
45
|
+
* Minimum duration (in milliseconds) of the press-in animation on a
|
|
46
|
+
* quick tap. Defaults to 50ms.
|
|
48
47
|
*/
|
|
49
|
-
|
|
48
|
+
tapAnimationInDuration?: number | undefined;
|
|
50
49
|
/**
|
|
51
|
-
* Minimum duration (in milliseconds)
|
|
52
|
-
*
|
|
53
|
-
* state is visible on quick taps. Defaults to 100ms.
|
|
50
|
+
* Minimum duration (in milliseconds) of the press-out animation on a
|
|
51
|
+
* quick tap. Defaults to 100ms.
|
|
54
52
|
*/
|
|
55
|
-
|
|
53
|
+
tapAnimationOutDuration?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Threshold (in milliseconds) at which the press-out animation
|
|
56
|
+
* switches from the tap-out timing to `longPressAnimationOutDuration`.
|
|
57
|
+
* Set to any negative value to disable the switch.
|
|
58
|
+
*/
|
|
59
|
+
longPressDuration?: number | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Duration of the press-out animation, in milliseconds, when the
|
|
62
|
+
* button is released after being held past `longPressDuration`.
|
|
63
|
+
* Defaults to `tapAnimationOutDuration` when not set (or set to any
|
|
64
|
+
* negative value).
|
|
65
|
+
*/
|
|
66
|
+
longPressAnimationOutDuration?: number | undefined;
|
|
56
67
|
/**
|
|
57
68
|
* Opacity applied to the button when it is pressed.
|
|
58
69
|
*/
|
|
@@ -65,6 +76,39 @@ export interface ButtonProps extends ViewProps, AccessibilityProps {
|
|
|
65
76
|
* Opacity applied to the underlay when the button is pressed.
|
|
66
77
|
*/
|
|
67
78
|
activeUnderlayOpacity?: number | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Web only.
|
|
81
|
+
*
|
|
82
|
+
* Opacity applied to the button when it is hovered. Defaults to
|
|
83
|
+
* `defaultOpacity` when not set.
|
|
84
|
+
*/
|
|
85
|
+
hoverOpacity?: number | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Web only.
|
|
88
|
+
*
|
|
89
|
+
* Scale applied to the button when it is hovered. Defaults to
|
|
90
|
+
* `defaultScale` when not set.
|
|
91
|
+
*/
|
|
92
|
+
hoverScale?: number | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Web only.
|
|
95
|
+
*
|
|
96
|
+
* Opacity applied to the underlay when the button is hovered. Defaults
|
|
97
|
+
* to `defaultUnderlayOpacity` when not set.
|
|
98
|
+
*/
|
|
99
|
+
hoverUnderlayOpacity?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Web only.
|
|
102
|
+
*
|
|
103
|
+
* Duration of the hover-in animation, in milliseconds. Defaults to 50ms.
|
|
104
|
+
*/
|
|
105
|
+
hoverAnimationInDuration?: number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Web only.
|
|
108
|
+
*
|
|
109
|
+
* Duration of the hover-out animation, in milliseconds. Defaults to 100ms.
|
|
110
|
+
*/
|
|
111
|
+
hoverAnimationOutDuration?: number | undefined;
|
|
68
112
|
/**
|
|
69
113
|
* Opacity applied to the button when it is not pressed.
|
|
70
114
|
*/
|
|
@@ -81,6 +125,16 @@ export interface ButtonProps extends ViewProps, AccessibilityProps {
|
|
|
81
125
|
* Color of the underlay.
|
|
82
126
|
*/
|
|
83
127
|
underlayColor?: ColorValue | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Android only.
|
|
130
|
+
*
|
|
131
|
+
* Whether the view should render with an offscreen alpha-compositing buffer
|
|
132
|
+
* when its `opacity` is less than 1. Defaults to `false` — without the
|
|
133
|
+
* offscreen buffer, children that draw past the view's bounds (e.g. anti-
|
|
134
|
+
* aliased border edges) are not clipped by the layer when `opacity < 1`.
|
|
135
|
+
* Set to `true` to opt back into the standard Android behavior.
|
|
136
|
+
*/
|
|
137
|
+
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
84
138
|
/**
|
|
85
139
|
* Style object, use it to set additional styles.
|
|
86
140
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandlerButton.d.ts","sourceRoot":"","sources":["../../../src/components/GestureHandlerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAItB,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,kBAAkB;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC,GAAG,SAAS,CAAC;IACxE;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEhC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;IAErD;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEzC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEzC
|
|
1
|
+
{"version":3,"file":"GestureHandlerButton.d.ts","sourceRoot":"","sources":["../../../src/components/GestureHandlerButton.tsx"],"names":[],"mappings":"AAA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;AAEtE,eAAe,eAAe,CAAC"}
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ColorValue, ViewProps } from 'react-native';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
|
+
import { NativeGestureRole } from '../web/interfaces';
|
|
4
5
|
type ButtonProps = ViewProps & {
|
|
5
6
|
ref?: React.Ref<React.ComponentRef<typeof View>>;
|
|
6
7
|
enabled?: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
tapAnimationInDuration?: number;
|
|
9
|
+
tapAnimationOutDuration?: number;
|
|
10
|
+
longPressDuration?: number;
|
|
11
|
+
longPressAnimationOutDuration?: number;
|
|
12
|
+
hoverAnimationInDuration?: number;
|
|
13
|
+
hoverAnimationOutDuration?: number;
|
|
9
14
|
activeOpacity?: number;
|
|
10
15
|
activeScale?: number;
|
|
11
16
|
activeUnderlayOpacity?: number;
|
|
17
|
+
hoverOpacity?: number;
|
|
18
|
+
hoverScale?: number;
|
|
19
|
+
hoverUnderlayOpacity?: number;
|
|
12
20
|
defaultOpacity?: number;
|
|
13
21
|
defaultScale?: number;
|
|
14
22
|
defaultUnderlayOpacity?: number;
|
|
15
23
|
underlayColor?: ColorValue;
|
|
16
24
|
};
|
|
17
|
-
export declare const ButtonComponent:
|
|
25
|
+
export declare const ButtonComponent: {
|
|
26
|
+
({ ref: externalRef, enabled, tapAnimationInDuration, tapAnimationOutDuration, longPressDuration, longPressAnimationOutDuration, hoverAnimationInDuration, hoverAnimationOutDuration, activeOpacity, activeScale, activeUnderlayOpacity, hoverOpacity: hoverOpacityProp, hoverScale: hoverScaleProp, hoverUnderlayOpacity: hoverUnderlayOpacityProp, defaultOpacity, defaultScale, defaultUnderlayOpacity, underlayColor, style, children, ...rest }: ButtonProps): React.JSX.Element;
|
|
27
|
+
displayName: NativeGestureRole;
|
|
28
|
+
};
|
|
18
29
|
export default ButtonComponent;
|
|
19
30
|
//# sourceMappingURL=GestureHandlerButton.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandlerButton.web.d.ts","sourceRoot":"","sources":["../../../src/components/GestureHandlerButton.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"GestureHandlerButton.web.d.ts","sourceRoot":"","sources":["../../../src/components/GestureHandlerButton.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAwB,SAAS,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGtD,KAAK,WAAW,GAAG,SAAS,GAAG;IAC7B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,UAAU,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,eAAe;0bAsBzB,WAAW;;CA2Ob,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAiBf,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,kBAAkB,CAAC;AAc1B;;GAEG;AACH,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAiBf,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,kBAAkB,CAAC;AAc1B;;GAEG;AACH,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,sBAmWnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -22,7 +22,7 @@ export type InnerPressableEvent = {
|
|
|
22
22
|
export type PressableEvent = {
|
|
23
23
|
nativeEvent: InnerPressableEvent;
|
|
24
24
|
};
|
|
25
|
-
export interface LegacyPressableProps extends CommonPressableProps {
|
|
25
|
+
export interface LegacyPressableProps extends Omit<CommonPressableProps, 'needsOffscreenAlphaCompositing'> {
|
|
26
26
|
/**
|
|
27
27
|
* A gesture object or an array of gesture objects containing the configuration and callbacks to be
|
|
28
28
|
* used with the Pressable's gesture handlers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PressableProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/PressableProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,MAAM,EACN,4BAA4B,IAAI,8BAA8B,EAC9D,0BAA0B,IAAI,4BAA4B,EAC1D,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,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,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAElE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"PressableProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/PressableProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,MAAM,EACN,4BAA4B,IAAI,8BAA8B,EAC9D,0BAA0B,IAAI,4BAA4B,EAC1D,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EA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;IACH,oBAAoB,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAE9C;;;OAGG;IACH,oBAAoB,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;IAEtC;;;OAGG;IACH,cAAc,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;;OAEG;IACH,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;CAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stateDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/stateDefinitions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,oBAAY,iBAAiB;IAC3B,YAAY,gBAAgB;IAC5B,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;IACrB,uBAAuB,yBAAyB;IAChD,MAAM,WAAW;CAClB;
|
|
1
|
+
{"version":3,"file":"stateDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/stateDefinitions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,oBAAY,iBAAiB;IAC3B,YAAY,gBAAgB;IAC5B,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;IACrB,uBAAuB,yBAAyB;IAChD,MAAM,WAAW;CAClB;AAyHD,wBAAgB,eAAe,CAC7B,aAAa,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,EAC/C,kBAAkB,EAAE,OAAO,GAC1B,eAAe,EAAE,CAenB"}
|
|
@@ -4,6 +4,7 @@ import type { StatusBarAnimation, StyleProp, ViewStyle } from 'react-native';
|
|
|
4
4
|
import type { SharedValue } from 'react-native-reanimated';
|
|
5
5
|
import type { ActiveCursor, UserSelect } from '../handlers/gestureHandlerCommon';
|
|
6
6
|
import { MouseButton } from '../handlers/gestureHandlerCommon';
|
|
7
|
+
import type { WithSharedValue } from '../v3/types';
|
|
7
8
|
export declare enum DrawerPosition {
|
|
8
9
|
LEFT = 0,
|
|
9
10
|
RIGHT = 1
|
|
@@ -27,7 +28,7 @@ export declare enum DrawerKeyboardDismissMode {
|
|
|
27
28
|
NONE = 0,
|
|
28
29
|
ON_DRAG = 1
|
|
29
30
|
}
|
|
30
|
-
export
|
|
31
|
+
export type DrawerLayoutProps = {
|
|
31
32
|
/**
|
|
32
33
|
* This attribute is present in the native android implementation already and is one
|
|
33
34
|
* of the required params. The gesture handler version of DrawerLayout makes it
|
|
@@ -122,13 +123,6 @@ export interface DrawerLayoutProps {
|
|
|
122
123
|
* Style wrapping the drawer.
|
|
123
124
|
*/
|
|
124
125
|
drawerContainerStyle?: StyleProp<ViewStyle>;
|
|
125
|
-
/**
|
|
126
|
-
* Enables two-finger gestures on supported devices, for example iPads with
|
|
127
|
-
* trackpads. If not enabled the gesture will require click + drag, with
|
|
128
|
-
* `enableTrackpadTwoFingerGesture` swiping with two fingers will also trigger
|
|
129
|
-
* the gesture.
|
|
130
|
-
*/
|
|
131
|
-
enableTrackpadTwoFingerGesture?: boolean;
|
|
132
126
|
onDrawerSlide?: (position: number) => void;
|
|
133
127
|
/**
|
|
134
128
|
* Elements that will be rendered inside the content view.
|
|
@@ -140,6 +134,19 @@ export interface DrawerLayoutProps {
|
|
|
140
134
|
* Values: 'none' | 'text' | 'auto'
|
|
141
135
|
*/
|
|
142
136
|
userSelect?: UserSelect;
|
|
137
|
+
/**
|
|
138
|
+
* @default 'false if MouseButton.RIGHT is specified'
|
|
139
|
+
* Allows to enable/disable context menu.
|
|
140
|
+
*/
|
|
141
|
+
enableContextMenu?: boolean;
|
|
142
|
+
} & WithSharedValue<{
|
|
143
|
+
/**
|
|
144
|
+
* Enables two-finger gestures on supported devices, for example iPads with
|
|
145
|
+
* trackpads. If not enabled the gesture will require click + drag, with
|
|
146
|
+
* `enableTrackpadTwoFingerGesture` swiping with two fingers will also trigger
|
|
147
|
+
* the gesture.
|
|
148
|
+
*/
|
|
149
|
+
enableTrackpadTwoFingerGesture?: boolean;
|
|
143
150
|
/**
|
|
144
151
|
* @default 'auto'
|
|
145
152
|
* Sets the displayed cursor pictogram when the drawer is being dragged.
|
|
@@ -151,12 +158,7 @@ export interface DrawerLayoutProps {
|
|
|
151
158
|
* Allows to choose which mouse button should underlying pan handler react to.
|
|
152
159
|
*/
|
|
153
160
|
mouseButton?: MouseButton;
|
|
154
|
-
|
|
155
|
-
* @default 'false if MouseButton.RIGHT is specified'
|
|
156
|
-
* Allows to enable/disable context menu.
|
|
157
|
-
*/
|
|
158
|
-
enableContextMenu?: boolean;
|
|
159
|
-
}
|
|
161
|
+
}, ActiveCursor | MouseButton>;
|
|
160
162
|
export type DrawerMovementOption = {
|
|
161
163
|
initialVelocity?: number;
|
|
162
164
|
animationSpeed?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedDrawerLayout.d.ts","sourceRoot":"","sources":["../../../src/components/ReanimatedDrawerLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAEV,kBAAkB,EAClB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAY3D,OAAO,KAAK,EACV,YAAY,EAEZ,UAAU,EACX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"ReanimatedDrawerLayout.d.ts","sourceRoot":"","sources":["../../../src/components/ReanimatedDrawerLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAEV,kBAAkB,EAClB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAY3D,OAAO,KAAK,EACV,YAAY,EAEZ,UAAU,EACX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,oBAAY,cAAc;IACxB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,oBAAY,WAAW;IACrB,IAAI,IAAA;IACJ,QAAQ,IAAA;IACR,QAAQ,IAAA;CACT;AAED,oBAAY,UAAU;IACpB,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,oBAAY,cAAc;IACxB,QAAQ,IAAA;IACR,aAAa,IAAA;IACb,WAAW,IAAA;CACZ;AAED,oBAAY,yBAAyB;IACnC,IAAI,IAAA;IACJ,OAAO,IAAA;CACR;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;;;;OAQG;IACH,oBAAoB,EAAE,CACpB,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAAC,KACvC,SAAS,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,W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ACE;;;;;OAKG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,EACD,YAAY,GAAG,WAAW,CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACrD,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACvD;AAoBD,QAAA,MAAM,YAAY,GAChB,OAAO,iBAAiB,GAAG;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;CACtC,sBAyaF,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ForwardedRef } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { SwipeableMethods, SwipeableProps } from './ReanimatedSwipeableProps';
|
|
3
|
-
declare const Swipeable: (props: SwipeableProps) =>
|
|
4
|
+
declare const Swipeable: (props: SwipeableProps) => React.JSX.Element;
|
|
4
5
|
export default Swipeable;
|
|
5
6
|
export type SwipeableRef = ForwardedRef<SwipeableMethods>;
|
|
6
7
|
//# sourceMappingURL=ReanimatedSwipeable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedSwipeable.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ReanimatedSwipeable.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAKN,MAAM,OAAO,CAAC;AAyBf,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,4BAA4B,CAAC;AAUpC,QAAA,MAAM,SAAS,GAAI,OAAO,cAAc,sBAkiBvC,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -2,39 +2,18 @@ import type React from 'react';
|
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { SharedValue } from 'react-native-reanimated';
|
|
4
4
|
import type { HitSlop } from '../../handlers/gestureHandlerCommon';
|
|
5
|
-
import type { AnyGesture } from '../../v3/types';
|
|
5
|
+
import type { AnyGesture, WithSharedValue } from '../../v3/types';
|
|
6
6
|
export declare enum SwipeDirection {
|
|
7
7
|
LEFT = "left",
|
|
8
8
|
RIGHT = "right"
|
|
9
9
|
}
|
|
10
|
-
export
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
10
|
+
export type SwipeableProps = {
|
|
14
11
|
ref?: React.Ref<SwipeableMethods>;
|
|
15
12
|
/**
|
|
16
13
|
* Sets a `testID` property, allowing for querying `ReanimatedSwipeable` for it in tests.
|
|
17
14
|
*/
|
|
18
15
|
testID?: string;
|
|
19
16
|
children?: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Indicates whether `ReanimatedSwipeable` should be analyzing stream of touch events or not.
|
|
22
|
-
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#enabledvalue-boolean
|
|
23
|
-
*/
|
|
24
|
-
enabled?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* This parameter enables control over what part of the connected view area can be used to begin recognizing the gesture.
|
|
27
|
-
* When a negative number is provided the bounds of the view will reduce the area by the given number of points in each of the sides evenly.
|
|
28
|
-
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#hitslopsettings
|
|
29
|
-
*/
|
|
30
|
-
hitSlop?: HitSlop;
|
|
31
|
-
/**
|
|
32
|
-
* Enables two-finger gestures on supported devices, for example iPads with
|
|
33
|
-
* trackpads. If not enabled the gesture will require click + drag, with
|
|
34
|
-
* `enableTrackpadTwoFingerGesture` swiping with two fingers will also trigger
|
|
35
|
-
* the gesture.
|
|
36
|
-
*/
|
|
37
|
-
enableTrackpadTwoFingerGesture?: boolean;
|
|
38
17
|
/**
|
|
39
18
|
* Specifies how much the visual interaction will be delayed compared to the
|
|
40
19
|
* gesture distance. e.g. value of 1 will indicate that the swipeable panel
|
|
@@ -54,16 +33,6 @@ export interface SwipeableProps {
|
|
|
54
33
|
* default it's a half of the panel's width.
|
|
55
34
|
*/
|
|
56
35
|
rightThreshold?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Distance that the panel must be dragged from the left edge to be considered
|
|
59
|
-
* a swipe. The default value is 10.
|
|
60
|
-
*/
|
|
61
|
-
dragOffsetFromLeftEdge?: number;
|
|
62
|
-
/**
|
|
63
|
-
* Distance that the panel must be dragged from the right edge to be considered
|
|
64
|
-
* a swipe. The default value is 10.
|
|
65
|
-
*/
|
|
66
|
-
dragOffsetFromRightEdge?: number;
|
|
67
36
|
/**
|
|
68
37
|
* Value indicating if the swipeable panel can be pulled further than the left
|
|
69
38
|
* actions panel's width. It is set to true by default as long as the left
|
|
@@ -154,7 +123,34 @@ export interface SwipeableProps {
|
|
|
154
123
|
* used with the swipeable's gesture handler.
|
|
155
124
|
*/
|
|
156
125
|
block?: AnyGesture | AnyGesture[];
|
|
157
|
-
}
|
|
126
|
+
} & WithSharedValue<{
|
|
127
|
+
/**
|
|
128
|
+
* Indicates whether `ReanimatedSwipeable` should be analyzing stream of touch events or not.
|
|
129
|
+
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#enabledvalue-boolean
|
|
130
|
+
*/
|
|
131
|
+
enabled?: boolean | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* This parameter enables control over what part of the connected view area can be used to begin recognizing the gesture.
|
|
134
|
+
* When a negative number is provided the bounds of the view will reduce the area by the given number of points in each of the sides evenly.
|
|
135
|
+
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#hitslopsettings
|
|
136
|
+
*/
|
|
137
|
+
hitSlop?: HitSlop | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Enables two-finger gestures on supported devices, for example iPads with
|
|
140
|
+
* trackpads. If not enabled the gesture will require click + drag, with
|
|
141
|
+
* `enableTrackpadTwoFingerGesture` swiping with two fingers will also trigger
|
|
142
|
+
* the gesture.
|
|
143
|
+
*/
|
|
144
|
+
enableTrackpadTwoFingerGesture?: boolean | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* The horizontal offset from the starting point required to trigger a right-swipe gesture. Defaults to 10.
|
|
147
|
+
*/
|
|
148
|
+
dragOffsetFromLeft?: number;
|
|
149
|
+
/**
|
|
150
|
+
* The horizontal offset from the starting point required to trigger a left-swipe gesture. Defaults to -10.
|
|
151
|
+
*/
|
|
152
|
+
dragOffsetFromRight?: number;
|
|
153
|
+
}>;
|
|
158
154
|
export interface SwipeableMethods {
|
|
159
155
|
close: () => void;
|
|
160
156
|
openLeft: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedSwipeableProps.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ReanimatedSwipeableProps.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAElE,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAElC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,CAChB,SAAS,EAAE,cAAc,CAAC,IAAI,GAAG,cAAc,CAAC,KAAK,KAClD,IAAI,CAAC;IAEV;;OAEG;IACH,gBAAgB,CAAC,EAAE,CACjB,S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,oBAAoB,EAC3B,eAAe,EAAE,oBAAoB,EACrC,gBAAgB,EAAE,WAAW,EAAE,EAC/B,aAAa,EAAE,eAAe,GAAG,WAAW,EAC5C,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,uBAKxB,OAAO,
|
|
1
|
+
{"version":3,"file":"useDetectorUpdater.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/useDetectorUpdater.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAO1E,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,oBAAoB,EAC3B,eAAe,EAAE,oBAAoB,EACrC,gBAAgB,EAAE,WAAW,EAAE,EAC/B,aAAa,EAAE,eAAe,GAAG,WAAW,EAC5C,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,uBAKxB,OAAO,UAsC9B"}
|
|
@@ -7,7 +7,6 @@ export declare function extractGestureRelations(gesture: GestureType): {
|
|
|
7
7
|
blocksHandlers: GestureRef[];
|
|
8
8
|
};
|
|
9
9
|
export declare function checkGestureCallbacksForWorklets(gesture: GestureType): void;
|
|
10
|
-
export declare function validateDetectorChildren(ref: any): void;
|
|
11
10
|
export declare function useForceRender(): () => void;
|
|
12
11
|
export declare function useWebEventHandlers(): import("react").RefObject<PropsRef>;
|
|
13
12
|
//# sourceMappingURL=utils.d.ts.map
|