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,364 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
// Similarily to the DrawerLayout component this deserves to be put in a
|
4
|
-
// separate repo. Although, keeping it here for the time being will allow us to
|
5
|
-
// move faster and fix possible issues quicker
|
6
|
-
|
7
|
-
import * as React from 'react';
|
8
|
-
import { Component } from 'react';
|
9
|
-
import { Animated, StyleSheet, View, I18nManager } from 'react-native';
|
10
|
-
import { PanGestureHandler } from '../handlers/PanGestureHandler';
|
11
|
-
import { TapGestureHandler } from '../handlers/TapGestureHandler';
|
12
|
-
import { State } from '../State';
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
14
|
-
const DRAG_TOSS = 0.05;
|
15
|
-
|
16
|
-
// Animated.AnimatedInterpolation has been converted to a generic type
|
17
|
-
// in @types/react-native 0.70. This way we can maintain compatibility
|
18
|
-
// with all versions of @types/react-native
|
19
|
-
|
20
|
-
/**
|
21
|
-
* @deprecated use Reanimated version of Swipeable instead
|
22
|
-
*
|
23
|
-
* This component allows for implementing swipeable rows or similar interaction.
|
24
|
-
*/
|
25
|
-
|
26
|
-
export default class Swipeable extends Component {
|
27
|
-
static defaultProps = {
|
28
|
-
friction: 1,
|
29
|
-
overshootFriction: 1,
|
30
|
-
useNativeAnimations: true
|
31
|
-
};
|
32
|
-
constructor(props) {
|
33
|
-
super(props);
|
34
|
-
const dragX = new Animated.Value(0);
|
35
|
-
this.state = {
|
36
|
-
dragX,
|
37
|
-
rowTranslation: new Animated.Value(0),
|
38
|
-
rowState: 0,
|
39
|
-
leftWidth: undefined,
|
40
|
-
rightOffset: undefined,
|
41
|
-
rowWidth: undefined
|
42
|
-
};
|
43
|
-
this.updateAnimatedEvent(props, this.state);
|
44
|
-
this.onGestureEvent = Animated.event([{
|
45
|
-
nativeEvent: {
|
46
|
-
translationX: dragX
|
47
|
-
}
|
48
|
-
}], {
|
49
|
-
useNativeDriver: props.useNativeAnimations
|
50
|
-
});
|
51
|
-
}
|
52
|
-
shouldComponentUpdate(props, state) {
|
53
|
-
if (this.props.friction !== props.friction || this.props.overshootLeft !== props.overshootLeft || this.props.overshootRight !== props.overshootRight || this.props.overshootFriction !== props.overshootFriction || this.state.leftWidth !== state.leftWidth || this.state.rightOffset !== state.rightOffset || this.state.rowWidth !== state.rowWidth) {
|
54
|
-
this.updateAnimatedEvent(props, state);
|
55
|
-
}
|
56
|
-
return true;
|
57
|
-
}
|
58
|
-
updateAnimatedEvent = (props, state) => {
|
59
|
-
const {
|
60
|
-
friction,
|
61
|
-
overshootFriction
|
62
|
-
} = props;
|
63
|
-
const {
|
64
|
-
dragX,
|
65
|
-
rowTranslation,
|
66
|
-
leftWidth = 0,
|
67
|
-
rowWidth = 0
|
68
|
-
} = state;
|
69
|
-
const {
|
70
|
-
rightOffset = rowWidth
|
71
|
-
} = state;
|
72
|
-
const rightWidth = Math.max(0, rowWidth - rightOffset);
|
73
|
-
const {
|
74
|
-
overshootLeft = leftWidth > 0,
|
75
|
-
overshootRight = rightWidth > 0
|
76
|
-
} = props;
|
77
|
-
const transX = Animated.add(rowTranslation, dragX.interpolate({
|
78
|
-
inputRange: [0, friction],
|
79
|
-
outputRange: [0, 1]
|
80
|
-
})).interpolate({
|
81
|
-
inputRange: [-rightWidth - 1, -rightWidth, leftWidth, leftWidth + 1],
|
82
|
-
outputRange: [-rightWidth - (overshootRight ? 1 / overshootFriction : 0), -rightWidth, leftWidth, leftWidth + (overshootLeft ? 1 / overshootFriction : 0)]
|
83
|
-
});
|
84
|
-
this.transX = transX;
|
85
|
-
this.showLeftAction = leftWidth > 0 ? transX.interpolate({
|
86
|
-
inputRange: [-1, 0, leftWidth],
|
87
|
-
outputRange: [0, 0, 1]
|
88
|
-
}) : new Animated.Value(0);
|
89
|
-
this.leftActionTranslate = this.showLeftAction.interpolate({
|
90
|
-
inputRange: [0, Number.MIN_VALUE],
|
91
|
-
outputRange: [-10000, 0],
|
92
|
-
extrapolate: 'clamp'
|
93
|
-
});
|
94
|
-
this.showRightAction = rightWidth > 0 ? transX.interpolate({
|
95
|
-
inputRange: [-rightWidth, 0, 1],
|
96
|
-
outputRange: [1, 0, 0]
|
97
|
-
}) : new Animated.Value(0);
|
98
|
-
this.rightActionTranslate = this.showRightAction.interpolate({
|
99
|
-
inputRange: [0, Number.MIN_VALUE],
|
100
|
-
outputRange: [-10000, 0],
|
101
|
-
extrapolate: 'clamp'
|
102
|
-
});
|
103
|
-
};
|
104
|
-
onTapHandlerStateChange = ({
|
105
|
-
nativeEvent
|
106
|
-
}) => {
|
107
|
-
if (nativeEvent.oldState === State.ACTIVE) {
|
108
|
-
this.close();
|
109
|
-
}
|
110
|
-
};
|
111
|
-
onHandlerStateChange = ev => {
|
112
|
-
if (ev.nativeEvent.oldState === State.ACTIVE) {
|
113
|
-
this.handleRelease(ev);
|
114
|
-
}
|
115
|
-
if (ev.nativeEvent.state === State.ACTIVE) {
|
116
|
-
const {
|
117
|
-
velocityX,
|
118
|
-
translationX: dragX
|
119
|
-
} = ev.nativeEvent;
|
120
|
-
const {
|
121
|
-
rowState
|
122
|
-
} = this.state;
|
123
|
-
const {
|
124
|
-
friction
|
125
|
-
} = this.props;
|
126
|
-
const translationX = (dragX + DRAG_TOSS * velocityX) / friction;
|
127
|
-
const direction = rowState === -1 ? 'right' : rowState === 1 ? 'left' : translationX > 0 ? 'left' : 'right';
|
128
|
-
if (rowState === 0) {
|
129
|
-
this.props.onSwipeableOpenStartDrag?.(direction);
|
130
|
-
} else {
|
131
|
-
this.props.onSwipeableCloseStartDrag?.(direction);
|
132
|
-
}
|
133
|
-
}
|
134
|
-
};
|
135
|
-
handleRelease = ev => {
|
136
|
-
const {
|
137
|
-
velocityX,
|
138
|
-
translationX: dragX
|
139
|
-
} = ev.nativeEvent;
|
140
|
-
const {
|
141
|
-
leftWidth = 0,
|
142
|
-
rowWidth = 0,
|
143
|
-
rowState
|
144
|
-
} = this.state;
|
145
|
-
const {
|
146
|
-
rightOffset = rowWidth
|
147
|
-
} = this.state;
|
148
|
-
const rightWidth = rowWidth - rightOffset;
|
149
|
-
const {
|
150
|
-
friction,
|
151
|
-
leftThreshold = leftWidth / 2,
|
152
|
-
rightThreshold = rightWidth / 2
|
153
|
-
} = this.props;
|
154
|
-
const startOffsetX = this.currentOffset() + dragX / friction;
|
155
|
-
const translationX = (dragX + DRAG_TOSS * velocityX) / friction;
|
156
|
-
let toValue = 0;
|
157
|
-
if (rowState === 0) {
|
158
|
-
if (translationX > leftThreshold) {
|
159
|
-
toValue = leftWidth;
|
160
|
-
} else if (translationX < -rightThreshold) {
|
161
|
-
toValue = -rightWidth;
|
162
|
-
}
|
163
|
-
} else if (rowState === 1) {
|
164
|
-
// Swiped to left
|
165
|
-
if (translationX > -leftThreshold) {
|
166
|
-
toValue = leftWidth;
|
167
|
-
}
|
168
|
-
} else {
|
169
|
-
// Swiped to right
|
170
|
-
if (translationX < rightThreshold) {
|
171
|
-
toValue = -rightWidth;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
this.animateRow(startOffsetX, toValue, velocityX / friction);
|
175
|
-
};
|
176
|
-
animateRow = (fromValue, toValue, velocityX) => {
|
177
|
-
const {
|
178
|
-
dragX,
|
179
|
-
rowTranslation
|
180
|
-
} = this.state;
|
181
|
-
dragX.setValue(0);
|
182
|
-
rowTranslation.setValue(fromValue);
|
183
|
-
this.setState({
|
184
|
-
rowState: Math.sign(toValue)
|
185
|
-
});
|
186
|
-
Animated.spring(rowTranslation, {
|
187
|
-
restSpeedThreshold: 1.7,
|
188
|
-
restDisplacementThreshold: 0.4,
|
189
|
-
velocity: velocityX,
|
190
|
-
bounciness: 0,
|
191
|
-
toValue,
|
192
|
-
useNativeDriver: this.props.useNativeAnimations,
|
193
|
-
...this.props.animationOptions
|
194
|
-
}).start(({
|
195
|
-
finished
|
196
|
-
}) => {
|
197
|
-
if (finished) {
|
198
|
-
if (toValue > 0) {
|
199
|
-
this.props.onSwipeableLeftOpen?.();
|
200
|
-
this.props.onSwipeableOpen?.('left', this);
|
201
|
-
} else if (toValue < 0) {
|
202
|
-
this.props.onSwipeableRightOpen?.();
|
203
|
-
this.props.onSwipeableOpen?.('right', this);
|
204
|
-
} else {
|
205
|
-
const closingDirection = fromValue > 0 ? 'left' : 'right';
|
206
|
-
this.props.onSwipeableClose?.(closingDirection, this);
|
207
|
-
}
|
208
|
-
}
|
209
|
-
});
|
210
|
-
if (toValue > 0) {
|
211
|
-
this.props.onSwipeableLeftWillOpen?.();
|
212
|
-
this.props.onSwipeableWillOpen?.('left');
|
213
|
-
} else if (toValue < 0) {
|
214
|
-
this.props.onSwipeableRightWillOpen?.();
|
215
|
-
this.props.onSwipeableWillOpen?.('right');
|
216
|
-
} else {
|
217
|
-
const closingDirection = fromValue > 0 ? 'left' : 'right';
|
218
|
-
this.props.onSwipeableWillClose?.(closingDirection);
|
219
|
-
}
|
220
|
-
};
|
221
|
-
onRowLayout = ({
|
222
|
-
nativeEvent
|
223
|
-
}) => {
|
224
|
-
this.setState({
|
225
|
-
rowWidth: nativeEvent.layout.width
|
226
|
-
});
|
227
|
-
};
|
228
|
-
currentOffset = () => {
|
229
|
-
const {
|
230
|
-
leftWidth = 0,
|
231
|
-
rowWidth = 0,
|
232
|
-
rowState
|
233
|
-
} = this.state;
|
234
|
-
const {
|
235
|
-
rightOffset = rowWidth
|
236
|
-
} = this.state;
|
237
|
-
const rightWidth = rowWidth - rightOffset;
|
238
|
-
if (rowState === 1) {
|
239
|
-
return leftWidth;
|
240
|
-
} else if (rowState === -1) {
|
241
|
-
return -rightWidth;
|
242
|
-
}
|
243
|
-
return 0;
|
244
|
-
};
|
245
|
-
close = () => {
|
246
|
-
this.animateRow(this.currentOffset(), 0);
|
247
|
-
};
|
248
|
-
|
249
|
-
// eslint-disable-next-line @eslint-react/no-unused-class-component-members
|
250
|
-
openLeft = () => {
|
251
|
-
const {
|
252
|
-
leftWidth = 0
|
253
|
-
} = this.state;
|
254
|
-
this.animateRow(this.currentOffset(), leftWidth);
|
255
|
-
};
|
256
|
-
|
257
|
-
// eslint-disable-next-line @eslint-react/no-unused-class-component-members
|
258
|
-
openRight = () => {
|
259
|
-
const {
|
260
|
-
rowWidth = 0
|
261
|
-
} = this.state;
|
262
|
-
const {
|
263
|
-
rightOffset = rowWidth
|
264
|
-
} = this.state;
|
265
|
-
const rightWidth = rowWidth - rightOffset;
|
266
|
-
this.animateRow(this.currentOffset(), -rightWidth);
|
267
|
-
};
|
268
|
-
|
269
|
-
// eslint-disable-next-line @eslint-react/no-unused-class-component-members
|
270
|
-
reset = () => {
|
271
|
-
const {
|
272
|
-
dragX,
|
273
|
-
rowTranslation
|
274
|
-
} = this.state;
|
275
|
-
dragX.setValue(0);
|
276
|
-
rowTranslation.setValue(0);
|
277
|
-
this.setState({
|
278
|
-
rowState: 0
|
279
|
-
});
|
280
|
-
};
|
281
|
-
render() {
|
282
|
-
const {
|
283
|
-
rowState
|
284
|
-
} = this.state;
|
285
|
-
const {
|
286
|
-
children,
|
287
|
-
renderLeftActions,
|
288
|
-
renderRightActions,
|
289
|
-
dragOffsetFromLeftEdge = 10,
|
290
|
-
dragOffsetFromRightEdge = 10
|
291
|
-
} = this.props;
|
292
|
-
const left = renderLeftActions && /*#__PURE__*/_jsxs(Animated.View, {
|
293
|
-
style: [styles.leftActions,
|
294
|
-
// All those and below parameters can have ! since they are all
|
295
|
-
// asigned in constructor in `updateAnimatedEvent` but TS cannot spot
|
296
|
-
// it for some reason
|
297
|
-
{
|
298
|
-
transform: [{
|
299
|
-
translateX: this.leftActionTranslate
|
300
|
-
}]
|
301
|
-
}],
|
302
|
-
children: [renderLeftActions(this.showLeftAction, this.transX, this), /*#__PURE__*/_jsx(View, {
|
303
|
-
onLayout: ({
|
304
|
-
nativeEvent
|
305
|
-
}) => this.setState({
|
306
|
-
leftWidth: nativeEvent.layout.x
|
307
|
-
})
|
308
|
-
})]
|
309
|
-
});
|
310
|
-
const right = renderRightActions && /*#__PURE__*/_jsxs(Animated.View, {
|
311
|
-
style: [styles.rightActions, {
|
312
|
-
transform: [{
|
313
|
-
translateX: this.rightActionTranslate
|
314
|
-
}]
|
315
|
-
}],
|
316
|
-
children: [renderRightActions(this.showRightAction, this.transX, this), /*#__PURE__*/_jsx(View, {
|
317
|
-
onLayout: ({
|
318
|
-
nativeEvent
|
319
|
-
}) => this.setState({
|
320
|
-
rightOffset: nativeEvent.layout.x
|
321
|
-
})
|
322
|
-
})]
|
323
|
-
});
|
324
|
-
return /*#__PURE__*/_jsx(PanGestureHandler, {
|
325
|
-
activeOffsetX: [-dragOffsetFromRightEdge, dragOffsetFromLeftEdge],
|
326
|
-
touchAction: "pan-y",
|
327
|
-
...this.props,
|
328
|
-
onGestureEvent: this.onGestureEvent,
|
329
|
-
onHandlerStateChange: this.onHandlerStateChange,
|
330
|
-
children: /*#__PURE__*/_jsxs(Animated.View, {
|
331
|
-
onLayout: this.onRowLayout,
|
332
|
-
style: [styles.container, this.props.containerStyle],
|
333
|
-
children: [left, right, /*#__PURE__*/_jsx(TapGestureHandler, {
|
334
|
-
enabled: rowState !== 0,
|
335
|
-
touchAction: "pan-y",
|
336
|
-
onHandlerStateChange: this.onTapHandlerStateChange,
|
337
|
-
children: /*#__PURE__*/_jsx(Animated.View, {
|
338
|
-
pointerEvents: rowState === 0 ? 'auto' : 'box-only',
|
339
|
-
style: [{
|
340
|
-
transform: [{
|
341
|
-
translateX: this.transX
|
342
|
-
}]
|
343
|
-
}, this.props.childrenContainerStyle],
|
344
|
-
children: children
|
345
|
-
})
|
346
|
-
})]
|
347
|
-
})
|
348
|
-
});
|
349
|
-
}
|
350
|
-
}
|
351
|
-
const styles = StyleSheet.create({
|
352
|
-
container: {
|
353
|
-
overflow: 'hidden'
|
354
|
-
},
|
355
|
-
leftActions: {
|
356
|
-
...StyleSheet.absoluteFillObject,
|
357
|
-
flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row'
|
358
|
-
},
|
359
|
-
rightActions: {
|
360
|
-
...StyleSheet.absoluteFillObject,
|
361
|
-
flexDirection: I18nManager.isRTL ? 'row' : 'row-reverse'
|
362
|
-
}
|
363
|
-
});
|
364
|
-
//# sourceMappingURL=Swipeable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","Component","Animated","StyleSheet","View","I18nManager","PanGestureHandler","TapGestureHandler","State","jsx","_jsx","jsxs","_jsxs","DRAG_TOSS","Swipeable","defaultProps","friction","overshootFriction","useNativeAnimations","constructor","props","dragX","Value","state","rowTranslation","rowState","leftWidth","undefined","rightOffset","rowWidth","updateAnimatedEvent","onGestureEvent","event","nativeEvent","translationX","useNativeDriver","shouldComponentUpdate","overshootLeft","overshootRight","rightWidth","Math","max","transX","add","interpolate","inputRange","outputRange","showLeftAction","leftActionTranslate","Number","MIN_VALUE","extrapolate","showRightAction","rightActionTranslate","onTapHandlerStateChange","oldState","ACTIVE","close","onHandlerStateChange","ev","handleRelease","velocityX","direction","onSwipeableOpenStartDrag","onSwipeableCloseStartDrag","leftThreshold","rightThreshold","startOffsetX","currentOffset","toValue","animateRow","fromValue","setValue","setState","sign","spring","restSpeedThreshold","restDisplacementThreshold","velocity","bounciness","animationOptions","start","finished","onSwipeableLeftOpen","onSwipeableOpen","onSwipeableRightOpen","closingDirection","onSwipeableClose","onSwipeableLeftWillOpen","onSwipeableWillOpen","onSwipeableRightWillOpen","onSwipeableWillClose","onRowLayout","layout","width","openLeft","openRight","reset","render","children","renderLeftActions","renderRightActions","dragOffsetFromLeftEdge","dragOffsetFromRightEdge","left","style","styles","leftActions","transform","translateX","onLayout","x","right","rightActions","activeOffsetX","touchAction","container","containerStyle","enabled","pointerEvents","childrenContainerStyle","create","overflow","absoluteFillObject","flexDirection","isRTL"],"sourceRoot":"../../../src","sources":["components/Swipeable.tsx"],"mappings":";;AAAA;AACA;AACA;;AAEA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,QAAQ,OAAO;AACjC,SACEC,QAAQ,EACRC,UAAU,EACVC,IAAI,EACJC,WAAW,QAIN,cAAc;AAMrB,SACEC,iBAAiB,QAEZ,+BAA+B;AAKtC,SAASC,iBAAiB,QAAQ,+BAA+B;AACjE,SAASC,KAAK,QAAQ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,E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UAAW;YACpDgF,KAAK,EAAE,CACL;cACEG,SAAS,EAAE,CAAC;gBAAEC,UAAU,EAAE,IAAI,CAACnE;cAAQ,CAAC;YAC1C,CAAC,EACD,IAAI,CAACtB,KAAK,CAACoG,sBAAsB,CACjC;YAAArB,QAAA,EACDA;UAAQ,CACI;QAAC,CACC,CAAC;MAAA,CACP;IAAC,CACC,CAAC;EAExB;AACF;AAEA,MAAMO,MAAM,GAAGvG,UAAU,CAACsH,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,QAAQ,EAAE;EACZ,CAAC;EACDf,WAAW,EAAE;IACX,GAAGxG,UAAU,CAACwH,kBAAkB;IAChCC,aAAa,EAAEvH,WAAW,CAACwH,KAAK,GAAG,aAAa,GAAG;EACrD,CAAC;EACDZ,YAAY,EAAE;IACZ,GAAG9G,UAAU,CAACwH,kBAAkB;IAChCC,aAAa,EAAEvH,WAAW,CAACwH,KAAK,GAAG,KAAK,GAAG;EAC7C;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
import React, { forwardRef, useEffect, useRef } from 'react';
|
4
|
-
import { Platform, Text as RNText } from 'react-native';
|
5
|
-
import { GestureObjects as Gesture } from '../handlers/gestures/gestureObjects';
|
6
|
-
import { GestureDetector } from '../handlers/gestures/GestureDetector';
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
-
export const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
9
|
-
const {
|
10
|
-
onPress,
|
11
|
-
onLongPress,
|
12
|
-
...rest
|
13
|
-
} = props;
|
14
|
-
const textRef = useRef(null);
|
15
|
-
const native = Gesture.Native().runOnJS(true);
|
16
|
-
const refHandler = node => {
|
17
|
-
textRef.current = node;
|
18
|
-
if (ref === null) {
|
19
|
-
return;
|
20
|
-
}
|
21
|
-
if (typeof ref === 'function') {
|
22
|
-
ref(node);
|
23
|
-
} else {
|
24
|
-
ref.current = node;
|
25
|
-
}
|
26
|
-
};
|
27
|
-
|
28
|
-
// This is a special case for `Text` component. After https://github.com/software-mansion/react-native-gesture-handler/pull/3379 we check for
|
29
|
-
// `displayName` field. However, `Text` from RN has this field set to `Text`, but is also present in `RNSVGElements` set.
|
30
|
-
// We don't want to treat our `Text` as the one from `SVG`, therefore we add special field to ref.
|
31
|
-
refHandler.rngh = true;
|
32
|
-
useEffect(() => {
|
33
|
-
if (Platform.OS !== 'web') {
|
34
|
-
return;
|
35
|
-
}
|
36
|
-
const textElement = ref ? ref.current : textRef.current;
|
37
|
-
|
38
|
-
// At this point we are sure that textElement is div in HTML tree
|
39
|
-
textElement?.setAttribute('rnghtext', 'true');
|
40
|
-
}, []);
|
41
|
-
return onPress || onLongPress ? /*#__PURE__*/_jsx(GestureDetector, {
|
42
|
-
gesture: native,
|
43
|
-
children: /*#__PURE__*/_jsx(RNText, {
|
44
|
-
onPress: onPress,
|
45
|
-
onLongPress: onLongPress,
|
46
|
-
ref: refHandler,
|
47
|
-
...rest
|
48
|
-
})
|
49
|
-
}) : /*#__PURE__*/_jsx(RNText, {
|
50
|
-
ref: ref,
|
51
|
-
...rest
|
52
|
-
});
|
53
|
-
});
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
55
|
-
//# sourceMappingURL=Text.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useEffect","useRef","Platform","Text","RNText","GestureObjects","Gesture","GestureDetector","jsx","_jsx","props","ref","onPress","onLongPress","rest","textRef","native","Native","runOnJS","refHandler","node","current","rngh","OS","textElement","setAttribute","gesture","children"],"sourceRoot":"../../../src","sources":["components/Text.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAEVC,UAAU,EAEVC,SAAS,EACTC,MAAM,QACD,OAAO;AACd,SACEC,QAAQ,EACRC,IAAI,IAAIC,MAAM,QAET,cAAc;AAErB,SAASC,cAAc,IAAIC,OAAO,QAAQ,qCAAqC;AAC/E,SAASC,eAAe,QA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EA,GAAI;IAAA,GAAKG;EAAI,CAAG,CAC9B;AACH,CACF,CAAC;AACD","ignoreList":[]}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
import * as React from 'react';
|
4
|
-
import { StyleSheet } from 'react-native';
|
5
|
-
import hoistNonReactStatics from 'hoist-non-react-statics';
|
6
|
-
import GestureHandlerRootView from './GestureHandlerRootView';
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
-
export default function gestureHandlerRootHOC(Component, containerStyles) {
|
9
|
-
function Wrapper(props) {
|
10
|
-
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
11
|
-
style: [styles.container, containerStyles],
|
12
|
-
children: /*#__PURE__*/_jsx(Component, {
|
13
|
-
...props
|
14
|
-
})
|
15
|
-
});
|
16
|
-
}
|
17
|
-
Wrapper.displayName = `gestureHandlerRootHOC(${Component.displayName || Component.name})`;
|
18
|
-
|
19
|
-
// @ts-ignore - hoistNonReactStatics uses old version of @types/react
|
20
|
-
hoistNonReactStatics(Wrapper, Component);
|
21
|
-
return Wrapper;
|
22
|
-
}
|
23
|
-
const styles = StyleSheet.create({
|
24
|
-
container: {
|
25
|
-
flex: 1
|
26
|
-
}
|
27
|
-
});
|
28
|
-
//# sourceMappingURL=gestureHandlerRootHOC.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","hoistNonReactStatics","GestureHandlerRootView","jsx","_jsx","gestureHandlerRootHOC","Component","containerStyles","Wrapper","props","style","styles","container","children","displayName","name","create","flex"],"sourceRoot":"../../../src","sources":["components/gestureHandlerRootHOC.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAA8B,cAAc;AAC/D,OAAOC,oBAAoB,MAAM,yBAAyB;AAC1D,OAAOC,sBAAsB,MAAM,0BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9D,eAAe,SAASC,qBAAqBA,CAC3CC,SAAiC,EACjCC,eAAsC,EACd;EACxB,SAASC,OAAOA,CAACC,KAAQ,EAAE;IACzB,oBACEL,IAAA,CAACF,sBAAsB;MAACQ,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEL,eAAe,CAAE;MAAAM,QAAA,eACjET,IAAA,CAACE,SAAS;QAAA,GAAKG;MAAK,CAAG;IAAC,CACF,CAAC;EAE7B;EAEAD,OAAO,CAACM,WAAW,GAAG,yBACpBR,SAAS,CAACQ,WAAW,IAAIR,SAAS,CAACS,IAAI,GACtC;;EAEH;EACAd,oBAAoB,CAACO,OAAO,EAAEF,SAAS,CAAC;EAExC,OAAOE,OAAO;AAChB;AAEA,MAAMG,MAAM,GAAGX,UAAU,CAACgB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IAAEK,IAAI,EAAE;EAAE;AACvB,CAAC,CAAC","ignoreList":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/touchables/ExtraButtonProps.ts"],"mappings":"","ignoreList":[]}
|