react-native-gesture-handler 2.26.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/android/src/main/jni/CMakeLists.txt +7 -26
- package/package.json +4 -2
- package/src/components/Pressable/Pressable.tsx +357 -445
- package/src/components/Pressable/PressableProps.tsx +15 -0
- package/src/components/Pressable/StateMachine.tsx +49 -0
- package/src/components/Pressable/stateDefinitions.ts +125 -0
- package/src/components/Pressable/utils.ts +11 -7
- package/src/handlers/GestureHandlerEventPayload.ts +3 -0
- package/src/handlers/gestureHandlerTypesCompat.ts +9 -0
- package/src/handlers/gestures/forceTouchGesture.ts +9 -0
- package/src/handlers/gestures/gestureObjects.ts +3 -1
- package/src/web/detectors/RotationGestureDetector.ts +4 -0
- package/src/web/handlers/FlingGestureHandler.ts +4 -0
- package/src/web/handlers/GestureHandler.ts +9 -3
- package/src/web/handlers/PanGestureHandler.ts +25 -36
- package/src/web/handlers/TapGestureHandler.ts +14 -19
- package/src/web/tools/GestureHandlerOrchestrator.ts +1 -0
- package/src/web/tools/PointerEventManager.ts +1 -1
- package/src/web/tools/PointerTracker.ts +17 -15
- package/src/web/tools/Vector.ts +1 -1
- package/lib/commonjs/ActionType.js +0 -15
- package/lib/commonjs/ActionType.js.map +0 -1
- package/lib/commonjs/Directions.js +0 -31
- package/lib/commonjs/Directions.js.map +0 -1
- package/lib/commonjs/EnableNewWebImplementation.js +0 -40
- package/lib/commonjs/EnableNewWebImplementation.js.map +0 -1
- package/lib/commonjs/GestureHandlerRootViewContext.js +0 -10
- package/lib/commonjs/GestureHandlerRootViewContext.js.map +0 -1
- package/lib/commonjs/PlatformConstants.js +0 -9
- package/lib/commonjs/PlatformConstants.js.map +0 -1
- package/lib/commonjs/PlatformConstants.web.js +0 -12
- package/lib/commonjs/PlatformConstants.web.js.map +0 -1
- package/lib/commonjs/PointerType.js +0 -15
- package/lib/commonjs/PointerType.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.js +0 -12
- package/lib/commonjs/RNGestureHandlerModule.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.web.js +0 -95
- package/lib/commonjs/RNGestureHandlerModule.web.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.windows.js +0 -56
- package/lib/commonjs/RNGestureHandlerModule.windows.js.map +0 -1
- package/lib/commonjs/RNRenderer.js +0 -14
- package/lib/commonjs/RNRenderer.js.map +0 -1
- package/lib/commonjs/RNRenderer.web.js +0 -10
- package/lib/commonjs/RNRenderer.web.js.map +0 -1
- package/lib/commonjs/State.js +0 -19
- package/lib/commonjs/State.js.map +0 -1
- package/lib/commonjs/TouchEventType.js +0 -16
- package/lib/commonjs/TouchEventType.js.map +0 -1
- package/lib/commonjs/components/DrawerLayout.js +0 -548
- package/lib/commonjs/components/DrawerLayout.js.map +0 -1
- package/lib/commonjs/components/GestureButtons.js +0 -211
- package/lib/commonjs/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/components/GestureButtonsProps.js +0 -6
- package/lib/commonjs/components/GestureButtonsProps.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.js +0 -106
- package/lib/commonjs/components/GestureComponents.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.web.js +0 -39
- package/lib/commonjs/components/GestureComponents.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.js +0 -10
- package/lib/commonjs/components/GestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.web.js +0 -16
- package/lib/commonjs/components/GestureHandlerButton.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.android.js +0 -36
- package/lib/commonjs/components/GestureHandlerRootView.android.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +0 -35
- package/lib/commonjs/components/GestureHandlerRootView.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.web.js +0 -30
- package/lib/commonjs/components/GestureHandlerRootView.web.js.map +0 -1
- package/lib/commonjs/components/Pressable/Pressable.js +0 -324
- package/lib/commonjs/components/Pressable/Pressable.js.map +0 -1
- package/lib/commonjs/components/Pressable/PressableProps.js +0 -6
- package/lib/commonjs/components/Pressable/PressableProps.js.map +0 -1
- package/lib/commonjs/components/Pressable/index.js +0 -14
- package/lib/commonjs/components/Pressable/index.js.map +0 -1
- package/lib/commonjs/components/Pressable/utils.js +0 -92
- package/lib/commonjs/components/Pressable/utils.js.map +0 -1
- package/lib/commonjs/components/ReanimatedDrawerLayout.js +0 -357
- package/lib/commonjs/components/ReanimatedDrawerLayout.js.map +0 -1
- package/lib/commonjs/components/ReanimatedSwipeable.js +0 -346
- package/lib/commonjs/components/ReanimatedSwipeable.js.map +0 -1
- package/lib/commonjs/components/Swipeable.js +0 -370
- package/lib/commonjs/components/Swipeable.js.map +0 -1
- package/lib/commonjs/components/Text.js +0 -60
- package/lib/commonjs/components/Text.js.map +0 -1
- package/lib/commonjs/components/gestureHandlerRootHOC.js +0 -34
- package/lib/commonjs/components/gestureHandlerRootHOC.js.map +0 -1
- package/lib/commonjs/components/touchables/ExtraButtonProps.js +0 -2
- package/lib/commonjs/components/touchables/ExtraButtonProps.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchable.js +0 -245
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchableProps.js +0 -6
- package/lib/commonjs/components/touchables/GenericTouchableProps.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableHighlight.js +0 -93
- package/lib/commonjs/components/touchables/TouchableHighlight.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js +0 -84
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js +0 -13
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js +0 -6
- package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableOpacity.js +0 -65
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +0 -33
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/index.js +0 -35
- package/lib/commonjs/components/touchables/index.js.map +0 -1
- package/lib/commonjs/components/utils.js +0 -17
- package/lib/commonjs/components/utils.js.map +0 -1
- package/lib/commonjs/findNodeHandle.js +0 -9
- package/lib/commonjs/findNodeHandle.js.map +0 -1
- package/lib/commonjs/findNodeHandle.web.js +0 -39
- package/lib/commonjs/findNodeHandle.web.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.js +0 -51
- package/lib/commonjs/getShadowNodeFromRef.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.web.js +0 -14
- package/lib/commonjs/getShadowNodeFromRef.web.js.map +0 -1
- package/lib/commonjs/ghQueueMicrotask.js +0 -10
- package/lib/commonjs/ghQueueMicrotask.js.map +0 -1
- package/lib/commonjs/handlers/FlingGestureHandler.js +0 -31
- package/lib/commonjs/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js +0 -46
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/GestureHandlerEventPayload.js +0 -6
- package/lib/commonjs/handlers/GestureHandlerEventPayload.js.map +0 -1
- package/lib/commonjs/handlers/LongPressGestureHandler.js +0 -33
- package/lib/commonjs/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/NativeViewGestureHandler.ts +0 -59
- package/lib/commonjs/handlers/PanGestureHandler.js +0 -112
- package/lib/commonjs/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PinchGestureHandler.js +0 -29
- package/lib/commonjs/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.js +0 -13
- package/lib/commonjs/handlers/PressabilityDebugView.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.web.js +0 -11
- package/lib/commonjs/handlers/PressabilityDebugView.web.js.map +0 -1
- package/lib/commonjs/handlers/RotationGestureHandler.js +0 -29
- package/lib/commonjs/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/TapGestureHandler.js +0 -33
- package/lib/commonjs/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/createHandler.js +0 -393
- package/lib/commonjs/handlers/createHandler.js.map +0 -1
- package/lib/commonjs/handlers/createNativeWrapper.js +0 -78
- package/lib/commonjs/handlers/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/handlers/customDirectEventTypes.js +0 -13
- package/lib/commonjs/handlers/customDirectEventTypes.js.map +0 -1
- package/lib/commonjs/handlers/customDirectEventTypes.web.js +0 -10
- package/lib/commonjs/handlers/customDirectEventTypes.web.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerCommon.js +0 -27
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js +0 -6
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js +0 -32
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js +0 -67
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js +0 -20
- package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js +0 -125
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js +0 -22
- package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/types.js +0 -6
- package/lib/commonjs/handlers/gestures/GestureDetector/types.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js +0 -66
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js +0 -143
- package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js +0 -47
- package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js +0 -143
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js.map +0 -1
- package/lib/commonjs/handlers/gestures/eventReceiver.js +0 -106
- package/lib/commonjs/handlers/gestures/eventReceiver.js.map +0 -1
- package/lib/commonjs/handlers/gestures/flingGesture.js +0 -37
- package/lib/commonjs/handlers/gestures/flingGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js +0 -68
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gesture.js +0 -338
- package/lib/commonjs/handlers/gestures/gesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureComposition.js +0 -90
- package/lib/commonjs/handlers/gestures/gestureComposition.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureObjects.js +0 -130
- package/lib/commonjs/handlers/gestures/gestureObjects.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.js +0 -69
- package/lib/commonjs/handlers/gestures/gestureStateManager.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js +0 -27
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js.map +0 -1
- package/lib/commonjs/handlers/gestures/hoverGesture.js +0 -57
- package/lib/commonjs/handlers/gestures/hoverGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/longPressGesture.js +0 -46
- package/lib/commonjs/handlers/gestures/longPressGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/manualGesture.js +0 -25
- package/lib/commonjs/handlers/gestures/manualGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/nativeGesture.ts +0 -33
- package/lib/commonjs/handlers/gestures/panGesture.js +0 -197
- package/lib/commonjs/handlers/gestures/panGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/pinchGesture.js +0 -38
- package/lib/commonjs/handlers/gestures/pinchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js +0 -29
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js.map +0 -1
- package/lib/commonjs/handlers/gestures/rotationGesture.js +0 -38
- package/lib/commonjs/handlers/gestures/rotationGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/tapGesture.js +0 -87
- package/lib/commonjs/handlers/gestures/tapGesture.js.map +0 -1
- package/lib/commonjs/handlers/getNextHandlerTag.js +0 -11
- package/lib/commonjs/handlers/getNextHandlerTag.js.map +0 -1
- package/lib/commonjs/handlers/handlersRegistry.js +0 -50
- package/lib/commonjs/handlers/handlersRegistry.js.map +0 -1
- package/lib/commonjs/handlers/utils.js +0 -69
- package/lib/commonjs/handlers/utils.js.map +0 -1
- package/lib/commonjs/index.js +0 -269
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/init.js +0 -25
- package/lib/commonjs/init.js.map +0 -1
- package/lib/commonjs/jestUtils/index.js +0 -19
- package/lib/commonjs/jestUtils/index.js.map +0 -1
- package/lib/commonjs/jestUtils/jestUtils.js +0 -316
- package/lib/commonjs/jestUtils/jestUtils.js.map +0 -1
- package/lib/commonjs/mocks.js +0 -73
- package/lib/commonjs/mocks.js.map +0 -1
- package/lib/commonjs/mountRegistry.js +0 -37
- package/lib/commonjs/mountRegistry.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.ts +0 -26
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.ts +0 -22
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.ts +0 -6
- package/lib/commonjs/typeUtils.js +0 -2
- package/lib/commonjs/typeUtils.js.map +0 -1
- package/lib/commonjs/utils.js +0 -95
- package/lib/commonjs/utils.js.map +0 -1
- package/lib/commonjs/web/Gestures.js +0 -48
- package/lib/commonjs/web/Gestures.js.map +0 -1
- package/lib/commonjs/web/constants.js +0 -9
- package/lib/commonjs/web/constants.js.map +0 -1
- package/lib/commonjs/web/detectors/RotationGestureDetector.js +0 -121
- package/lib/commonjs/web/detectors/RotationGestureDetector.js.map +0 -1
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js +0 -111
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js.map +0 -1
- package/lib/commonjs/web/handlers/FlingGestureHandler.js +0 -140
- package/lib/commonjs/web/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/GestureHandler.js +0 -686
- package/lib/commonjs/web/handlers/GestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/HoverGestureHandler.js +0 -45
- package/lib/commonjs/web/handlers/HoverGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/IGestureHandler.js +0 -2
- package/lib/commonjs/web/handlers/IGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js +0 -146
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/ManualGestureHandler.js +0 -38
- package/lib/commonjs/web/handlers/ManualGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.ts +0 -175
- package/lib/commonjs/web/handlers/PanGestureHandler.js +0 -408
- package/lib/commonjs/web/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/PinchGestureHandler.js +0 -122
- package/lib/commonjs/web/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/RotationGestureHandler.js +0 -129
- package/lib/commonjs/web/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/TapGestureHandler.js +0 -217
- package/lib/commonjs/web/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/web/interfaces.js +0 -32
- package/lib/commonjs/web/interfaces.js.map +0 -1
- package/lib/commonjs/web/tools/CircularBuffer.js +0 -40
- package/lib/commonjs/web/tools/CircularBuffer.js.map +0 -1
- package/lib/commonjs/web/tools/EventManager.js +0 -94
- package/lib/commonjs/web/tools/EventManager.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js +0 -6
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js +0 -267
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +0 -170
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/InteractionManager.js +0 -96
- package/lib/commonjs/web/tools/InteractionManager.js.map +0 -1
- package/lib/commonjs/web/tools/KeyboardEventManager.js +0 -82
- package/lib/commonjs/web/tools/KeyboardEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/LeastSquareSolver.js +0 -159
- package/lib/commonjs/web/tools/LeastSquareSolver.js.map +0 -1
- package/lib/commonjs/web/tools/NodeManager.js +0 -39
- package/lib/commonjs/web/tools/NodeManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerEventManager.js +0 -189
- package/lib/commonjs/web/tools/PointerEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerTracker.js +0 -191
- package/lib/commonjs/web/tools/PointerTracker.js.map +0 -1
- package/lib/commonjs/web/tools/Vector.js +0 -37
- package/lib/commonjs/web/tools/Vector.js.map +0 -1
- package/lib/commonjs/web/tools/VelocityTracker.js +0 -85
- package/lib/commonjs/web/tools/VelocityTracker.js.map +0 -1
- package/lib/commonjs/web/tools/WheelEventManager.js +0 -55
- package/lib/commonjs/web/tools/WheelEventManager.js.map +0 -1
- package/lib/commonjs/web/utils.js +0 -235
- package/lib/commonjs/web/utils.js.map +0 -1
- package/lib/commonjs/web_hammer/DiscreteGestureHandler.js +0 -93
- package/lib/commonjs/web_hammer/DiscreteGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/DraggingGestureHandler.js +0 -43
- package/lib/commonjs/web_hammer/DraggingGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/Errors.js +0 -13
- package/lib/commonjs/web_hammer/Errors.js.map +0 -1
- package/lib/commonjs/web_hammer/FlingGestureHandler.js +0 -139
- package/lib/commonjs/web_hammer/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/GestureHandler.js +0 -484
- package/lib/commonjs/web_hammer/GestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/IndiscreteGestureHandler.js +0 -45
- package/lib/commonjs/web_hammer/IndiscreteGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/LongPressGestureHandler.js +0 -57
- package/lib/commonjs/web_hammer/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/NativeViewGestureHandler.ts +0 -47
- package/lib/commonjs/web_hammer/NodeManager.js +0 -41
- package/lib/commonjs/web_hammer/NodeManager.js.map +0 -1
- package/lib/commonjs/web_hammer/PanGestureHandler.js +0 -167
- package/lib/commonjs/web_hammer/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/PinchGestureHandler.js +0 -31
- package/lib/commonjs/web_hammer/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/PressGestureHandler.js +0 -153
- package/lib/commonjs/web_hammer/PressGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/RotationGestureHandler.js +0 -32
- package/lib/commonjs/web_hammer/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/TapGestureHandler.js +0 -165
- package/lib/commonjs/web_hammer/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/constants.js +0 -51
- package/lib/commonjs/web_hammer/constants.js.map +0 -1
- package/lib/commonjs/web_hammer/utils.js +0 -32
- package/lib/commonjs/web_hammer/utils.js.map +0 -1
- package/lib/module/ActionType.js +0 -11
- package/lib/module/ActionType.js.map +0 -1
- package/lib/module/Directions.js +0 -27
- package/lib/module/Directions.js.map +0 -1
- package/lib/module/EnableNewWebImplementation.js +0 -34
- package/lib/module/EnableNewWebImplementation.js.map +0 -1
- package/lib/module/GestureHandlerRootViewContext.js +0 -5
- package/lib/module/GestureHandlerRootViewContext.js.map +0 -1
- package/lib/module/PlatformConstants.js +0 -5
- package/lib/module/PlatformConstants.js.map +0 -1
- package/lib/module/PlatformConstants.web.js +0 -8
- package/lib/module/PlatformConstants.web.js.map +0 -1
- package/lib/module/PointerType.js +0 -11
- package/lib/module/PointerType.js.map +0 -1
- package/lib/module/RNGestureHandlerModule.js +0 -8
- package/lib/module/RNGestureHandlerModule.js.map +0 -1
- package/lib/module/RNGestureHandlerModule.web.js +0 -90
- package/lib/module/RNGestureHandlerModule.web.js.map +0 -1
- package/lib/module/RNGestureHandlerModule.windows.js +0 -50
- package/lib/module/RNGestureHandlerModule.windows.js.map +0 -1
- 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/module/State.js +0 -15
- package/lib/module/State.js.map +0 -1
- package/lib/module/TouchEventType.js +0 -12
- package/lib/module/TouchEventType.js.map +0 -1
- package/lib/module/components/DrawerLayout.js +0 -541
- package/lib/module/components/DrawerLayout.js.map +0 -1
- package/lib/module/components/GestureButtons.js +0 -199
- package/lib/module/components/GestureButtons.js.map +0 -1
- package/lib/module/components/GestureButtonsProps.js +0 -4
- package/lib/module/components/GestureButtonsProps.js.map +0 -1
- package/lib/module/components/GestureComponents.js +0 -100
- package/lib/module/components/GestureComponents.js.map +0 -1
- package/lib/module/components/GestureComponents.web.js +0 -32
- package/lib/module/components/GestureComponents.web.js.map +0 -1
- package/lib/module/components/GestureHandlerButton.js +0 -5
- package/lib/module/components/GestureHandlerButton.js.map +0 -1
- package/lib/module/components/GestureHandlerButton.web.js +0 -11
- package/lib/module/components/GestureHandlerButton.web.js.map +0 -1
- package/lib/module/components/GestureHandlerRootView.android.js +0 -30
- package/lib/module/components/GestureHandlerRootView.android.js.map +0 -1
- package/lib/module/components/GestureHandlerRootView.js +0 -29
- package/lib/module/components/GestureHandlerRootView.js.map +0 -1
- package/lib/module/components/GestureHandlerRootView.web.js +0 -24
- package/lib/module/components/GestureHandlerRootView.web.js.map +0 -1
- package/lib/module/components/Pressable/Pressable.js +0 -318
- package/lib/module/components/Pressable/Pressable.js.map +0 -1
- package/lib/module/components/Pressable/PressableProps.js +0 -4
- package/lib/module/components/Pressable/PressableProps.js.map +0 -1
- package/lib/module/components/Pressable/index.js +0 -4
- package/lib/module/components/Pressable/index.js.map +0 -1
- package/lib/module/components/Pressable/utils.js +0 -84
- package/lib/module/components/Pressable/utils.js.map +0 -1
- package/lib/module/components/ReanimatedDrawerLayout.js +0 -352
- package/lib/module/components/ReanimatedDrawerLayout.js.map +0 -1
- package/lib/module/components/ReanimatedSwipeable.js +0 -341
- package/lib/module/components/ReanimatedSwipeable.js.map +0 -1
- package/lib/module/components/Swipeable.js +0 -364
- package/lib/module/components/Swipeable.js.map +0 -1
- package/lib/module/components/Text.js +0 -55
- package/lib/module/components/Text.js.map +0 -1
- package/lib/module/components/gestureHandlerRootHOC.js +0 -28
- package/lib/module/components/gestureHandlerRootHOC.js.map +0 -1
- package/lib/module/components/touchables/ExtraButtonProps.js +0 -2
- package/lib/module/components/touchables/ExtraButtonProps.js.map +0 -1
- package/lib/module/components/touchables/GenericTouchable.js +0 -239
- package/lib/module/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/module/components/touchables/GenericTouchableProps.js +0 -4
- package/lib/module/components/touchables/GenericTouchableProps.js.map +0 -1
- package/lib/module/components/touchables/TouchableHighlight.js +0 -87
- package/lib/module/components/touchables/TouchableHighlight.js.map +0 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js +0 -77
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js.map +0 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.js +0 -10
- package/lib/module/components/touchables/TouchableNativeFeedback.js.map +0 -1
- package/lib/module/components/touchables/TouchableNativeFeedbackProps.js +0 -4
- package/lib/module/components/touchables/TouchableNativeFeedbackProps.js.map +0 -1
- package/lib/module/components/touchables/TouchableOpacity.js +0 -59
- package/lib/module/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +0 -27
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/module/components/touchables/index.js +0 -7
- package/lib/module/components/touchables/index.js.map +0 -1
- package/lib/module/components/utils.js +0 -13
- package/lib/module/components/utils.js.map +0 -1
- package/lib/module/findNodeHandle.js +0 -5
- package/lib/module/findNodeHandle.js.map +0 -1
- package/lib/module/findNodeHandle.web.js +0 -35
- package/lib/module/findNodeHandle.web.js.map +0 -1
- package/lib/module/getShadowNodeFromRef.js +0 -47
- package/lib/module/getShadowNodeFromRef.js.map +0 -1
- package/lib/module/getShadowNodeFromRef.web.js +0 -10
- package/lib/module/getShadowNodeFromRef.web.js.map +0 -1
- package/lib/module/ghQueueMicrotask.js +0 -6
- package/lib/module/ghQueueMicrotask.js.map +0 -1
- package/lib/module/handlers/FlingGestureHandler.js +0 -26
- package/lib/module/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/module/handlers/ForceTouchGestureHandler.js +0 -41
- package/lib/module/handlers/ForceTouchGestureHandler.js.map +0 -1
- package/lib/module/handlers/GestureHandlerEventPayload.js +0 -4
- package/lib/module/handlers/GestureHandlerEventPayload.js.map +0 -1
- package/lib/module/handlers/LongPressGestureHandler.js +0 -28
- package/lib/module/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/module/handlers/NativeViewGestureHandler.ts +0 -59
- package/lib/module/handlers/PanGestureHandler.js +0 -105
- package/lib/module/handlers/PanGestureHandler.js.map +0 -1
- package/lib/module/handlers/PinchGestureHandler.js +0 -25
- package/lib/module/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/module/handlers/PressabilityDebugView.js +0 -5
- package/lib/module/handlers/PressabilityDebugView.js.map +0 -1
- package/lib/module/handlers/PressabilityDebugView.web.js +0 -7
- package/lib/module/handlers/PressabilityDebugView.web.js.map +0 -1
- package/lib/module/handlers/RotationGestureHandler.js +0 -25
- package/lib/module/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/module/handlers/TapGestureHandler.js +0 -28
- package/lib/module/handlers/TapGestureHandler.js.map +0 -1
- package/lib/module/handlers/createHandler.js +0 -387
- package/lib/module/handlers/createHandler.js.map +0 -1
- package/lib/module/handlers/createNativeWrapper.js +0 -75
- package/lib/module/handlers/createNativeWrapper.js.map +0 -1
- package/lib/module/handlers/customDirectEventTypes.js +0 -5
- package/lib/module/handlers/customDirectEventTypes.js.map +0 -1
- package/lib/module/handlers/customDirectEventTypes.web.js +0 -7
- package/lib/module/handlers/customDirectEventTypes.web.js.map +0 -1
- package/lib/module/handlers/gestureHandlerCommon.js +0 -26
- package/lib/module/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/module/handlers/gestureHandlerTypesCompat.js +0 -4
- package/lib/module/handlers/gestureHandlerTypesCompat.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js +0 -26
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js +0 -36
- package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js +0 -62
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js +0 -15
- package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/index.js +0 -117
- package/lib/module/handlers/gestures/GestureDetector/index.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/needsToReattach.js +0 -18
- package/lib/module/handlers/gestures/GestureDetector/needsToReattach.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/types.js +0 -4
- package/lib/module/handlers/gestures/GestureDetector/types.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js +0 -61
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js +0 -139
- package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js +0 -43
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js +0 -37
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js +0 -36
- package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector/utils.js +0 -134
- package/lib/module/handlers/gestures/GestureDetector/utils.js.map +0 -1
- package/lib/module/handlers/gestures/eventReceiver.js +0 -100
- package/lib/module/handlers/gestures/eventReceiver.js.map +0 -1
- package/lib/module/handlers/gestures/flingGesture.js +0 -32
- package/lib/module/handlers/gestures/flingGesture.js.map +0 -1
- package/lib/module/handlers/gestures/forceTouchGesture.js +0 -63
- package/lib/module/handlers/gestures/forceTouchGesture.js.map +0 -1
- package/lib/module/handlers/gestures/gesture.js +0 -332
- package/lib/module/handlers/gestures/gesture.js.map +0 -1
- package/lib/module/handlers/gestures/gestureComposition.js +0 -83
- package/lib/module/handlers/gestures/gestureComposition.js.map +0 -1
- package/lib/module/handlers/gestures/gestureObjects.js +0 -127
- package/lib/module/handlers/gestures/gestureObjects.js.map +0 -1
- package/lib/module/handlers/gestures/gestureStateManager.js +0 -65
- package/lib/module/handlers/gestures/gestureStateManager.js.map +0 -1
- package/lib/module/handlers/gestures/gestureStateManager.web.js +0 -22
- package/lib/module/handlers/gestures/gestureStateManager.web.js.map +0 -1
- package/lib/module/handlers/gestures/hoverGesture.js +0 -52
- package/lib/module/handlers/gestures/hoverGesture.js.map +0 -1
- package/lib/module/handlers/gestures/longPressGesture.js +0 -41
- package/lib/module/handlers/gestures/longPressGesture.js.map +0 -1
- package/lib/module/handlers/gestures/manualGesture.js +0 -20
- package/lib/module/handlers/gestures/manualGesture.js.map +0 -1
- package/lib/module/handlers/gestures/nativeGesture.ts +0 -33
- package/lib/module/handlers/gestures/panGesture.js +0 -192
- package/lib/module/handlers/gestures/panGesture.js.map +0 -1
- package/lib/module/handlers/gestures/pinchGesture.js +0 -33
- package/lib/module/handlers/gestures/pinchGesture.js.map +0 -1
- package/lib/module/handlers/gestures/reanimatedWrapper.js +0 -26
- package/lib/module/handlers/gestures/reanimatedWrapper.js.map +0 -1
- package/lib/module/handlers/gestures/rotationGesture.js +0 -33
- package/lib/module/handlers/gestures/rotationGesture.js.map +0 -1
- package/lib/module/handlers/gestures/tapGesture.js +0 -82
- package/lib/module/handlers/gestures/tapGesture.js.map +0 -1
- package/lib/module/handlers/getNextHandlerTag.js +0 -7
- package/lib/module/handlers/getNextHandlerTag.js.map +0 -1
- package/lib/module/handlers/handlersRegistry.js +0 -39
- package/lib/module/handlers/handlersRegistry.js.map +0 -1
- package/lib/module/handlers/utils.js +0 -61
- package/lib/module/handlers/utils.js.map +0 -1
- package/lib/module/index.js +0 -31
- package/lib/module/index.js.map +0 -1
- package/lib/module/init.js +0 -19
- package/lib/module/init.js.map +0 -1
- package/lib/module/jestUtils/index.js +0 -4
- package/lib/module/jestUtils/index.js.map +0 -1
- package/lib/module/jestUtils/jestUtils.js +0 -311
- package/lib/module/jestUtils/jestUtils.js.map +0 -1
- package/lib/module/mocks.js +0 -68
- package/lib/module/mocks.js.map +0 -1
- package/lib/module/mountRegistry.js +0 -32
- package/lib/module/mountRegistry.js.map +0 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.ts +0 -26
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.ts +0 -22
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.ts +0 -6
- package/lib/module/typeUtils.js +0 -2
- package/lib/module/typeUtils.js.map +0 -1
- package/lib/module/utils.js +0 -81
- package/lib/module/utils.js.map +0 -1
- package/lib/module/web/Gestures.js +0 -42
- package/lib/module/web/Gestures.js.map +0 -1
- package/lib/module/web/constants.js +0 -5
- package/lib/module/web/constants.js.map +0 -1
- package/lib/module/web/detectors/RotationGestureDetector.js +0 -116
- package/lib/module/web/detectors/RotationGestureDetector.js.map +0 -1
- package/lib/module/web/detectors/ScaleGestureDetector.js +0 -106
- package/lib/module/web/detectors/ScaleGestureDetector.js.map +0 -1
- package/lib/module/web/handlers/FlingGestureHandler.js +0 -134
- package/lib/module/web/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/GestureHandler.js +0 -679
- package/lib/module/web/handlers/GestureHandler.js.map +0 -1
- package/lib/module/web/handlers/HoverGestureHandler.js +0 -39
- package/lib/module/web/handlers/HoverGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/IGestureHandler.js +0 -2
- package/lib/module/web/handlers/IGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/LongPressGestureHandler.js +0 -140
- package/lib/module/web/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/ManualGestureHandler.js +0 -32
- package/lib/module/web/handlers/ManualGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/NativeViewGestureHandler.ts +0 -175
- package/lib/module/web/handlers/PanGestureHandler.js +0 -402
- package/lib/module/web/handlers/PanGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/PinchGestureHandler.js +0 -116
- package/lib/module/web/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/RotationGestureHandler.js +0 -123
- package/lib/module/web/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/TapGestureHandler.js +0 -211
- package/lib/module/web/handlers/TapGestureHandler.js.map +0 -1
- package/lib/module/web/interfaces.js +0 -28
- package/lib/module/web/interfaces.js.map +0 -1
- package/lib/module/web/tools/CircularBuffer.js +0 -35
- package/lib/module/web/tools/CircularBuffer.js.map +0 -1
- package/lib/module/web/tools/EventManager.js +0 -89
- package/lib/module/web/tools/EventManager.js.map +0 -1
- package/lib/module/web/tools/GestureHandlerDelegate.js +0 -4
- package/lib/module/web/tools/GestureHandlerDelegate.js.map +0 -1
- package/lib/module/web/tools/GestureHandlerOrchestrator.js +0 -261
- package/lib/module/web/tools/GestureHandlerOrchestrator.js.map +0 -1
- package/lib/module/web/tools/GestureHandlerWebDelegate.js +0 -164
- package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +0 -1
- package/lib/module/web/tools/InteractionManager.js +0 -91
- package/lib/module/web/tools/InteractionManager.js.map +0 -1
- package/lib/module/web/tools/KeyboardEventManager.js +0 -76
- package/lib/module/web/tools/KeyboardEventManager.js.map +0 -1
- package/lib/module/web/tools/LeastSquareSolver.js +0 -154
- package/lib/module/web/tools/LeastSquareSolver.js.map +0 -1
- package/lib/module/web/tools/NodeManager.js +0 -34
- package/lib/module/web/tools/NodeManager.js.map +0 -1
- package/lib/module/web/tools/PointerEventManager.js +0 -183
- package/lib/module/web/tools/PointerEventManager.js.map +0 -1
- package/lib/module/web/tools/PointerTracker.js +0 -185
- package/lib/module/web/tools/PointerTracker.js.map +0 -1
- package/lib/module/web/tools/Vector.js +0 -32
- package/lib/module/web/tools/Vector.js.map +0 -1
- package/lib/module/web/tools/VelocityTracker.js +0 -79
- package/lib/module/web/tools/VelocityTracker.js.map +0 -1
- package/lib/module/web/tools/WheelEventManager.js +0 -49
- package/lib/module/web/tools/WheelEventManager.js.map +0 -1
- package/lib/module/web/utils.js +0 -223
- package/lib/module/web/utils.js.map +0 -1
- package/lib/module/web_hammer/DiscreteGestureHandler.js +0 -87
- package/lib/module/web_hammer/DiscreteGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/DraggingGestureHandler.js +0 -37
- package/lib/module/web_hammer/DraggingGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/Errors.js +0 -8
- package/lib/module/web_hammer/Errors.js.map +0 -1
- package/lib/module/web_hammer/FlingGestureHandler.js +0 -133
- package/lib/module/web_hammer/FlingGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/GestureHandler.js +0 -478
- package/lib/module/web_hammer/GestureHandler.js.map +0 -1
- package/lib/module/web_hammer/IndiscreteGestureHandler.js +0 -41
- package/lib/module/web_hammer/IndiscreteGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/LongPressGestureHandler.js +0 -51
- package/lib/module/web_hammer/LongPressGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/NativeViewGestureHandler.ts +0 -47
- package/lib/module/web_hammer/NodeManager.js +0 -33
- package/lib/module/web_hammer/NodeManager.js.map +0 -1
- package/lib/module/web_hammer/PanGestureHandler.js +0 -162
- package/lib/module/web_hammer/PanGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/PinchGestureHandler.js +0 -26
- package/lib/module/web_hammer/PinchGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/PressGestureHandler.js +0 -148
- package/lib/module/web_hammer/PressGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/RotationGestureHandler.js +0 -27
- package/lib/module/web_hammer/RotationGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/TapGestureHandler.js +0 -160
- package/lib/module/web_hammer/TapGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/constants.js +0 -46
- package/lib/module/web_hammer/constants.js.map +0 -1
- package/lib/module/web_hammer/utils.js +0 -21
- package/lib/module/web_hammer/utils.js.map +0 -1
- package/lib/typescript/ActionType.d.ts +0 -8
- package/lib/typescript/ActionType.d.ts.map +0 -1
- package/lib/typescript/Directions.d.ts +0 -15
- package/lib/typescript/Directions.d.ts.map +0 -1
- package/lib/typescript/EnableNewWebImplementation.d.ts +0 -10
- package/lib/typescript/EnableNewWebImplementation.d.ts.map +0 -1
- package/lib/typescript/GestureHandlerRootViewContext.d.ts +0 -4
- package/lib/typescript/GestureHandlerRootViewContext.d.ts.map +0 -1
- package/lib/typescript/PlatformConstants.d.ts +0 -6
- package/lib/typescript/PlatformConstants.d.ts.map +0 -1
- package/lib/typescript/PlatformConstants.web.d.ts +0 -5
- package/lib/typescript/PlatformConstants.web.d.ts.map +0 -1
- package/lib/typescript/PointerType.d.ts +0 -8
- package/lib/typescript/PointerType.d.ts.map +0 -1
- package/lib/typescript/RNGestureHandlerModule.d.ts +0 -3
- package/lib/typescript/RNGestureHandlerModule.d.ts.map +0 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts +0 -16
- package/lib/typescript/RNGestureHandlerModule.web.d.ts.map +0 -1
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts +0 -33
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts.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/lib/typescript/State.d.ts +0 -10
- package/lib/typescript/State.d.ts.map +0 -1
- package/lib/typescript/TouchEventType.d.ts +0 -9
- package/lib/typescript/TouchEventType.d.ts.map +0 -1
- package/lib/typescript/components/DrawerLayout.d.ts +0 -186
- package/lib/typescript/components/DrawerLayout.d.ts.map +0 -1
- package/lib/typescript/components/GestureButtons.d.ts +0 -8
- package/lib/typescript/components/GestureButtons.d.ts.map +0 -1
- package/lib/typescript/components/GestureButtonsProps.d.ts +0 -116
- package/lib/typescript/components/GestureButtonsProps.d.ts.map +0 -1
- package/lib/typescript/components/GestureComponents.d.ts +0 -23
- package/lib/typescript/components/GestureComponents.d.ts.map +0 -1
- package/lib/typescript/components/GestureComponents.web.d.ts +0 -9
- package/lib/typescript/components/GestureComponents.web.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerButton.d.ts +0 -5
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerButton.web.d.ts +0 -5
- package/lib/typescript/components/GestureHandlerButton.web.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts +0 -7
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts +0 -7
- package/lib/typescript/components/GestureHandlerRootView.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts +0 -7
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts.map +0 -1
- package/lib/typescript/components/Pressable/Pressable.d.ts +0 -6
- package/lib/typescript/components/Pressable/Pressable.d.ts.map +0 -1
- package/lib/typescript/components/Pressable/PressableProps.d.ts +0 -125
- package/lib/typescript/components/Pressable/PressableProps.d.ts.map +0 -1
- package/lib/typescript/components/Pressable/index.d.ts +0 -3
- package/lib/typescript/components/Pressable/index.d.ts.map +0 -1
- package/lib/typescript/components/Pressable/utils.d.ts +0 -14
- package/lib/typescript/components/Pressable/utils.d.ts.map +0 -1
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts +0 -168
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts.map +0 -1
- package/lib/typescript/components/ReanimatedSwipeable.d.ts +0 -148
- package/lib/typescript/components/ReanimatedSwipeable.d.ts.map +0 -1
- package/lib/typescript/components/Swipeable.d.ts +0 -184
- package/lib/typescript/components/Swipeable.d.ts.map +0 -1
- package/lib/typescript/components/Text.d.ts +0 -5
- package/lib/typescript/components/Text.d.ts.map +0 -1
- package/lib/typescript/components/gestureHandlerRootHOC.d.ts +0 -4
- package/lib/typescript/components/gestureHandlerRootHOC.d.ts.map +0 -1
- package/lib/typescript/components/touchables/ExtraButtonProps.d.ts +0 -8
- package/lib/typescript/components/touchables/ExtraButtonProps.d.ts.map +0 -1
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +0 -56
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +0 -1
- package/lib/typescript/components/touchables/GenericTouchableProps.d.ts +0 -17
- package/lib/typescript/components/touchables/GenericTouchableProps.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts +0 -42
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts +0 -41
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedback.d.ts +0 -7
- package/lib/typescript/components/touchables/TouchableNativeFeedback.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts +0 -9
- package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +0 -31
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +0 -15
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +0 -1
- package/lib/typescript/components/touchables/index.d.ts +0 -8
- package/lib/typescript/components/touchables/index.d.ts.map +0 -1
- package/lib/typescript/components/utils.d.ts +0 -5
- package/lib/typescript/components/utils.d.ts.map +0 -1
- package/lib/typescript/findNodeHandle.d.ts +0 -3
- package/lib/typescript/findNodeHandle.d.ts.map +0 -1
- package/lib/typescript/findNodeHandle.web.d.ts +0 -3
- package/lib/typescript/findNodeHandle.web.d.ts.map +0 -1
- package/lib/typescript/getShadowNodeFromRef.d.ts +0 -2
- package/lib/typescript/getShadowNodeFromRef.d.ts.map +0 -1
- package/lib/typescript/getShadowNodeFromRef.web.d.ts +0 -2
- package/lib/typescript/getShadowNodeFromRef.web.d.ts.map +0 -1
- package/lib/typescript/ghQueueMicrotask.d.ts +0 -2
- package/lib/typescript/ghQueueMicrotask.d.ts.map +0 -1
- package/lib/typescript/handlers/FlingGestureHandler.d.ts +0 -39
- package/lib/typescript/handlers/FlingGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts +0 -45
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts +0 -195
- package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts.map +0 -1
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts +0 -36
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +0 -33
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts +0 -100
- package/lib/typescript/handlers/PanGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/PinchGestureHandler.d.ts +0 -17
- package/lib/typescript/handlers/PinchGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/PressabilityDebugView.d.ts +0 -2
- package/lib/typescript/handlers/PressabilityDebugView.d.ts.map +0 -1
- package/lib/typescript/handlers/PressabilityDebugView.web.d.ts +0 -2
- package/lib/typescript/handlers/PressabilityDebugView.web.d.ts.map +0 -1
- package/lib/typescript/handlers/RotationGestureHandler.d.ts +0 -17
- package/lib/typescript/handlers/RotationGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts +0 -62
- package/lib/typescript/handlers/TapGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/createHandler.d.ts +0 -12
- package/lib/typescript/handlers/createHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/createNativeWrapper.d.ts +0 -4
- package/lib/typescript/handlers/createNativeWrapper.d.ts.map +0 -1
- package/lib/typescript/handlers/customDirectEventTypes.d.ts +0 -2
- package/lib/typescript/handlers/customDirectEventTypes.d.ts.map +0 -1
- package/lib/typescript/handlers/customDirectEventTypes.web.d.ts +0 -3
- package/lib/typescript/handlers/customDirectEventTypes.web.d.ts.map +0 -1
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +0 -79
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +0 -1
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts +0 -44
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts +0 -14
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts +0 -8
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts +0 -14
- package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts +0 -3
- package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts +0 -50
- package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts +0 -4
- package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts +0 -21
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts +0 -5
- package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts +0 -3
- package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts +0 -6
- package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts +0 -3
- package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts +0 -4
- package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +0 -13
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts +0 -5
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/flingGesture.d.ts +0 -22
- package/lib/typescript/handlers/gestures/flingGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +0 -31
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/gesture.d.ts +0 -218
- package/lib/typescript/handlers/gestures/gesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts +0 -22
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts +0 -99
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +0 -12
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts +0 -5
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts +0 -28
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts +0 -26
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/manualGesture.d.ts +0 -8
- package/lib/typescript/handlers/gestures/manualGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts +0 -19
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/panGesture.d.ts +0 -91
- package/lib/typescript/handlers/gestures/panGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts +0 -12
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +0 -15
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts +0 -13
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/tapGesture.d.ts +0 -51
- package/lib/typescript/handlers/gestures/tapGesture.d.ts.map +0 -1
- package/lib/typescript/handlers/getNextHandlerTag.d.ts +0 -2
- package/lib/typescript/handlers/getNextHandlerTag.d.ts.map +0 -1
- package/lib/typescript/handlers/handlersRegistry.d.ts +0 -15
- package/lib/typescript/handlers/handlersRegistry.d.ts.map +0 -1
- package/lib/typescript/handlers/utils.d.ts +0 -8
- package/lib/typescript/handlers/utils.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -59
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/init.d.ts +0 -3
- package/lib/typescript/init.d.ts.map +0 -1
- package/lib/typescript/jestUtils/index.d.ts +0 -2
- package/lib/typescript/jestUtils/index.d.ts.map +0 -1
- package/lib/typescript/jestUtils/jestUtils.d.ts +0 -30
- package/lib/typescript/jestUtils/jestUtils.d.ts.map +0 -1
- package/lib/typescript/mocks.d.ts +0 -47
- package/lib/typescript/mocks.d.ts.map +0 -1
- package/lib/typescript/mountRegistry.d.ts +0 -17
- package/lib/typescript/mountRegistry.d.ts.map +0 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +0 -15
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +0 -1
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +0 -17
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +0 -1
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +0 -6
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/typeUtils.d.ts +0 -2
- package/lib/typescript/typeUtils.d.ts.map +0 -1
- package/lib/typescript/utils.d.ts +0 -21
- package/lib/typescript/utils.d.ts.map +0 -1
- package/lib/typescript/web/Gestures.d.ts +0 -37
- package/lib/typescript/web/Gestures.d.ts.map +0 -1
- package/lib/typescript/web/constants.d.ts +0 -3
- package/lib/typescript/web/constants.d.ts.map +0 -1
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts +0 -31
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts.map +0 -1
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts +0 -30
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts.map +0 -1
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts +0 -27
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/GestureHandler.d.ts +0 -103
- package/lib/typescript/web/handlers/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +0 -11
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/IGestureHandler.d.ts +0 -38
- package/lib/typescript/web/handlers/IGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +0 -31
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +0 -11
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +0 -26
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts +0 -62
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +0 -28
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +0 -28
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts +0 -39
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web/interfaces.d.ts +0 -158
- package/lib/typescript/web/interfaces.d.ts.map +0 -1
- package/lib/typescript/web/tools/CircularBuffer.d.ts +0 -12
- package/lib/typescript/web/tools/CircularBuffer.d.ts.map +0 -1
- package/lib/typescript/web/tools/EventManager.d.ts +0 -40
- package/lib/typescript/web/tools/EventManager.d.ts.map +0 -1
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts +0 -25
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts.map +0 -1
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +0 -32
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts.map +0 -1
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +0 -36
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts.map +0 -1
- package/lib/typescript/web/tools/InteractionManager.d.ts +0 -18
- package/lib/typescript/web/tools/InteractionManager.d.ts.map +0 -1
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts +0 -14
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts.map +0 -1
- package/lib/typescript/web/tools/LeastSquareSolver.d.ts +0 -13
- package/lib/typescript/web/tools/LeastSquareSolver.d.ts.map +0 -1
- package/lib/typescript/web/tools/NodeManager.d.ts +0 -13
- package/lib/typescript/web/tools/NodeManager.d.ts.map +0 -1
- package/lib/typescript/web/tools/PointerEventManager.d.ts +0 -20
- package/lib/typescript/web/tools/PointerEventManager.d.ts.map +0 -1
- package/lib/typescript/web/tools/PointerTracker.d.ts +0 -51
- package/lib/typescript/web/tools/PointerTracker.d.ts.map +0 -1
- package/lib/typescript/web/tools/Vector.d.ts +0 -16
- package/lib/typescript/web/tools/Vector.d.ts.map +0 -1
- package/lib/typescript/web/tools/VelocityTracker.d.ts +0 -14
- package/lib/typescript/web/tools/VelocityTracker.d.ts.map +0 -1
- package/lib/typescript/web/tools/WheelEventManager.d.ts +0 -12
- package/lib/typescript/web/tools/WheelEventManager.d.ts.map +0 -1
- package/lib/typescript/web/utils.d.ts +0 -15
- package/lib/typescript/web/utils.d.ts.map +0 -1
- package/lib/typescript/web_hammer/DiscreteGestureHandler.d.ts +0 -21
- package/lib/typescript/web_hammer/DiscreteGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/DraggingGestureHandler.d.ts +0 -16
- package/lib/typescript/web_hammer/DraggingGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/Errors.d.ts +0 -4
- package/lib/typescript/web_hammer/Errors.d.ts.map +0 -1
- package/lib/typescript/web_hammer/FlingGestureHandler.d.ts +0 -44
- package/lib/typescript/web_hammer/FlingGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/GestureHandler.d.ts +0 -146
- package/lib/typescript/web_hammer/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/IndiscreteGestureHandler.d.ts +0 -41
- package/lib/typescript/web_hammer/IndiscreteGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/LongPressGestureHandler.d.ts +0 -39
- package/lib/typescript/web_hammer/LongPressGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/NativeViewGestureHandler.d.ts +0 -8
- package/lib/typescript/web_hammer/NativeViewGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/NodeManager.d.ts +0 -8
- package/lib/typescript/web_hammer/NodeManager.d.ts.map +0 -1
- package/lib/typescript/web_hammer/PanGestureHandler.d.ts +0 -57
- package/lib/typescript/web_hammer/PanGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/PinchGestureHandler.d.ts +0 -14
- package/lib/typescript/web_hammer/PinchGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/PressGestureHandler.d.ts +0 -84
- package/lib/typescript/web_hammer/PressGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/RotationGestureHandler.d.ts +0 -14
- package/lib/typescript/web_hammer/RotationGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/TapGestureHandler.d.ts +0 -58
- package/lib/typescript/web_hammer/TapGestureHandler.d.ts.map +0 -1
- package/lib/typescript/web_hammer/constants.d.ts +0 -40
- package/lib/typescript/web_hammer/constants.d.ts.map +0 -1
- package/lib/typescript/web_hammer/utils.d.ts +0 -10
- package/lib/typescript/web_hammer/utils.d.ts.map +0 -1
@@ -1,318 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
import React, { forwardRef, useCallback, useMemo, useRef, useState } from 'react';
|
4
|
-
import { GestureObjects as Gesture } from '../../handlers/gestures/gestureObjects';
|
5
|
-
import { GestureDetector } from '../../handlers/gestures/GestureDetector';
|
6
|
-
import { Platform, processColor } from 'react-native';
|
7
|
-
import NativeButton from '../GestureHandlerButton';
|
8
|
-
import { numberAsInset, gestureToPressableEvent, isTouchWithinInset, gestureTouchToPressableEvent, addInsets } from './utils';
|
9
|
-
import { PressabilityDebugView } from '../../handlers/PressabilityDebugView';
|
10
|
-
import { INT32_MAX, isFabric, isTestEnv } from '../../utils';
|
11
|
-
import { applyRelationProp } from '../utils';
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
-
const DEFAULT_LONG_PRESS_DURATION = 500;
|
14
|
-
const IS_TEST_ENV = isTestEnv();
|
15
|
-
let IS_FABRIC = null;
|
16
|
-
const Pressable = /*#__PURE__*/forwardRef((props, pressableRef) => {
|
17
|
-
const {
|
18
|
-
testOnly_pressed,
|
19
|
-
hitSlop,
|
20
|
-
pressRetentionOffset,
|
21
|
-
delayHoverIn,
|
22
|
-
onHoverIn,
|
23
|
-
delayHoverOut,
|
24
|
-
onHoverOut,
|
25
|
-
delayLongPress,
|
26
|
-
unstable_pressDelay,
|
27
|
-
onPress,
|
28
|
-
onPressIn,
|
29
|
-
onPressOut,
|
30
|
-
onLongPress,
|
31
|
-
style,
|
32
|
-
children,
|
33
|
-
android_disableSound,
|
34
|
-
android_ripple,
|
35
|
-
disabled,
|
36
|
-
accessible,
|
37
|
-
simultaneousWithExternalGesture,
|
38
|
-
requireExternalGestureToFail,
|
39
|
-
blocksExternalGesture,
|
40
|
-
...remainingProps
|
41
|
-
} = props;
|
42
|
-
const relationProps = {
|
43
|
-
simultaneousWithExternalGesture,
|
44
|
-
requireExternalGestureToFail,
|
45
|
-
blocksExternalGesture
|
46
|
-
};
|
47
|
-
const [pressedState, setPressedState] = useState(testOnly_pressed ?? false);
|
48
|
-
|
49
|
-
// Disabled when onLongPress has been called
|
50
|
-
const isPressCallbackEnabled = useRef(true);
|
51
|
-
const hasPassedBoundsChecks = useRef(false);
|
52
|
-
const shouldPreventNativeEffects = useRef(false);
|
53
|
-
const normalizedHitSlop = useMemo(() => typeof hitSlop === 'number' ? numberAsInset(hitSlop) : hitSlop ?? {}, [hitSlop]);
|
54
|
-
const normalizedPressRetentionOffset = useMemo(() => typeof pressRetentionOffset === 'number' ? numberAsInset(pressRetentionOffset) : pressRetentionOffset ?? {}, [pressRetentionOffset]);
|
55
|
-
const hoverInTimeout = useRef(null);
|
56
|
-
const hoverOutTimeout = useRef(null);
|
57
|
-
const hoverGesture = useMemo(() => Gesture.Hover().manualActivation(true) // Stops Hover from blocking Native gesture activation on web
|
58
|
-
.cancelsTouchesInView(false).onBegin(event => {
|
59
|
-
if (hoverOutTimeout.current) {
|
60
|
-
clearTimeout(hoverOutTimeout.current);
|
61
|
-
}
|
62
|
-
if (delayHoverIn) {
|
63
|
-
hoverInTimeout.current = setTimeout(() => onHoverIn?.(gestureToPressableEvent(event)), delayHoverIn);
|
64
|
-
return;
|
65
|
-
}
|
66
|
-
onHoverIn?.(gestureToPressableEvent(event));
|
67
|
-
}).onFinalize(event => {
|
68
|
-
if (hoverInTimeout.current) {
|
69
|
-
clearTimeout(hoverInTimeout.current);
|
70
|
-
}
|
71
|
-
if (delayHoverOut) {
|
72
|
-
hoverOutTimeout.current = setTimeout(() => onHoverOut?.(gestureToPressableEvent(event)), delayHoverOut);
|
73
|
-
return;
|
74
|
-
}
|
75
|
-
onHoverOut?.(gestureToPressableEvent(event));
|
76
|
-
}), [delayHoverIn, delayHoverOut, onHoverIn, onHoverOut]);
|
77
|
-
const pressDelayTimeoutRef = useRef(null);
|
78
|
-
const isTouchPropagationAllowed = useRef(false);
|
79
|
-
|
80
|
-
// iOS only: due to varying flow of gestures, events sometimes have to be saved for later use
|
81
|
-
const deferredEventPayload = useRef(null);
|
82
|
-
const pressInHandler = useCallback(event => {
|
83
|
-
if (handlingOnTouchesDown.current) {
|
84
|
-
deferredEventPayload.current = event;
|
85
|
-
}
|
86
|
-
if (!isTouchPropagationAllowed.current) {
|
87
|
-
return;
|
88
|
-
}
|
89
|
-
deferredEventPayload.current = null;
|
90
|
-
onPressIn?.(event);
|
91
|
-
isPressCallbackEnabled.current = true;
|
92
|
-
pressDelayTimeoutRef.current = null;
|
93
|
-
setPressedState(true);
|
94
|
-
}, [onPressIn]);
|
95
|
-
const pressOutHandler = useCallback(event => {
|
96
|
-
if (!isTouchPropagationAllowed.current) {
|
97
|
-
hasPassedBoundsChecks.current = false;
|
98
|
-
isPressCallbackEnabled.current = true;
|
99
|
-
deferredEventPayload.current = null;
|
100
|
-
if (longPressTimeoutRef.current) {
|
101
|
-
clearTimeout(longPressTimeoutRef.current);
|
102
|
-
longPressTimeoutRef.current = null;
|
103
|
-
}
|
104
|
-
if (pressDelayTimeoutRef.current) {
|
105
|
-
clearTimeout(pressDelayTimeoutRef.current);
|
106
|
-
pressDelayTimeoutRef.current = null;
|
107
|
-
}
|
108
|
-
return;
|
109
|
-
}
|
110
|
-
if (!hasPassedBoundsChecks.current || event.nativeEvent.touches.length > event.nativeEvent.changedTouches.length) {
|
111
|
-
return;
|
112
|
-
}
|
113
|
-
if (unstable_pressDelay && pressDelayTimeoutRef.current !== null) {
|
114
|
-
// When delay is preemptively finished by lifting touches,
|
115
|
-
// we want to immediately activate it's effects - pressInHandler,
|
116
|
-
// even though we are located at the pressOutHandler
|
117
|
-
clearTimeout(pressDelayTimeoutRef.current);
|
118
|
-
pressInHandler(event);
|
119
|
-
}
|
120
|
-
if (deferredEventPayload.current) {
|
121
|
-
onPressIn?.(deferredEventPayload.current);
|
122
|
-
deferredEventPayload.current = null;
|
123
|
-
}
|
124
|
-
onPressOut?.(event);
|
125
|
-
if (isPressCallbackEnabled.current) {
|
126
|
-
onPress?.(event);
|
127
|
-
}
|
128
|
-
if (longPressTimeoutRef.current) {
|
129
|
-
clearTimeout(longPressTimeoutRef.current);
|
130
|
-
longPressTimeoutRef.current = null;
|
131
|
-
}
|
132
|
-
isTouchPropagationAllowed.current = false;
|
133
|
-
hasPassedBoundsChecks.current = false;
|
134
|
-
isPressCallbackEnabled.current = true;
|
135
|
-
setPressedState(false);
|
136
|
-
}, [onPress, onPressIn, onPressOut, pressInHandler, unstable_pressDelay]);
|
137
|
-
const handlingOnTouchesDown = useRef(false);
|
138
|
-
const onEndHandlingTouchesDown = useRef(null);
|
139
|
-
const cancelledMidPress = useRef(false);
|
140
|
-
const activateLongPress = useCallback(event => {
|
141
|
-
if (!isTouchPropagationAllowed.current) {
|
142
|
-
return;
|
143
|
-
}
|
144
|
-
if (hasPassedBoundsChecks.current && onLongPress) {
|
145
|
-
onLongPress(gestureTouchToPressableEvent(event));
|
146
|
-
isPressCallbackEnabled.current = false;
|
147
|
-
}
|
148
|
-
if (longPressTimeoutRef.current) {
|
149
|
-
clearTimeout(longPressTimeoutRef.current);
|
150
|
-
longPressTimeoutRef.current = null;
|
151
|
-
}
|
152
|
-
}, [onLongPress]);
|
153
|
-
const longPressTimeoutRef = useRef(null);
|
154
|
-
const longPressMinDuration = (delayLongPress ?? DEFAULT_LONG_PRESS_DURATION) + (unstable_pressDelay ?? 0);
|
155
|
-
const innerPressableRef = useRef(null);
|
156
|
-
const measureCallback = useCallback((width, height, event) => {
|
157
|
-
if (!isTouchWithinInset({
|
158
|
-
width,
|
159
|
-
height
|
160
|
-
}, normalizedHitSlop, event.changedTouches.at(-1)) || hasPassedBoundsChecks.current || cancelledMidPress.current) {
|
161
|
-
cancelledMidPress.current = false;
|
162
|
-
onEndHandlingTouchesDown.current = null;
|
163
|
-
handlingOnTouchesDown.current = false;
|
164
|
-
return;
|
165
|
-
}
|
166
|
-
hasPassedBoundsChecks.current = true;
|
167
|
-
|
168
|
-
// In case of multiple touches, the first one starts long press gesture
|
169
|
-
if (longPressTimeoutRef.current === null) {
|
170
|
-
// Start long press gesture timer
|
171
|
-
longPressTimeoutRef.current = setTimeout(() => activateLongPress(event), longPressMinDuration);
|
172
|
-
}
|
173
|
-
if (unstable_pressDelay) {
|
174
|
-
pressDelayTimeoutRef.current = setTimeout(() => {
|
175
|
-
pressInHandler(gestureTouchToPressableEvent(event));
|
176
|
-
}, unstable_pressDelay);
|
177
|
-
} else {
|
178
|
-
pressInHandler(gestureTouchToPressableEvent(event));
|
179
|
-
}
|
180
|
-
onEndHandlingTouchesDown.current?.();
|
181
|
-
onEndHandlingTouchesDown.current = null;
|
182
|
-
handlingOnTouchesDown.current = false;
|
183
|
-
}, [activateLongPress, longPressMinDuration, normalizedHitSlop, pressInHandler, unstable_pressDelay]);
|
184
|
-
const pressAndTouchGesture = useMemo(() => Gesture.LongPress().minDuration(INT32_MAX) // Stops long press from blocking native gesture
|
185
|
-
.maxDistance(INT32_MAX) // Stops long press from cancelling after set distance
|
186
|
-
.cancelsTouchesInView(false).onTouchesDown(event => {
|
187
|
-
handlingOnTouchesDown.current = true;
|
188
|
-
if (pressableRef) {
|
189
|
-
pressableRef.current?.measure((_x, _y, width, height) => {
|
190
|
-
measureCallback(width, height, event);
|
191
|
-
});
|
192
|
-
} else {
|
193
|
-
innerPressableRef.current?.measure((_x, _y, width, height) => {
|
194
|
-
measureCallback(width, height, event);
|
195
|
-
});
|
196
|
-
}
|
197
|
-
}).onTouchesUp(event => {
|
198
|
-
if (handlingOnTouchesDown.current) {
|
199
|
-
onEndHandlingTouchesDown.current = () => pressOutHandler(gestureTouchToPressableEvent(event));
|
200
|
-
return;
|
201
|
-
}
|
202
|
-
// On iOS, short taps will make LongPress gesture call onTouchesUp before Native gesture calls onStart
|
203
|
-
// This variable ensures that onStart isn't detected as the first gesture since Pressable is pressed.
|
204
|
-
if (deferredEventPayload.current !== null) {
|
205
|
-
shouldPreventNativeEffects.current = true;
|
206
|
-
}
|
207
|
-
pressOutHandler(gestureTouchToPressableEvent(event));
|
208
|
-
}).onTouchesCancelled(event => {
|
209
|
-
isPressCallbackEnabled.current = false;
|
210
|
-
if (handlingOnTouchesDown.current) {
|
211
|
-
cancelledMidPress.current = true;
|
212
|
-
onEndHandlingTouchesDown.current = () => pressOutHandler(gestureTouchToPressableEvent(event));
|
213
|
-
return;
|
214
|
-
}
|
215
|
-
if (!hasPassedBoundsChecks.current || event.allTouches.length > event.changedTouches.length) {
|
216
|
-
return;
|
217
|
-
}
|
218
|
-
pressOutHandler(gestureTouchToPressableEvent(event));
|
219
|
-
}), [pressableRef, measureCallback, pressOutHandler]);
|
220
|
-
|
221
|
-
// RNButton is placed inside ButtonGesture to enable Android's ripple and to capture non-propagating events
|
222
|
-
const buttonGesture = useMemo(() => Gesture.Native().onBegin(() => {
|
223
|
-
// Android sets BEGAN state on press down
|
224
|
-
if (Platform.OS === 'android' || Platform.OS === 'macos') {
|
225
|
-
isTouchPropagationAllowed.current = true;
|
226
|
-
}
|
227
|
-
}).onStart(() => {
|
228
|
-
if (Platform.OS === 'web') {
|
229
|
-
isTouchPropagationAllowed.current = true;
|
230
|
-
}
|
231
|
-
|
232
|
-
// iOS sets ACTIVE state on press down
|
233
|
-
if (Platform.OS !== 'ios') {
|
234
|
-
return;
|
235
|
-
}
|
236
|
-
if (deferredEventPayload.current) {
|
237
|
-
isTouchPropagationAllowed.current = true;
|
238
|
-
if (hasPassedBoundsChecks.current) {
|
239
|
-
pressInHandler(deferredEventPayload.current);
|
240
|
-
deferredEventPayload.current = null;
|
241
|
-
} else {
|
242
|
-
pressOutHandler(deferredEventPayload.current);
|
243
|
-
isTouchPropagationAllowed.current = false;
|
244
|
-
}
|
245
|
-
return;
|
246
|
-
}
|
247
|
-
if (hasPassedBoundsChecks.current) {
|
248
|
-
isTouchPropagationAllowed.current = true;
|
249
|
-
return;
|
250
|
-
}
|
251
|
-
if (shouldPreventNativeEffects.current) {
|
252
|
-
shouldPreventNativeEffects.current = false;
|
253
|
-
if (!handlingOnTouchesDown.current) {
|
254
|
-
return;
|
255
|
-
}
|
256
|
-
}
|
257
|
-
isTouchPropagationAllowed.current = true;
|
258
|
-
}), [pressInHandler, pressOutHandler]);
|
259
|
-
const appliedHitSlop = addInsets(normalizedHitSlop, normalizedPressRetentionOffset);
|
260
|
-
const isPressableEnabled = disabled !== true;
|
261
|
-
const gestures = [buttonGesture, pressAndTouchGesture, hoverGesture];
|
262
|
-
for (const gesture of gestures) {
|
263
|
-
gesture.enabled(isPressableEnabled);
|
264
|
-
gesture.runOnJS(true);
|
265
|
-
gesture.hitSlop(appliedHitSlop);
|
266
|
-
gesture.shouldCancelWhenOutside(Platform.OS === 'web' ? false : true);
|
267
|
-
Object.entries(relationProps).forEach(([relationName, relation]) => {
|
268
|
-
applyRelationProp(gesture, relationName, relation);
|
269
|
-
});
|
270
|
-
}
|
271
|
-
|
272
|
-
// Uses different hitSlop, to activate on hitSlop area instead of pressRetentionOffset area
|
273
|
-
buttonGesture.hitSlop(normalizedHitSlop);
|
274
|
-
const gesture = Gesture.Simultaneous(...gestures);
|
275
|
-
|
276
|
-
// `cursor: 'pointer'` on `RNButton` crashes iOS
|
277
|
-
const pointerStyle = Platform.OS === 'web' ? {
|
278
|
-
cursor: 'pointer'
|
279
|
-
} : {};
|
280
|
-
const styleProp = typeof style === 'function' ? style({
|
281
|
-
pressed: pressedState
|
282
|
-
}) : style;
|
283
|
-
const childrenProp = typeof children === 'function' ? children({
|
284
|
-
pressed: pressedState
|
285
|
-
}) : children;
|
286
|
-
const rippleColor = useMemo(() => {
|
287
|
-
if (IS_FABRIC === null) {
|
288
|
-
IS_FABRIC = isFabric();
|
289
|
-
}
|
290
|
-
const defaultRippleColor = android_ripple ? undefined : 'transparent';
|
291
|
-
const unprocessedRippleColor = android_ripple?.color ?? defaultRippleColor;
|
292
|
-
return IS_FABRIC ? unprocessedRippleColor : processColor(unprocessedRippleColor);
|
293
|
-
}, [android_ripple]);
|
294
|
-
return /*#__PURE__*/_jsx(GestureDetector, {
|
295
|
-
gesture: gesture,
|
296
|
-
children: /*#__PURE__*/_jsxs(NativeButton, {
|
297
|
-
...remainingProps,
|
298
|
-
ref: pressableRef ?? innerPressableRef,
|
299
|
-
accessible: accessible !== false,
|
300
|
-
hitSlop: appliedHitSlop,
|
301
|
-
enabled: isPressableEnabled,
|
302
|
-
touchSoundDisabled: android_disableSound ?? undefined,
|
303
|
-
rippleColor: rippleColor,
|
304
|
-
rippleRadius: android_ripple?.radius ?? undefined,
|
305
|
-
style: [pointerStyle, styleProp],
|
306
|
-
testOnly_onPress: IS_TEST_ENV ? onPress : undefined,
|
307
|
-
testOnly_onPressIn: IS_TEST_ENV ? onPressIn : undefined,
|
308
|
-
testOnly_onPressOut: IS_TEST_ENV ? onPressOut : undefined,
|
309
|
-
testOnly_onLongPress: IS_TEST_ENV ? onLongPress : undefined,
|
310
|
-
children: [childrenProp, __DEV__ ? /*#__PURE__*/_jsx(PressabilityDebugView, {
|
311
|
-
color: "red",
|
312
|
-
hitSlop: normalizedHitSlop
|
313
|
-
}) : null]
|
314
|
-
})
|
315
|
-
});
|
316
|
-
});
|
317
|
-
export default Pressable;
|
318
|
-
//# sourceMappingURL=Pressable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useCallback","useMemo","useRef","useState","GestureObjects","Gesture","GestureDetector","Platform","processColor","NativeButton","numberAsInset","gestureToPressableEvent","isTouchWithinInset","gestureTouchToPressableEvent","addInsets","PressabilityDebugView","INT32_MAX","isFabric","isTestEnv","applyRelationProp","jsx","_jsx","jsxs","_jsxs","DEFAULT_LONG_PRESS_DURATION","IS_TEST_ENV","IS_FABRIC","Pressable","props","pressableRef","testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","onHoverIn","delayHoverOut","onHoverOut","delayLongPress","unstable_pressDelay","onPress","onPressIn","onPressOut","onLongPress","style","children","android_disableSound","android_ripple","disabled","accessible","simultaneousWithExternalGesture","requireExternalGestureToFail","blocksExternalGesture","remainingProps","relationProps","pressedState","setPressedState","isPressCallbackEnabled","hasPassedBoundsChecks","shouldPreventNativeEffects","normalizedHitSlop","normalizedPressRetentionOffset","hoverInTimeout","hoverOutTimeout","hoverGesture","Hover","manualActivation","cancelsTouchesInView","onBegin","event","current","clearTimeout","setTimeout","onFinalize","pressDelayTimeoutRef","isTouchPropagationAllowed","deferredEventPayload","pressInHandler","handlingOnTouchesDown","pressOutHandler","longPressTimeoutRef","nativeEvent","touches","length","changedTouches","onEndHandlingTouchesDown","cancelledMidPress","activateLongPress","longPressMinDuration","innerPressableRef","measureCallback","width","height","at","pressAndTouchGesture","LongPress","minDuration","maxDistance","onTouchesDown","measure","_x","_y","onTouchesUp","onTouchesCancelled","allTouches","buttonGesture","Native","OS","onStart","appliedHitSlop","isPressableEnabled","gestures","gesture","enabled","runOnJS","shouldCancelWhenOutside","Object","entries","forEach","relationName","relation","Simultaneous","pointerStyle","cursor","styleProp","pressed","childrenProp","rippleColor","defaultRippleColor","undefined","unprocessedRippleColor","color","ref","touchSoundDisabled","rippleRadius","radius","testOnly_onPress","testOnly_onPressIn","testOnly_onPressOut","testOnly_onLongPress","__DEV__"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAEVC,UAAU,EAEVC,WAAW,EACXC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,cAAc,IAAIC,OAAO,QAAQ,wCAAwC;AAClF,SAASC,eAAe,QAAQ,yCAAyC;AAEzE,SAEEC,QAAQ,EAIRC,YAAY,QACP,cAAc;AACrB,OAAOC,YAAY,MAAM,yBAAyB;AAClD,SACEC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,4BAA4B,EAC5BC,SAAS,QACJ,SAAS;AAChB,SAASC,qBAAqB,QAAQ,sCAAsC;AAE5E,SAASC,SAAS,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,aAAa;AAC5D,SACEC,iBAAiB,QAGZ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAElB,MAAMC,2BAA2B,GAAG,GAAG;AACvC,MAAMC,WAAW,GAAGP,SAAS,CAAC,CAAC;AAE/B,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,UAAU,GAAGuF,SAAU;MAC1DU,oBAAoB,EAAEjH,WAAW,GAAGiB,WAAW,GAAGsF,SAAU;MAAApF,QAAA,GAC3DiF,YAAY,EACZc,OAAO,gBACNtH,IAAA,CAACN,qBAAqB;QAACmH,KAAK,EAAC,KAAK;QAACnG,OAAO,EAAE4B;MAAkB,CAAE,CAAC,GAC/D,IAAI;IAAA,CACI;EAAC,CACA,CAAC;AAEtB,CACF,CAAC;AAED,eAAehC,SAAS","ignoreList":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Pressable/PressableProps.tsx"],"mappings":"","ignoreList":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["default"],"sourceRoot":"../../../../src","sources":["components/Pressable/index.ts"],"mappings":";;AAIA,SAASA,OAAO,QAAQ,aAAa","ignoreList":[]}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
const numberAsInset = value => ({
|
4
|
-
left: value,
|
5
|
-
right: value,
|
6
|
-
top: value,
|
7
|
-
bottom: value
|
8
|
-
});
|
9
|
-
const addInsets = (a, b) => ({
|
10
|
-
left: (a.left ?? 0) + (b.left ?? 0),
|
11
|
-
right: (a.right ?? 0) + (b.right ?? 0),
|
12
|
-
top: (a.top ?? 0) + (b.top ?? 0),
|
13
|
-
bottom: (a.bottom ?? 0) + (b.bottom ?? 0)
|
14
|
-
});
|
15
|
-
const touchDataToPressEvent = (data, timestamp, targetId) => ({
|
16
|
-
identifier: data.id,
|
17
|
-
locationX: data.x,
|
18
|
-
locationY: data.y,
|
19
|
-
pageX: data.absoluteX,
|
20
|
-
pageY: data.absoluteY,
|
21
|
-
target: targetId,
|
22
|
-
timestamp: timestamp,
|
23
|
-
touches: [],
|
24
|
-
// Always empty - legacy compatibility
|
25
|
-
changedTouches: [] // Always empty - legacy compatibility
|
26
|
-
});
|
27
|
-
const gestureToPressEvent = (event, timestamp, targetId) => ({
|
28
|
-
identifier: event.handlerTag,
|
29
|
-
locationX: event.x,
|
30
|
-
locationY: event.y,
|
31
|
-
pageX: event.absoluteX,
|
32
|
-
pageY: event.absoluteY,
|
33
|
-
target: targetId,
|
34
|
-
timestamp: timestamp,
|
35
|
-
touches: [],
|
36
|
-
// Always empty - legacy compatibility
|
37
|
-
changedTouches: [] // Always empty - legacy compatibility
|
38
|
-
});
|
39
|
-
const isTouchWithinInset = (dimensions, inset, touch) => (touch?.x ?? 0) < (inset.right ?? 0) + dimensions.width && (touch?.y ?? 0) < (inset.bottom ?? 0) + dimensions.height && (touch?.x ?? 0) > -(inset.left ?? 0) && (touch?.y ?? 0) > -(inset.top ?? 0);
|
40
|
-
const gestureToPressableEvent = event => {
|
41
|
-
const timestamp = Date.now();
|
42
|
-
|
43
|
-
// As far as I can see, there isn't a conventional way of getting targetId with the data we get
|
44
|
-
const targetId = 0;
|
45
|
-
const pressEvent = gestureToPressEvent(event, timestamp, targetId);
|
46
|
-
return {
|
47
|
-
nativeEvent: {
|
48
|
-
touches: [pressEvent],
|
49
|
-
changedTouches: [pressEvent],
|
50
|
-
identifier: pressEvent.identifier,
|
51
|
-
locationX: event.x,
|
52
|
-
locationY: event.y,
|
53
|
-
pageX: event.absoluteX,
|
54
|
-
pageY: event.absoluteY,
|
55
|
-
target: targetId,
|
56
|
-
timestamp: timestamp,
|
57
|
-
force: undefined
|
58
|
-
}
|
59
|
-
};
|
60
|
-
};
|
61
|
-
const gestureTouchToPressableEvent = event => {
|
62
|
-
const timestamp = Date.now();
|
63
|
-
|
64
|
-
// As far as I can see, there isn't a conventional way of getting targetId with the data we get
|
65
|
-
const targetId = 0;
|
66
|
-
const touchesList = event.allTouches.map(touch => touchDataToPressEvent(touch, timestamp, targetId));
|
67
|
-
const changedTouchesList = event.changedTouches.map(touch => touchDataToPressEvent(touch, timestamp, targetId));
|
68
|
-
return {
|
69
|
-
nativeEvent: {
|
70
|
-
touches: touchesList,
|
71
|
-
changedTouches: changedTouchesList,
|
72
|
-
identifier: event.handlerTag,
|
73
|
-
locationX: event.allTouches.at(0)?.x ?? -1,
|
74
|
-
locationY: event.allTouches.at(0)?.y ?? -1,
|
75
|
-
pageX: event.allTouches.at(0)?.absoluteX ?? -1,
|
76
|
-
pageY: event.allTouches.at(0)?.absoluteY ?? -1,
|
77
|
-
target: targetId,
|
78
|
-
timestamp: timestamp,
|
79
|
-
force: undefined
|
80
|
-
}
|
81
|
-
};
|
82
|
-
};
|
83
|
-
export { numberAsInset, addInsets, isTouchWithinInset, gestureToPressableEvent, gestureTouchToPressableEvent };
|
84
|
-
//# sourceMappingURL=utils.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["numberAsInset","value","left","right","top","bottom","addInsets","a","b","touchDataToPressEvent","data","timestamp","targetId","identifier","id","locationX","x","locationY","y","pageX","absoluteX","pageY","absoluteY","target","touches","changedTouches","gestureToPressEvent","event","handlerTag","isTouchWithinInset","dimensions","inset","touch","width","height","gestureToPressableEvent","Date","now","pressEvent","nativeEvent","force","undefined","gestureTouchToPressableEvent","touchesList","allTouches","map","changedTouchesList","at"],"sourceRoot":"../../../../src","sources":["components/Pressable/utils.ts"],"mappings":";;AAYA,MAAMA,aAAa,GAAIC,KAAa,KAAc;EAChDC,IAAI,EAAED,KAAK;EACXE,KAAK,EAAEF,KAAK;EACZG,GAAG,EAAEH,KAAK;EACVI,MAAM,EAAEJ;AACV,CAAC,CAAC;AAEF,MAAMK,SAAS,GAAGA,CAACC,CAAS,EAAEC,CAAS,MAAc;EACnDN,IAAI,EAAE,CAACK,CAAC,CAACL,IAAI,IAAI,CAAC,KAAKM,CAAC,CAACN,IAAI,IAAI,CAAC,CAAC;EACnCC,KAAK,EAAE,CAACI,CAAC,CAACJ,KAAK,IAAI,CAAC,KAAKK,CAAC,CAACL,KAAK,IAAI,CAAC,CAAC;EACtCC,GAAG,EAAE,CAACG,CAAC,CAACH,GAAG,IAAI,CAAC,KAAKI,CAAC,CAACJ,GAA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