@react-native-oh-tpl/react-native-gesture-handler 2.12.1-0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/DrawerLayout/package.json +6 -0
- package/LICENSE +21 -0
- package/README.md +62 -0
- package/RNGestureHandler.podspec +44 -0
- package/Swipeable/package.json +6 -0
- package/android/build.gradle +209 -0
- package/android/common/src/main/java/com/swmansion/common/GestureHandlerStateManager.kt +5 -0
- package/android/fabric/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerComponentsRegistry.java +29 -0
- package/android/fabric/src/main/java/com/swmansion/gesturehandler/ReactContextExtensions.kt +12 -0
- package/android/gradle.properties +19 -0
- package/android/noreanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt +10 -0
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerButtonManagerDelegate.java +50 -0
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerButtonManagerInterface.java +23 -0
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerDelegate.java +25 -0
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerInterface.java +16 -0
- package/android/paper/src/main/java/com/swmansion/gesturehandler/ReactContextExtensions.kt +13 -0
- package/android/reanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt +17 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt +21 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/FlingGestureHandler.kt +100 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +807 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerInteractionController.kt +8 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +671 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerRegistry.kt +8 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureUtils.kt +47 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt +120 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/LongPressGestureHandler.kt +100 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/ManualGestureHandler.kt +11 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt +257 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/OnTouchEventListener.kt +9 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt +322 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PinchGestureHandler.kt +103 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PointerEventsConfig.kt +23 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureDetector.kt +125 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureHandler.kt +93 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/ScaleGestureDetector.java +558 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/TapGestureHandler.kt +168 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/ViewConfigurationHelper.kt +10 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/Extensions.kt +16 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +423 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt +15 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.kt +75 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +74 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +702 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt +100 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +142 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootInterface.kt +5 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +78 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt +51 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.kt +78 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt +69 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +51 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/FlingGestureHandlerEventDataBuilder.kt +30 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/GestureHandlerEventDataBuilder.kt +22 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/HoverGestureHandlerEventDataBuilder.kt +30 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/LongPressGestureHandlerEventDataBuilder.kt +33 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/ManualGestureHandlerEventDataBuilder.kt +5 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/NativeGestureHandlerEventDataBuilder.kt +18 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/PanGestureHandlerEventDataBuilder.kt +42 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/PinchGestureHandlerEventDataBuilder.kt +30 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/RotationGestureHandlerEventDataBuilder.kt +30 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/TapGestureHandlerEventDataBuilder.kt +30 -0
- package/android/src/main/jni/CMakeLists.txt +37 -0
- package/android/src/main/jni/cpp-adapter.cpp +44 -0
- package/ios/Handlers/RNFlingHandler.h +4 -0
- package/ios/Handlers/RNFlingHandler.m +152 -0
- package/ios/Handlers/RNForceTouchHandler.h +4 -0
- package/ios/Handlers/RNForceTouchHandler.m +175 -0
- package/ios/Handlers/RNHoverHandler.h +12 -0
- package/ios/Handlers/RNHoverHandler.m +153 -0
- package/ios/Handlers/RNLongPressHandler.h +12 -0
- package/ios/Handlers/RNLongPressHandler.m +183 -0
- package/ios/Handlers/RNManualHandler.h +4 -0
- package/ios/Handlers/RNManualHandler.m +88 -0
- package/ios/Handlers/RNNativeViewHandler.h +15 -0
- package/ios/Handlers/RNNativeViewHandler.mm +193 -0
- package/ios/Handlers/RNPanHandler.h +12 -0
- package/ios/Handlers/RNPanHandler.m +331 -0
- package/ios/Handlers/RNPinchHandler.h +12 -0
- package/ios/Handlers/RNPinchHandler.m +95 -0
- package/ios/Handlers/RNRotationHandler.h +12 -0
- package/ios/Handlers/RNRotationHandler.m +93 -0
- package/ios/Handlers/RNTapHandler.h +12 -0
- package/ios/Handlers/RNTapHandler.m +265 -0
- package/ios/RNGHTouchEventType.h +9 -0
- package/ios/RNGestureHandler.h +90 -0
- package/ios/RNGestureHandler.m +493 -0
- package/ios/RNGestureHandler.xcodeproj/project.pbxproj +690 -0
- package/ios/RNGestureHandler.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/RNGestureHandlerActionType.h +10 -0
- package/ios/RNGestureHandlerButton.h +19 -0
- package/ios/RNGestureHandlerButton.m +77 -0
- package/ios/RNGestureHandlerButtonComponentView.h +17 -0
- package/ios/RNGestureHandlerButtonComponentView.mm +64 -0
- package/ios/RNGestureHandlerButtonManager.h +5 -0
- package/ios/RNGestureHandlerButtonManager.m +34 -0
- package/ios/RNGestureHandlerDirection.h +8 -0
- package/ios/RNGestureHandlerEvents.h +65 -0
- package/ios/RNGestureHandlerEvents.m +260 -0
- package/ios/RNGestureHandlerManager.h +35 -0
- package/ios/RNGestureHandlerManager.mm +367 -0
- package/ios/RNGestureHandlerModule.h +7 -0
- package/ios/RNGestureHandlerModule.mm +320 -0
- package/ios/RNGestureHandlerPointerTracker.h +25 -0
- package/ios/RNGestureHandlerPointerTracker.m +243 -0
- package/ios/RNGestureHandlerRegistry.h +21 -0
- package/ios/RNGestureHandlerRegistry.m +63 -0
- package/ios/RNGestureHandlerRootViewComponentView.mm +21 -0
- package/ios/RNGestureHandlerState.h +10 -0
- package/ios/RNGestureHandlerStateManager.h +5 -0
- package/ios/RNManualActivationRecognizer.h +10 -0
- package/ios/RNManualActivationRecognizer.m +88 -0
- package/ios/RNRootViewGestureRecognizer.h +17 -0
- package/ios/RNRootViewGestureRecognizer.m +106 -0
- package/jest-utils/package.json +6 -0
- package/jestSetup.js +7 -0
- package/lib/commonjs/ActionType.js +15 -0
- package/lib/commonjs/ActionType.js.map +1 -0
- package/lib/commonjs/Directions.js +15 -0
- package/lib/commonjs/Directions.js.map +1 -0
- package/lib/commonjs/EnableNewWebImplementation.js +35 -0
- package/lib/commonjs/EnableNewWebImplementation.js.map +1 -0
- package/lib/commonjs/GestureHandlerRootViewContext.js +15 -0
- package/lib/commonjs/GestureHandlerRootViewContext.js.map +1 -0
- package/lib/commonjs/PlatformConstants.js +15 -0
- package/lib/commonjs/PlatformConstants.js.map +1 -0
- package/lib/commonjs/PlatformConstants.web.js +14 -0
- package/lib/commonjs/PlatformConstants.web.js.map +1 -0
- package/lib/commonjs/RNGestureHandlerModule.js +29 -0
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -0
- package/lib/commonjs/RNGestureHandlerModule.macos.js +149 -0
- package/lib/commonjs/RNGestureHandlerModule.macos.js.map +1 -0
- package/lib/commonjs/RNGestureHandlerModule.web.js +163 -0
- package/lib/commonjs/RNGestureHandlerModule.web.js.map +1 -0
- package/lib/commonjs/RNGestureHandlerModule.windows.js +158 -0
- package/lib/commonjs/RNGestureHandlerModule.windows.js.map +1 -0
- package/lib/commonjs/RNRenderer.js +16 -0
- package/lib/commonjs/RNRenderer.js.map +1 -0
- package/lib/commonjs/RNRenderer.web.js +11 -0
- package/lib/commonjs/RNRenderer.web.js.map +1 -0
- package/lib/commonjs/State.js +18 -0
- package/lib/commonjs/State.js.map +1 -0
- package/lib/commonjs/TouchEventType.js +16 -0
- package/lib/commonjs/TouchEventType.js.map +1 -0
- package/lib/commonjs/components/DrawerLayout.js +566 -0
- package/lib/commonjs/components/DrawerLayout.js.map +1 -0
- package/lib/commonjs/components/GestureButtons.js +240 -0
- package/lib/commonjs/components/GestureButtons.js.map +1 -0
- package/lib/commonjs/components/GestureComponents.js +115 -0
- package/lib/commonjs/components/GestureComponents.js.map +1 -0
- package/lib/commonjs/components/GestureComponents.web.js +52 -0
- package/lib/commonjs/components/GestureComponents.web.js.map +1 -0
- package/lib/commonjs/components/GestureHandlerButton.js +14 -0
- package/lib/commonjs/components/GestureHandlerButton.js.map +1 -0
- package/lib/commonjs/components/GestureHandlerButton.web.js +24 -0
- package/lib/commonjs/components/GestureHandlerButton.web.js.map +1 -0
- package/lib/commonjs/components/GestureHandlerRootView.android.js +31 -0
- package/lib/commonjs/components/GestureHandlerRootView.android.js.map +1 -0
- package/lib/commonjs/components/GestureHandlerRootView.js +31 -0
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -0
- package/lib/commonjs/components/GestureHandlerRootView.web.js +25 -0
- package/lib/commonjs/components/GestureHandlerRootView.web.js.map +1 -0
- package/lib/commonjs/components/Swipeable.js +408 -0
- package/lib/commonjs/components/Swipeable.js.map +1 -0
- package/lib/commonjs/components/gestureHandlerRootHOC.js +40 -0
- package/lib/commonjs/components/gestureHandlerRootHOC.js.map +1 -0
- package/lib/commonjs/components/touchables/GenericTouchable.js +289 -0
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +1 -0
- package/lib/commonjs/components/touchables/TouchableHighlight.js +109 -0
- package/lib/commonjs/components/touchables/TouchableHighlight.js.map +1 -0
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js +100 -0
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js.map +1 -0
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js +12 -0
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js.map +1 -0
- package/lib/commonjs/components/touchables/TouchableOpacity.js +77 -0
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +1 -0
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +26 -0
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +1 -0
- package/lib/commonjs/components/touchables/index.js +40 -0
- package/lib/commonjs/components/touchables/index.js.map +1 -0
- package/lib/commonjs/getReactNativeVersion.js +22 -0
- package/lib/commonjs/getReactNativeVersion.js.map +1 -0
- package/lib/commonjs/getReactNativeVersion.web.js +11 -0
- package/lib/commonjs/getReactNativeVersion.web.js.map +1 -0
- package/lib/commonjs/getShadowNodeFromRef.js +27 -0
- package/lib/commonjs/getShadowNodeFromRef.js.map +1 -0
- package/lib/commonjs/getShadowNodeFromRef.web.js +15 -0
- package/lib/commonjs/getShadowNodeFromRef.web.js.map +1 -0
- package/lib/commonjs/ghQueueMicrotask.js +12 -0
- package/lib/commonjs/ghQueueMicrotask.js.map +1 -0
- package/lib/commonjs/handlers/FlingGestureHandler.js +25 -0
- package/lib/commonjs/handlers/FlingGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js +49 -0
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/LongPressGestureHandler.js +27 -0
- package/lib/commonjs/handlers/LongPressGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/NativeViewGestureHandler.js +27 -0
- package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/PanGestureHandler.js +123 -0
- package/lib/commonjs/handlers/PanGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/PinchGestureHandler.js +23 -0
- package/lib/commonjs/handlers/PinchGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/PressabilityDebugView.js +14 -0
- package/lib/commonjs/handlers/PressabilityDebugView.js.map +1 -0
- package/lib/commonjs/handlers/PressabilityDebugView.web.js +12 -0
- package/lib/commonjs/handlers/PressabilityDebugView.web.js.map +1 -0
- package/lib/commonjs/handlers/RotationGestureHandler.js +23 -0
- package/lib/commonjs/handlers/RotationGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/TapGestureHandler.js +27 -0
- package/lib/commonjs/handlers/TapGestureHandler.js.map +1 -0
- package/lib/commonjs/handlers/createHandler.js +464 -0
- package/lib/commonjs/handlers/createHandler.js.map +1 -0
- package/lib/commonjs/handlers/createNativeWrapper.js +74 -0
- package/lib/commonjs/handlers/createNativeWrapper.js.map +1 -0
- package/lib/commonjs/handlers/gestureHandlerCommon.js +103 -0
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +1 -0
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js +6 -0
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js.map +1 -0
- package/lib/commonjs/handlers/gestures/GestureDetector.js +669 -0
- package/lib/commonjs/handlers/gestures/GestureDetector.js.map +1 -0
- package/lib/commonjs/handlers/gestures/eventReceiver.js +147 -0
- package/lib/commonjs/handlers/gestures/eventReceiver.js.map +1 -0
- package/lib/commonjs/handlers/gestures/flingGesture.js +34 -0
- package/lib/commonjs/handlers/gestures/flingGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js +65 -0
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/gesture.js +241 -0
- package/lib/commonjs/handlers/gestures/gesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/gestureComposition.js +105 -0
- package/lib/commonjs/handlers/gestures/gestureComposition.js.map +1 -0
- package/lib/commonjs/handlers/gestures/gestureObjects.js +90 -0
- package/lib/commonjs/handlers/gestures/gestureObjects.js.map +1 -0
- package/lib/commonjs/handlers/gestures/gestureStateManager.js +65 -0
- package/lib/commonjs/handlers/gestures/gestureStateManager.js.map +1 -0
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js +32 -0
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js.map +1 -0
- package/lib/commonjs/handlers/gestures/hoverGesture.js +74 -0
- package/lib/commonjs/handlers/gestures/hoverGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/longPressGesture.js +35 -0
- package/lib/commonjs/handlers/gestures/longPressGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/manualGesture.js +31 -0
- package/lib/commonjs/handlers/gestures/manualGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/nativeGesture.js +34 -0
- package/lib/commonjs/handlers/gestures/nativeGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/panGesture.js +149 -0
- package/lib/commonjs/handlers/gestures/panGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/pinchGesture.js +45 -0
- package/lib/commonjs/handlers/gestures/pinchGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js +37 -0
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js.map +1 -0
- package/lib/commonjs/handlers/gestures/rotationGesture.js +45 -0
- package/lib/commonjs/handlers/gestures/rotationGesture.js.map +1 -0
- package/lib/commonjs/handlers/gestures/tapGesture.js +60 -0
- package/lib/commonjs/handlers/gestures/tapGesture.js.map +1 -0
- package/lib/commonjs/handlers/handlersRegistry.js +67 -0
- package/lib/commonjs/handlers/handlersRegistry.js.map +1 -0
- package/lib/commonjs/index.js +266 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/init.js +32 -0
- package/lib/commonjs/init.js.map +1 -0
- package/lib/commonjs/jestUtils/index.js +20 -0
- package/lib/commonjs/jestUtils/index.js.map +1 -0
- package/lib/commonjs/jestUtils/jestUtils.js +375 -0
- package/lib/commonjs/jestUtils/jestUtils.js.map +1 -0
- package/lib/commonjs/mocks.js +66 -0
- package/lib/commonjs/mocks.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +15 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +15 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/commonjs/typeUtils.js +2 -0
- package/lib/commonjs/typeUtils.js.map +1 -0
- package/lib/commonjs/utils.js +63 -0
- package/lib/commonjs/utils.js.map +1 -0
- package/lib/commonjs/web/constants.js +16 -0
- package/lib/commonjs/web/constants.js.map +1 -0
- package/lib/commonjs/web/detectors/RotationGestureDetector.js +165 -0
- package/lib/commonjs/web/detectors/RotationGestureDetector.js.map +1 -0
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js +156 -0
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js.map +1 -0
- package/lib/commonjs/web/handlers/FlingGestureHandler.js +167 -0
- package/lib/commonjs/web/handlers/FlingGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/GestureHandler.js +794 -0
- package/lib/commonjs/web/handlers/GestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/HoverGestureHandler.js +62 -0
- package/lib/commonjs/web/handlers/HoverGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js +151 -0
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/ManualGestureHandler.js +61 -0
- package/lib/commonjs/web/handlers/ManualGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js +178 -0
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/PanGestureHandler.js +448 -0
- package/lib/commonjs/web/handlers/PanGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/PinchGestureHandler.js +174 -0
- package/lib/commonjs/web/handlers/PinchGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/RotationGestureHandler.js +186 -0
- package/lib/commonjs/web/handlers/RotationGestureHandler.js.map +1 -0
- package/lib/commonjs/web/handlers/TapGestureHandler.js +280 -0
- package/lib/commonjs/web/handlers/TapGestureHandler.js.map +1 -0
- package/lib/commonjs/web/interfaces.js +55 -0
- package/lib/commonjs/web/interfaces.js.map +1 -0
- package/lib/commonjs/web/tools/CircularBuffer.js +59 -0
- package/lib/commonjs/web/tools/CircularBuffer.js.map +1 -0
- package/lib/commonjs/web/tools/EventManager.js +127 -0
- package/lib/commonjs/web/tools/EventManager.js.map +1 -0
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js +6 -0
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js.map +1 -0
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js +349 -0
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js.map +1 -0
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +118 -0
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +1 -0
- package/lib/commonjs/web/tools/InteractionManager.js +114 -0
- package/lib/commonjs/web/tools/InteractionManager.js.map +1 -0
- package/lib/commonjs/web/tools/LeastSquareSolver.js +204 -0
- package/lib/commonjs/web/tools/LeastSquareSolver.js.map +1 -0
- package/lib/commonjs/web/tools/NodeManager.js +48 -0
- package/lib/commonjs/web/tools/NodeManager.js.map +1 -0
- package/lib/commonjs/web/tools/PointerEventManager.js +198 -0
- package/lib/commonjs/web/tools/PointerEventManager.js.map +1 -0
- package/lib/commonjs/web/tools/PointerTracker.js +226 -0
- package/lib/commonjs/web/tools/PointerTracker.js.map +1 -0
- package/lib/commonjs/web/tools/TouchEventManager.js +138 -0
- package/lib/commonjs/web/tools/TouchEventManager.js.map +1 -0
- package/lib/commonjs/web/tools/VelocityTracker.js +111 -0
- package/lib/commonjs/web/tools/VelocityTracker.js.map +1 -0
- package/lib/commonjs/web/utils.js +15 -0
- package/lib/commonjs/web/utils.js.map +1 -0
- package/lib/commonjs/web_hammer/DiscreteGestureHandler.js +105 -0
- package/lib/commonjs/web_hammer/DiscreteGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/DraggingGestureHandler.js +53 -0
- package/lib/commonjs/web_hammer/DraggingGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/Errors.js +16 -0
- package/lib/commonjs/web_hammer/Errors.js.map +1 -0
- package/lib/commonjs/web_hammer/FlingGestureHandler.js +170 -0
- package/lib/commonjs/web_hammer/FlingGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/GestureHandler.js +579 -0
- package/lib/commonjs/web_hammer/GestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/IndiscreteGestureHandler.js +54 -0
- package/lib/commonjs/web_hammer/IndiscreteGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/LongPressGestureHandler.js +71 -0
- package/lib/commonjs/web_hammer/LongPressGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/NativeViewGestureHandler.js +66 -0
- package/lib/commonjs/web_hammer/NativeViewGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/NodeManager.js +46 -0
- package/lib/commonjs/web_hammer/NodeManager.js.map +1 -0
- package/lib/commonjs/web_hammer/PanGestureHandler.js +208 -0
- package/lib/commonjs/web_hammer/PanGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/PinchGestureHandler.js +40 -0
- package/lib/commonjs/web_hammer/PinchGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/PressGestureHandler.js +188 -0
- package/lib/commonjs/web_hammer/PressGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/RotationGestureHandler.js +44 -0
- package/lib/commonjs/web_hammer/RotationGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/TapGestureHandler.js +192 -0
- package/lib/commonjs/web_hammer/TapGestureHandler.js.map +1 -0
- package/lib/commonjs/web_hammer/constants.js +64 -0
- package/lib/commonjs/web_hammer/constants.js.map +1 -0
- package/lib/commonjs/web_hammer/utils.js +42 -0
- package/lib/commonjs/web_hammer/utils.js.map +1 -0
- package/lib/module/ActionType.js +7 -0
- package/lib/module/ActionType.js.map +1 -0
- package/lib/module/Directions.js +7 -0
- package/lib/module/Directions.js.map +1 -0
- package/lib/module/EnableNewWebImplementation.js +22 -0
- package/lib/module/EnableNewWebImplementation.js.map +1 -0
- package/lib/module/GestureHandlerRootViewContext.js +3 -0
- package/lib/module/GestureHandlerRootViewContext.js.map +1 -0
- package/lib/module/PlatformConstants.js +5 -0
- package/lib/module/PlatformConstants.js.map +1 -0
- package/lib/module/PlatformConstants.web.js +7 -0
- package/lib/module/PlatformConstants.web.js.map +1 -0
- package/lib/module/RNGestureHandlerModule.js +19 -0
- package/lib/module/RNGestureHandlerModule.js.map +1 -0
- package/lib/module/RNGestureHandlerModule.macos.js +110 -0
- package/lib/module/RNGestureHandlerModule.macos.js.map +1 -0
- package/lib/module/RNGestureHandlerModule.web.js +122 -0
- package/lib/module/RNGestureHandlerModule.web.js.map +1 -0
- package/lib/module/RNGestureHandlerModule.windows.js +118 -0
- package/lib/module/RNGestureHandlerModule.windows.js.map +1 -0
- package/lib/module/RNRenderer.js +4 -0
- package/lib/module/RNRenderer.js.map +1 -0
- package/lib/module/RNRenderer.web.js +4 -0
- package/lib/module/RNRenderer.web.js.map +1 -0
- package/lib/module/State.js +10 -0
- package/lib/module/State.js.map +1 -0
- package/lib/module/TouchEventType.js +8 -0
- package/lib/module/TouchEventType.js.map +1 -0
- package/lib/module/components/DrawerLayout.js +551 -0
- package/lib/module/components/DrawerLayout.js.map +1 -0
- package/lib/module/components/GestureButtons.js +206 -0
- package/lib/module/components/GestureButtons.js.map +1 -0
- package/lib/module/components/GestureComponents.js +90 -0
- package/lib/module/components/GestureComponents.js.map +1 -0
- package/lib/module/components/GestureComponents.web.js +28 -0
- package/lib/module/components/GestureComponents.web.js.map +1 -0
- package/lib/module/components/GestureHandlerButton.js +3 -0
- package/lib/module/components/GestureHandlerButton.js.map +1 -0
- package/lib/module/components/GestureHandlerButton.web.js +9 -0
- package/lib/module/components/GestureHandlerButton.web.js.map +1 -0
- package/lib/module/components/GestureHandlerRootView.android.js +14 -0
- package/lib/module/components/GestureHandlerRootView.android.js.map +1 -0
- package/lib/module/components/GestureHandlerRootView.js +14 -0
- package/lib/module/components/GestureHandlerRootView.js.map +1 -0
- package/lib/module/components/GestureHandlerRootView.web.js +9 -0
- package/lib/module/components/GestureHandlerRootView.web.js.map +1 -0
- package/lib/module/components/Swipeable.js +390 -0
- package/lib/module/components/Swipeable.js.map +1 -0
- package/lib/module/components/gestureHandlerRootHOC.js +22 -0
- package/lib/module/components/gestureHandlerRootHOC.js.map +1 -0
- package/lib/module/components/touchables/GenericTouchable.js +273 -0
- package/lib/module/components/touchables/GenericTouchable.js.map +1 -0
- package/lib/module/components/touchables/TouchableHighlight.js +95 -0
- package/lib/module/components/touchables/TouchableHighlight.js.map +1 -0
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js +84 -0
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js.map +1 -0
- package/lib/module/components/touchables/TouchableNativeFeedback.js +3 -0
- package/lib/module/components/touchables/TouchableNativeFeedback.js.map +1 -0
- package/lib/module/components/touchables/TouchableOpacity.js +63 -0
- package/lib/module/components/touchables/TouchableOpacity.js.map +1 -0
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +10 -0
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +1 -0
- package/lib/module/components/touchables/index.js +5 -0
- package/lib/module/components/touchables/index.js.map +1 -0
- package/lib/module/getReactNativeVersion.js +10 -0
- package/lib/module/getReactNativeVersion.js.map +1 -0
- package/lib/module/getReactNativeVersion.web.js +4 -0
- package/lib/module/getReactNativeVersion.web.js.map +1 -0
- package/lib/module/getShadowNodeFromRef.js +20 -0
- package/lib/module/getShadowNodeFromRef.js.map +1 -0
- package/lib/module/getShadowNodeFromRef.web.js +8 -0
- package/lib/module/getShadowNodeFromRef.web.js.map +1 -0
- package/lib/module/ghQueueMicrotask.js +5 -0
- package/lib/module/ghQueueMicrotask.js.map +1 -0
- package/lib/module/handlers/FlingGestureHandler.js +11 -0
- package/lib/module/handlers/FlingGestureHandler.js.map +1 -0
- package/lib/module/handlers/ForceTouchGestureHandler.js +31 -0
- package/lib/module/handlers/ForceTouchGestureHandler.js.map +1 -0
- package/lib/module/handlers/LongPressGestureHandler.js +13 -0
- package/lib/module/handlers/LongPressGestureHandler.js.map +1 -0
- package/lib/module/handlers/NativeViewGestureHandler.js +12 -0
- package/lib/module/handlers/NativeViewGestureHandler.js.map +1 -0
- package/lib/module/handlers/PanGestureHandler.js +107 -0
- package/lib/module/handlers/PanGestureHandler.js.map +1 -0
- package/lib/module/handlers/PinchGestureHandler.js +10 -0
- package/lib/module/handlers/PinchGestureHandler.js.map +1 -0
- package/lib/module/handlers/PressabilityDebugView.js +3 -0
- package/lib/module/handlers/PressabilityDebugView.js.map +1 -0
- package/lib/module/handlers/PressabilityDebugView.web.js +5 -0
- package/lib/module/handlers/PressabilityDebugView.web.js.map +1 -0
- package/lib/module/handlers/RotationGestureHandler.js +10 -0
- package/lib/module/handlers/RotationGestureHandler.js.map +1 -0
- package/lib/module/handlers/TapGestureHandler.js +13 -0
- package/lib/module/handlers/TapGestureHandler.js.map +1 -0
- package/lib/module/handlers/createHandler.js +433 -0
- package/lib/module/handlers/createHandler.js.map +1 -0
- package/lib/module/handlers/createNativeWrapper.js +62 -0
- package/lib/module/handlers/createNativeWrapper.js.map +1 -0
- package/lib/module/handlers/gestureHandlerCommon.js +81 -0
- package/lib/module/handlers/gestureHandlerCommon.js.map +1 -0
- package/lib/module/handlers/gestureHandlerTypesCompat.js +2 -0
- package/lib/module/handlers/gestureHandlerTypesCompat.js.map +1 -0
- package/lib/module/handlers/gestures/GestureDetector.js +619 -0
- package/lib/module/handlers/gestures/GestureDetector.js.map +1 -0
- package/lib/module/handlers/gestures/eventReceiver.js +131 -0
- package/lib/module/handlers/gestures/eventReceiver.js.map +1 -0
- package/lib/module/handlers/gestures/flingGesture.js +24 -0
- package/lib/module/handlers/gestures/flingGesture.js.map +1 -0
- package/lib/module/handlers/gestures/forceTouchGesture.js +56 -0
- package/lib/module/handlers/gestures/forceTouchGesture.js.map +1 -0
- package/lib/module/handlers/gestures/gesture.js +222 -0
- package/lib/module/handlers/gestures/gesture.js.map +1 -0
- package/lib/module/handlers/gestures/gestureComposition.js +90 -0
- package/lib/module/handlers/gestures/gestureComposition.js.map +1 -0
- package/lib/module/handlers/gestures/gestureObjects.js +71 -0
- package/lib/module/handlers/gestures/gestureObjects.js.map +1 -0
- package/lib/module/handlers/gestures/gestureStateManager.js +54 -0
- package/lib/module/handlers/gestures/gestureStateManager.js.map +1 -0
- package/lib/module/handlers/gestures/gestureStateManager.web.js +21 -0
- package/lib/module/handlers/gestures/gestureStateManager.web.js.map +1 -0
- package/lib/module/handlers/gestures/hoverGesture.js +62 -0
- package/lib/module/handlers/gestures/hoverGesture.js.map +1 -0
- package/lib/module/handlers/gestures/longPressGesture.js +25 -0
- package/lib/module/handlers/gestures/longPressGesture.js.map +1 -0
- package/lib/module/handlers/gestures/manualGesture.js +22 -0
- package/lib/module/handlers/gestures/manualGesture.js.map +1 -0
- package/lib/module/handlers/gestures/nativeGesture.js +24 -0
- package/lib/module/handlers/gestures/nativeGesture.js.map +1 -0
- package/lib/module/handlers/gestures/panGesture.js +140 -0
- package/lib/module/handlers/gestures/panGesture.js.map +1 -0
- package/lib/module/handlers/gestures/pinchGesture.js +36 -0
- package/lib/module/handlers/gestures/pinchGesture.js.map +1 -0
- package/lib/module/handlers/gestures/reanimatedWrapper.js +30 -0
- package/lib/module/handlers/gestures/reanimatedWrapper.js.map +1 -0
- package/lib/module/handlers/gestures/rotationGesture.js +36 -0
- package/lib/module/handlers/gestures/rotationGesture.js.map +1 -0
- package/lib/module/handlers/gestures/tapGesture.js +50 -0
- package/lib/module/handlers/gestures/tapGesture.js.map +1 -0
- package/lib/module/handlers/handlersRegistry.js +44 -0
- package/lib/module/handlers/handlersRegistry.js.map +1 -0
- package/lib/module/index.js +25 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/init.js +16 -0
- package/lib/module/init.js.map +1 -0
- package/lib/module/jestUtils/index.js +2 -0
- package/lib/module/jestUtils/index.js.map +1 -0
- package/lib/module/jestUtils/jestUtils.js +350 -0
- package/lib/module/jestUtils/jestUtils.js.map +1 -0
- package/lib/module/mocks.js +56 -0
- package/lib/module/mocks.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/module/typeUtils.js +2 -0
- package/lib/module/typeUtils.js.map +1 -0
- package/lib/module/utils.js +44 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/module/web/constants.js +8 -0
- package/lib/module/web/constants.js.map +1 -0
- package/lib/module/web/detectors/RotationGestureDetector.js +155 -0
- package/lib/module/web/detectors/RotationGestureDetector.js.map +1 -0
- package/lib/module/web/detectors/ScaleGestureDetector.js +145 -0
- package/lib/module/web/detectors/ScaleGestureDetector.js.map +1 -0
- package/lib/module/web/handlers/FlingGestureHandler.js +152 -0
- package/lib/module/web/handlers/FlingGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/GestureHandler.js +776 -0
- package/lib/module/web/handlers/GestureHandler.js.map +1 -0
- package/lib/module/web/handlers/HoverGestureHandler.js +47 -0
- package/lib/module/web/handlers/HoverGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/LongPressGestureHandler.js +136 -0
- package/lib/module/web/handlers/LongPressGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/ManualGestureHandler.js +49 -0
- package/lib/module/web/handlers/ManualGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/NativeViewGestureHandler.js +163 -0
- package/lib/module/web/handlers/NativeViewGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/PanGestureHandler.js +433 -0
- package/lib/module/web/handlers/PanGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/PinchGestureHandler.js +159 -0
- package/lib/module/web/handlers/PinchGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/RotationGestureHandler.js +171 -0
- package/lib/module/web/handlers/RotationGestureHandler.js.map +1 -0
- package/lib/module/web/handlers/TapGestureHandler.js +265 -0
- package/lib/module/web/handlers/TapGestureHandler.js.map +1 -0
- package/lib/module/web/interfaces.js +45 -0
- package/lib/module/web/interfaces.js.map +1 -0
- package/lib/module/web/tools/CircularBuffer.js +50 -0
- package/lib/module/web/tools/CircularBuffer.js.map +1 -0
- package/lib/module/web/tools/EventManager.js +118 -0
- package/lib/module/web/tools/EventManager.js.map +1 -0
- package/lib/module/web/tools/GestureHandlerDelegate.js +2 -0
- package/lib/module/web/tools/GestureHandlerDelegate.js.map +1 -0
- package/lib/module/web/tools/GestureHandlerOrchestrator.js +335 -0
- package/lib/module/web/tools/GestureHandlerOrchestrator.js.map +1 -0
- package/lib/module/web/tools/GestureHandlerWebDelegate.js +102 -0
- package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +1 -0
- package/lib/module/web/tools/InteractionManager.js +105 -0
- package/lib/module/web/tools/InteractionManager.js.map +1 -0
- package/lib/module/web/tools/LeastSquareSolver.js +195 -0
- package/lib/module/web/tools/LeastSquareSolver.js.map +1 -0
- package/lib/module/web/tools/NodeManager.js +39 -0
- package/lib/module/web/tools/NodeManager.js.map +1 -0
- package/lib/module/web/tools/PointerEventManager.js +184 -0
- package/lib/module/web/tools/PointerEventManager.js.map +1 -0
- package/lib/module/web/tools/PointerTracker.js +213 -0
- package/lib/module/web/tools/PointerTracker.js.map +1 -0
- package/lib/module/web/tools/TouchEventManager.js +124 -0
- package/lib/module/web/tools/TouchEventManager.js.map +1 -0
- package/lib/module/web/tools/VelocityTracker.js +98 -0
- package/lib/module/web/tools/VelocityTracker.js.map +1 -0
- package/lib/module/web/utils.js +8 -0
- package/lib/module/web/utils.js.map +1 -0
- package/lib/module/web_hammer/DiscreteGestureHandler.js +94 -0
- package/lib/module/web_hammer/DiscreteGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/DraggingGestureHandler.js +40 -0
- package/lib/module/web_hammer/DraggingGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/Errors.js +7 -0
- package/lib/module/web_hammer/Errors.js.map +1 -0
- package/lib/module/web_hammer/FlingGestureHandler.js +156 -0
- package/lib/module/web_hammer/FlingGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/GestureHandler.js +563 -0
- package/lib/module/web_hammer/GestureHandler.js.map +1 -0
- package/lib/module/web_hammer/IndiscreteGestureHandler.js +44 -0
- package/lib/module/web_hammer/IndiscreteGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/LongPressGestureHandler.js +58 -0
- package/lib/module/web_hammer/LongPressGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/NativeViewGestureHandler.js +49 -0
- package/lib/module/web_hammer/NativeViewGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/NodeManager.js +33 -0
- package/lib/module/web_hammer/NodeManager.js.map +1 -0
- package/lib/module/web_hammer/PanGestureHandler.js +194 -0
- package/lib/module/web_hammer/PanGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/PinchGestureHandler.js +29 -0
- package/lib/module/web_hammer/PinchGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/PressGestureHandler.js +174 -0
- package/lib/module/web_hammer/PressGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/RotationGestureHandler.js +32 -0
- package/lib/module/web_hammer/RotationGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/TapGestureHandler.js +180 -0
- package/lib/module/web_hammer/TapGestureHandler.js.map +1 -0
- package/lib/module/web_hammer/constants.js +43 -0
- package/lib/module/web_hammer/constants.js.map +1 -0
- package/lib/module/web_hammer/utils.js +19 -0
- package/lib/module/web_hammer/utils.js.map +1 -0
- package/lib/typescript/ActionType.d.ts +7 -0
- package/lib/typescript/Directions.d.ts +7 -0
- package/lib/typescript/EnableNewWebImplementation.d.ts +3 -0
- package/lib/typescript/GestureHandlerRootViewContext.d.ts +3 -0
- package/lib/typescript/PlatformConstants.d.ts +5 -0
- package/lib/typescript/PlatformConstants.web.d.ts +4 -0
- package/lib/typescript/RNGestureHandlerModule.d.ts +13 -0
- package/lib/typescript/RNGestureHandlerModule.macos.d.ts +47 -0
- package/lib/typescript/RNGestureHandlerModule.web.d.ts +50 -0
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts +48 -0
- package/lib/typescript/RNRenderer.d.ts +1 -0
- package/lib/typescript/RNRenderer.web.d.ts +3 -0
- package/lib/typescript/State.d.ts +9 -0
- package/lib/typescript/TouchEventType.d.ts +8 -0
- package/lib/typescript/components/DrawerLayout.d.ts +148 -0
- package/lib/typescript/components/GestureButtons.d.ts +121 -0
- package/lib/typescript/components/GestureComponents.d.ts +22 -0
- package/lib/typescript/components/GestureComponents.web.d.ts +8 -0
- package/lib/typescript/components/GestureHandlerButton.d.ts +4 -0
- package/lib/typescript/components/GestureHandlerButton.web.d.ts +4 -0
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts +6 -0
- package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -0
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts +6 -0
- package/lib/typescript/components/Swipeable.d.ts +178 -0
- package/lib/typescript/components/gestureHandlerRootHOC.d.ts +3 -0
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +68 -0
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts +36 -0
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts +45 -0
- package/lib/typescript/components/touchables/TouchableNativeFeedback.d.ts +2 -0
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +25 -0
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +7 -0
- package/lib/typescript/components/touchables/index.d.ts +7 -0
- package/lib/typescript/getReactNativeVersion.d.ts +4 -0
- package/lib/typescript/getReactNativeVersion.web.d.ts +1 -0
- package/lib/typescript/getShadowNodeFromRef.d.ts +1 -0
- package/lib/typescript/getShadowNodeFromRef.web.d.ts +1 -0
- package/lib/typescript/ghQueueMicrotask.d.ts +1 -0
- package/lib/typescript/handlers/FlingGestureHandler.d.ts +34 -0
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts +44 -0
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts +56 -0
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +28 -0
- package/lib/typescript/handlers/PanGestureHandler.d.ts +139 -0
- package/lib/typescript/handlers/PinchGestureHandler.d.ts +29 -0
- package/lib/typescript/handlers/PressabilityDebugView.d.ts +1 -0
- package/lib/typescript/handlers/PressabilityDebugView.web.d.ts +1 -0
- package/lib/typescript/handlers/RotationGestureHandler.d.ts +29 -0
- package/lib/typescript/handlers/TapGestureHandler.d.ts +57 -0
- package/lib/typescript/handlers/createHandler.d.ts +11 -0
- package/lib/typescript/handlers/createNativeWrapper.d.ts +3 -0
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +68 -0
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts +42 -0
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts +19 -0
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts +4 -0
- package/lib/typescript/handlers/gestures/flingGesture.d.ts +9 -0
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +15 -0
- package/lib/typescript/handlers/gestures/gesture.d.ts +110 -0
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts +21 -0
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts +41 -0
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +9 -0
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts +4 -0
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts +32 -0
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts +9 -0
- package/lib/typescript/handlers/gestures/manualGesture.d.ts +7 -0
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts +9 -0
- package/lib/typescript/handlers/gestures/panGesture.d.ts +26 -0
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts +11 -0
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +14 -0
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts +12 -0
- package/lib/typescript/handlers/gestures/tapGesture.d.ts +14 -0
- package/lib/typescript/handlers/handlersRegistry.d.ts +14 -0
- package/lib/typescript/index.d.ts +52 -0
- package/lib/typescript/init.d.ts +2 -0
- package/lib/typescript/jestUtils/index.d.ts +1 -0
- package/lib/typescript/jestUtils/jestUtils.d.ts +28 -0
- package/lib/typescript/mocks.d.ts +44 -0
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +14 -0
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +6 -0
- package/lib/typescript/typeUtils.d.ts +1 -0
- package/lib/typescript/utils.d.ts +8 -0
- package/lib/typescript/web/constants.d.ts +7 -0
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts +30 -0
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts +29 -0
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts +27 -0
- package/lib/typescript/web/handlers/GestureHandler.d.ts +90 -0
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +10 -0
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +26 -0
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +12 -0
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +24 -0
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts +55 -0
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +28 -0
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +29 -0
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts +39 -0
- package/lib/typescript/web/interfaces.d.ts +141 -0
- package/lib/typescript/web/tools/CircularBuffer.d.ts +11 -0
- package/lib/typescript/web/tools/EventManager.d.ts +34 -0
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts +22 -0
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +29 -0
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +21 -0
- package/lib/typescript/web/tools/InteractionManager.d.ts +17 -0
- package/lib/typescript/web/tools/LeastSquareSolver.d.ts +12 -0
- package/lib/typescript/web/tools/NodeManager.d.ts +11 -0
- package/lib/typescript/web/tools/PointerEventManager.d.ts +8 -0
- package/lib/typescript/web/tools/PointerTracker.d.ts +53 -0
- package/lib/typescript/web/tools/TouchEventManager.d.ts +6 -0
- package/lib/typescript/web/tools/VelocityTracker.d.ts +13 -0
- package/lib/typescript/web/utils.d.ts +4 -0
- package/lib/typescript/web_hammer/DiscreteGestureHandler.d.ts +20 -0
- package/lib/typescript/web_hammer/DraggingGestureHandler.d.ts +15 -0
- package/lib/typescript/web_hammer/Errors.d.ts +3 -0
- package/lib/typescript/web_hammer/FlingGestureHandler.d.ts +43 -0
- package/lib/typescript/web_hammer/GestureHandler.d.ts +145 -0
- package/lib/typescript/web_hammer/IndiscreteGestureHandler.d.ts +40 -0
- package/lib/typescript/web_hammer/LongPressGestureHandler.d.ts +38 -0
- package/lib/typescript/web_hammer/NativeViewGestureHandler.d.ts +7 -0
- package/lib/typescript/web_hammer/NodeManager.d.ts +8 -0
- package/lib/typescript/web_hammer/PanGestureHandler.d.ts +56 -0
- package/lib/typescript/web_hammer/PinchGestureHandler.d.ts +13 -0
- package/lib/typescript/web_hammer/PressGestureHandler.d.ts +83 -0
- package/lib/typescript/web_hammer/RotationGestureHandler.d.ts +13 -0
- package/lib/typescript/web_hammer/TapGestureHandler.d.ts +57 -0
- package/lib/typescript/web_hammer/constants.d.ts +39 -0
- package/lib/typescript/web_hammer/utils.d.ts +9 -0
- package/package.json +156 -0
- package/src/ActionType.ts +9 -0
- package/src/Directions.ts +9 -0
- package/src/EnableNewWebImplementation.ts +35 -0
- package/src/GestureHandlerRootViewContext.ts +3 -0
- package/src/PlatformConstants.ts +8 -0
- package/src/PlatformConstants.web.ts +5 -0
- package/src/RNGestureHandlerModule.macos.ts +133 -0
- package/src/RNGestureHandlerModule.ts +50 -0
- package/src/RNGestureHandlerModule.web.ts +146 -0
- package/src/RNGestureHandlerModule.windows.ts +144 -0
- package/src/RNRenderer.ts +3 -0
- package/src/RNRenderer.web.ts +3 -0
- package/src/State.ts +13 -0
- package/src/TouchEventType.ts +10 -0
- package/src/components/DrawerLayout.tsx +743 -0
- package/src/components/GestureButtons.tsx +332 -0
- package/src/components/GestureComponents.tsx +148 -0
- package/src/components/GestureComponents.web.tsx +41 -0
- package/src/components/GestureHandlerButton.tsx +5 -0
- package/src/components/GestureHandlerButton.web.tsx +6 -0
- package/src/components/GestureHandlerRootView.android.tsx +24 -0
- package/src/components/GestureHandlerRootView.tsx +23 -0
- package/src/components/GestureHandlerRootView.web.tsx +17 -0
- package/src/components/Swipeable.tsx +584 -0
- package/src/components/gestureHandlerRootHOC.tsx +32 -0
- package/src/components/touchables/GenericTouchable.tsx +301 -0
- package/src/components/touchables/TouchableHighlight.tsx +115 -0
- package/src/components/touchables/TouchableNativeFeedback.android.tsx +91 -0
- package/src/components/touchables/TouchableNativeFeedback.tsx +3 -0
- package/src/components/touchables/TouchableOpacity.tsx +75 -0
- package/src/components/touchables/TouchableWithoutFeedback.tsx +14 -0
- package/src/components/touchables/index.ts +7 -0
- package/src/getReactNativeVersion.ts +11 -0
- package/src/getReactNativeVersion.web.ts +3 -0
- package/src/getShadowNodeFromRef.ts +22 -0
- package/src/getShadowNodeFromRef.web.ts +7 -0
- package/src/ghQueueMicrotask.ts +5 -0
- package/src/handlers/FlingGestureHandler.ts +59 -0
- package/src/handlers/ForceTouchGestureHandler.ts +90 -0
- package/src/handlers/LongPressGestureHandler.ts +88 -0
- package/src/handlers/NativeViewGestureHandler.ts +55 -0
- package/src/handlers/PanGestureHandler.ts +325 -0
- package/src/handlers/PinchGestureHandler.ts +48 -0
- package/src/handlers/PressabilityDebugView.tsx +2 -0
- package/src/handlers/PressabilityDebugView.web.tsx +4 -0
- package/src/handlers/RotationGestureHandler.ts +48 -0
- package/src/handlers/TapGestureHandler.ts +94 -0
- package/src/handlers/createHandler.tsx +533 -0
- package/src/handlers/createNativeWrapper.tsx +80 -0
- package/src/handlers/gestureHandlerCommon.ts +250 -0
- package/src/handlers/gestureHandlerTypesCompat.ts +106 -0
- package/src/handlers/gestures/GestureDetector.tsx +822 -0
- package/src/handlers/gestures/eventReceiver.ts +155 -0
- package/src/handlers/gestures/flingGesture.ts +27 -0
- package/src/handlers/gestures/forceTouchGesture.ts +74 -0
- package/src/handlers/gestures/gesture.ts +349 -0
- package/src/handlers/gestures/gestureComposition.ts +122 -0
- package/src/handlers/gestures/gestureObjects.ts +84 -0
- package/src/handlers/gestures/gestureStateManager.ts +62 -0
- package/src/handlers/gestures/gestureStateManager.web.ts +24 -0
- package/src/handlers/gestures/hoverGesture.ts +83 -0
- package/src/handlers/gestures/longPressGesture.ts +28 -0
- package/src/handlers/gestures/manualGesture.ts +31 -0
- package/src/handlers/gestures/nativeGesture.ts +27 -0
- package/src/handlers/gestures/panGesture.ts +152 -0
- package/src/handlers/gestures/pinchGesture.ts +51 -0
- package/src/handlers/gestures/reanimatedWrapper.ts +56 -0
- package/src/handlers/gestures/rotationGesture.ts +51 -0
- package/src/handlers/gestures/tapGesture.ts +53 -0
- package/src/handlers/handlersRegistry.ts +60 -0
- package/src/index.ts +174 -0
- package/src/init.ts +18 -0
- package/src/jestUtils/index.ts +1 -0
- package/src/jestUtils/jestUtils.ts +505 -0
- package/src/mocks.ts +67 -0
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -0
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -0
- package/src/typeUtils.ts +1 -0
- package/src/utils.ts +54 -0
- package/src/web/constants.ts +8 -0
- package/src/web/detectors/RotationGestureDetector.ts +168 -0
- package/src/web/detectors/ScaleGestureDetector.ts +172 -0
- package/src/web/handlers/FlingGestureHandler.ts +161 -0
- package/src/web/handlers/GestureHandler.ts +849 -0
- package/src/web/handlers/HoverGestureHandler.ts +43 -0
- package/src/web/handlers/LongPressGestureHandler.ts +125 -0
- package/src/web/handlers/ManualGestureHandler.ts +43 -0
- package/src/web/handlers/NativeViewGestureHandler.ts +167 -0
- package/src/web/handlers/PanGestureHandler.ts +485 -0
- package/src/web/handlers/PinchGestureHandler.ts +158 -0
- package/src/web/handlers/RotationGestureHandler.ts +172 -0
- package/src/web/handlers/TapGestureHandler.ts +273 -0
- package/src/web/interfaces.ts +167 -0
- package/src/web/tools/CircularBuffer.ts +42 -0
- package/src/web/tools/EventManager.ts +104 -0
- package/src/web/tools/GestureHandlerDelegate.ts +23 -0
- package/src/web/tools/GestureHandlerOrchestrator.ts +389 -0
- package/src/web/tools/GestureHandlerWebDelegate.ts +115 -0
- package/src/web/tools/InteractionManager.ts +130 -0
- package/src/web/tools/LeastSquareSolver.ts +182 -0
- package/src/web/tools/NodeManager.ts +43 -0
- package/src/web/tools/PointerEventManager.ts +202 -0
- package/src/web/tools/PointerTracker.ts +240 -0
- package/src/web/tools/TouchEventManager.ts +167 -0
- package/src/web/tools/VelocityTracker.ts +98 -0
- package/src/web/utils.ts +8 -0
- package/src/web_hammer/DiscreteGestureHandler.ts +82 -0
- package/src/web_hammer/DraggingGestureHandler.ts +34 -0
- package/src/web_hammer/Errors.ts +7 -0
- package/src/web_hammer/FlingGestureHandler.ts +134 -0
- package/src/web_hammer/GestureHandler.ts +599 -0
- package/src/web_hammer/IndiscreteGestureHandler.ts +33 -0
- package/src/web_hammer/LongPressGestureHandler.ts +56 -0
- package/src/web_hammer/NativeViewGestureHandler.ts +47 -0
- package/src/web_hammer/NodeManager.ts +42 -0
- package/src/web_hammer/PanGestureHandler.ts +226 -0
- package/src/web_hammer/PinchGestureHandler.ts +25 -0
- package/src/web_hammer/PressGestureHandler.ts +167 -0
- package/src/web_hammer/RotationGestureHandler.ts +25 -0
- package/src/web_hammer/TapGestureHandler.ts +172 -0
- package/src/web_hammer/constants.ts +48 -0
- package/src/web_hammer/utils.ts +24 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["TouchableOpacity.tsx"],"names":["TouchableOpacity","Component","childStyle","StyleSheet","flatten","props","style","opacity","valueOf","Animated","Value","getChildStyleOpacityWithDefault","value","duration","timing","toValue","easing","Easing","inOut","quad","useNativeDriver","useNativeAnimations","start","_from","to","TOUCHABLE_STATE","BEGAN","setOpacityTo","activeOpacity","UNDETERMINED","MOVED_OUTSIDE","render","rest","onStateChange","children","GenericTouchable","defaultProps"],"mappings":";;;;;;;AAAA;;AAOA;;AAIA;;;;;;;;;;AAQA;AACA;AACA;AACe,MAAMA,gBAAN,SAA+BC,eAA/B,CAAgE;AAAA;AAAA;;AAAA,6DAO3C,MAAM;AACtC,YAAMC,UAAU,GAAGC,wBAAWC,OAAX,CAAmB,KAAKC,KAAL,CAAWC,KAA9B,KAAwC,EAA3D;AACA,aAAOJ,UAAU,CAACK,OAAX,IAAsB,IAAtB,GACH,CADG,GAEFL,UAAU,CAACK,OAAX,CAAmBC,OAAnB,EAFL;AAGD,KAZ4E;;AAAA,qCAcnE,IAAIC,sBAASC,KAAb,CAAmB,KAAKC,+BAAL,EAAnB,CAdmE;;AAAA,0CAgB9D,CAACC,KAAD,EAAgBC,QAAhB,KAAqC;AAAA;;AAClDJ,4BAASK,MAAT,CAAgB,KAAKP,OAArB,EAA8B;AAC5BQ,QAAAA,OAAO,EAAEH,KADmB;AAE5BC,QAAAA,QAAQ,EAAEA,QAFkB;AAG5BG,QAAAA,MAAM,EAAEC,oBAAOC,KAAP,CAAaD,oBAAOE,IAApB,CAHoB;AAI5BC,QAAAA,eAAe,2BAAE,KAAKf,KAAL,CAAWgB,mBAAb,yEAAoC;AAJvB,OAA9B,EAKGC,KALH;AAMD,KAvB4E;;AAAA,2CAyB7D,CAACC,KAAD,EAAgBC,EAAhB,KAA+B;AAC7C,UAAIA,EAAE,KAAKC,kCAAgBC,KAA3B,EAAkC;AAChC,aAAKC,YAAL,CAAkB,KAAKtB,KAAL,CAAWuB,aAA7B,EAA6C,CAA7C;AACD,OAFD,MAEO,IACLJ,EAAE,KAAKC,kCAAgBI,YAAvB,IACAL,EAAE,KAAKC,kCAAgBK,aAFlB,EAGL;AACA,aAAKH,YAAL,CAAkB,KAAKhB,+BAAL,EAAlB,EAA0D,GAA1D;AACD;AACF,KAlC4E;AAAA;;AAoC7EoB,EAAAA,MAAM,GAAG;AACP,UAAM;AAAEzB,MAAAA,KAAK,GAAG,EAAV;AAAc,SAAG0B;AAAjB,QAA0B,KAAK3B,KAArC;AACA,wBACE,oBAAC,yBAAD,eACM2B,IADN;AAEE,MAAA,KAAK,EAAE,CACL1B,KADK,EAEL;AACEC,QAAAA,OAAO,EAAE,KAAKA,OADhB,CAC8C;;AAD9C,OAFK,CAFT;AAQE,MAAA,aAAa,EAAE,KAAK0B;AARtB,QASG,KAAK5B,KAAL,CAAW6B,QAAX,GAAsB,KAAK7B,KAAL,CAAW6B,QAAjC,gBAA4C,oBAAC,iBAAD,OAT/C,CADF;AAaD;;AAnD4E;;;;gBAA1DlC,gB,kBACG,EACpB,GAAGmC,0BAAiBC,YADA;AAEpBR,EAAAA,aAAa,EAAE;AAFK,C","sourcesContent":["import {\r\n Animated,\r\n Easing,\r\n StyleSheet,\r\n View,\r\n TouchableOpacityProps as RNTouchableOpacityProps,\r\n} from 'react-native';\r\nimport GenericTouchable, {\r\n TOUCHABLE_STATE,\r\n GenericTouchableProps,\r\n} from './GenericTouchable';\r\nimport * as React from 'react';\r\nimport { Component } from 'react';\r\n\r\nexport type TouchableOpacityProps = RNTouchableOpacityProps &\r\n GenericTouchableProps & {\r\n useNativeAnimations?: boolean;\r\n };\r\n\r\n/**\r\n * TouchableOpacity bases on timing animation which has been used in RN's core\r\n */\r\nexport default class TouchableOpacity extends Component<TouchableOpacityProps> {\r\n static defaultProps = {\r\n ...GenericTouchable.defaultProps,\r\n activeOpacity: 0.2,\r\n };\r\n\r\n // opacity is 1 one by default but could be overwritten\r\n getChildStyleOpacityWithDefault = () => {\r\n const childStyle = StyleSheet.flatten(this.props.style) || {};\r\n return childStyle.opacity == null\r\n ? 1\r\n : (childStyle.opacity.valueOf() as number);\r\n };\r\n\r\n opacity = new Animated.Value(this.getChildStyleOpacityWithDefault());\r\n\r\n setOpacityTo = (value: number, duration: number) => {\r\n Animated.timing(this.opacity, {\r\n toValue: value,\r\n duration: duration,\r\n easing: Easing.inOut(Easing.quad),\r\n useNativeDriver: this.props.useNativeAnimations ?? true,\r\n }).start();\r\n };\r\n\r\n onStateChange = (_from: number, to: number) => {\r\n if (to === TOUCHABLE_STATE.BEGAN) {\r\n this.setOpacityTo(this.props.activeOpacity!, 0);\r\n } else if (\r\n to === TOUCHABLE_STATE.UNDETERMINED ||\r\n to === TOUCHABLE_STATE.MOVED_OUTSIDE\r\n ) {\r\n this.setOpacityTo(this.getChildStyleOpacityWithDefault(), 150);\r\n }\r\n };\r\n\r\n render() {\r\n const { style = {}, ...rest } = this.props;\r\n return (\r\n <GenericTouchable\r\n {...rest}\r\n style={[\r\n style,\r\n {\r\n opacity: this.opacity as unknown as number, // TODO: fix this\r\n },\r\n ]}\r\n onStateChange={this.onStateChange}>\r\n {this.props.children ? this.props.children : <View />}\r\n </GenericTouchable>\r\n );\r\n }\r\n}\r\n"]}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
9
|
+
|
10
|
+
var _GenericTouchable = _interopRequireDefault(require("./GenericTouchable"));
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
+
|
14
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
15
|
+
|
16
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17
|
+
|
18
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
19
|
+
|
20
|
+
const TouchableWithoutFeedback = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(_GenericTouchable.default, _extends({
|
21
|
+
ref: ref
|
22
|
+
}, props)));
|
23
|
+
TouchableWithoutFeedback.defaultProps = _GenericTouchable.default.defaultProps;
|
24
|
+
var _default = TouchableWithoutFeedback;
|
25
|
+
exports.default = _default;
|
26
|
+
//# sourceMappingURL=TouchableWithoutFeedback.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["TouchableWithoutFeedback.tsx"],"names":["TouchableWithoutFeedback","React","forwardRef","props","ref","defaultProps","GenericTouchable"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;;;AAIA,MAAMA,wBAAwB,gBAAGC,KAAK,CAACC,UAAN,CAG/B,CAACC,KAAD,EAAQC,GAAR,kBAAgB,oBAAC,yBAAD;AAAkB,EAAA,GAAG,EAAEA;AAAvB,GAAgCD,KAAhC,EAHe,CAAjC;AAKAH,wBAAwB,CAACK,YAAzB,GAAwCC,0BAAiBD,YAAzD;eAEeL,wB","sourcesContent":["import * as React from 'react';\r\nimport { PropsWithChildren } from 'react';\r\nimport GenericTouchable, { GenericTouchableProps } from './GenericTouchable';\r\n\r\nexport type TouchableWithoutFeedbackProps = GenericTouchableProps;\r\n\r\nconst TouchableWithoutFeedback = React.forwardRef<\r\n GenericTouchable,\r\n PropsWithChildren<TouchableWithoutFeedbackProps>\r\n>((props, ref) => <GenericTouchable ref={ref} {...props} />);\r\n\r\nTouchableWithoutFeedback.defaultProps = GenericTouchable.defaultProps;\r\n\r\nexport default TouchableWithoutFeedback;\r\n"]}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "TouchableNativeFeedback", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function () {
|
9
|
+
return _TouchableNativeFeedback.default;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "TouchableWithoutFeedback", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function () {
|
15
|
+
return _TouchableWithoutFeedback.default;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
Object.defineProperty(exports, "TouchableOpacity", {
|
19
|
+
enumerable: true,
|
20
|
+
get: function () {
|
21
|
+
return _TouchableOpacity.default;
|
22
|
+
}
|
23
|
+
});
|
24
|
+
Object.defineProperty(exports, "TouchableHighlight", {
|
25
|
+
enumerable: true,
|
26
|
+
get: function () {
|
27
|
+
return _TouchableHighlight.default;
|
28
|
+
}
|
29
|
+
});
|
30
|
+
|
31
|
+
var _TouchableNativeFeedback = _interopRequireDefault(require("./TouchableNativeFeedback"));
|
32
|
+
|
33
|
+
var _TouchableWithoutFeedback = _interopRequireDefault(require("./TouchableWithoutFeedback"));
|
34
|
+
|
35
|
+
var _TouchableOpacity = _interopRequireDefault(require("./TouchableOpacity"));
|
36
|
+
|
37
|
+
var _TouchableHighlight = _interopRequireDefault(require("./TouchableHighlight"));
|
38
|
+
|
39
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
40
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;AACA;;AACA;;AACA","sourcesContent":["export type { TouchableHighlightProps } from './TouchableHighlight';\r\nexport type { TouchableOpacityProps } from './TouchableOpacity';\r\nexport type { TouchableWithoutFeedbackProps } from './TouchableWithoutFeedback';\r\nexport { default as TouchableNativeFeedback } from './TouchableNativeFeedback';\r\nexport { default as TouchableWithoutFeedback } from './TouchableWithoutFeedback';\r\nexport { default as TouchableOpacity } from './TouchableOpacity';\r\nexport { default as TouchableHighlight } from './TouchableHighlight';\r\n"]}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.getReactNativeVersion = getReactNativeVersion;
|
7
|
+
|
8
|
+
var _package = _interopRequireDefault(require("react-native/package.json"));
|
9
|
+
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
|
+
|
12
|
+
const [majorStr, minorStr] = _package.default.version.split('.');
|
13
|
+
|
14
|
+
const REACT_NATIVE_VERSION = {
|
15
|
+
major: parseInt(majorStr, 10),
|
16
|
+
minor: parseInt(minorStr, 10)
|
17
|
+
};
|
18
|
+
|
19
|
+
function getReactNativeVersion() {
|
20
|
+
return REACT_NATIVE_VERSION;
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=getReactNativeVersion.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["getReactNativeVersion.ts"],"names":["majorStr","minorStr","pack","version","split","REACT_NATIVE_VERSION","major","parseInt","minor","getReactNativeVersion"],"mappings":";;;;;;;AAAA;;;;AAEA,MAAM,CAACA,QAAD,EAAWC,QAAX,IAAuBC,iBAAKC,OAAL,CAAaC,KAAb,CAAmB,GAAnB,CAA7B;;AACA,MAAMC,oBAAoB,GAAG;AAC3BC,EAAAA,KAAK,EAAEC,QAAQ,CAACP,QAAD,EAAW,EAAX,CADY;AAE3BQ,EAAAA,KAAK,EAAED,QAAQ,CAACN,QAAD,EAAW,EAAX;AAFY,CAA7B;;AAKO,SAASQ,qBAAT,GAAiC;AACtC,SAAOJ,oBAAP;AACD","sourcesContent":["import pack from 'react-native/package.json';\r\n\r\nconst [majorStr, minorStr] = pack.version.split('.');\r\nconst REACT_NATIVE_VERSION = {\r\n major: parseInt(majorStr, 10),\r\n minor: parseInt(minorStr, 10),\r\n};\r\n\r\nexport function getReactNativeVersion() {\r\n return REACT_NATIVE_VERSION;\r\n}\r\n"]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.getReactNativeVersion = getReactNativeVersion;
|
7
|
+
|
8
|
+
function getReactNativeVersion() {
|
9
|
+
throw new Error('getReactNativeVersion is not supported on web');
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=getReactNativeVersion.web.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["getReactNativeVersion.web.ts"],"names":["getReactNativeVersion","Error"],"mappings":";;;;;;;AAAO,SAASA,qBAAT,GAAiC;AACtC,QAAM,IAAIC,KAAJ,CAAU,+CAAV,CAAN;AACD","sourcesContent":["export function getReactNativeVersion() {\r\n throw new Error('getReactNativeVersion is not supported on web');\r\n}\r\n"]}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.getShadowNodeFromRef = getShadowNodeFromRef;
|
7
|
+
// Used by GestureDetector (unsupported on web at the moment) to check whether the
|
8
|
+
// attached view may get flattened on Fabric. This implementation causes errors
|
9
|
+
// on web due to the static resolution of `require` statements by webpack breaking
|
10
|
+
// the conditional importing. Solved by making .web file.
|
11
|
+
let findHostInstance_DEPRECATED;
|
12
|
+
|
13
|
+
function getShadowNodeFromRef(ref) {
|
14
|
+
// load findHostInstance_DEPRECATED lazily because it may not be available before render
|
15
|
+
if (findHostInstance_DEPRECATED === undefined) {
|
16
|
+
try {
|
17
|
+
findHostInstance_DEPRECATED = // eslint-disable-next-line @typescript-eslint/no-var-requires
|
18
|
+
require('react-native/Libraries/Renderer/shims/ReactFabric').findHostInstance_DEPRECATED;
|
19
|
+
} catch (e) {
|
20
|
+
findHostInstance_DEPRECATED = _ref => null;
|
21
|
+
}
|
22
|
+
} // @ts-ignore Fabric
|
23
|
+
|
24
|
+
|
25
|
+
return findHostInstance_DEPRECATED(ref)._internalInstanceHandle.stateNode.node;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=getShadowNodeFromRef.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["getShadowNodeFromRef.ts"],"names":["findHostInstance_DEPRECATED","getShadowNodeFromRef","ref","undefined","require","e","_ref","_internalInstanceHandle","stateNode","node"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,IAAIA,2BAAJ;;AAEO,SAASC,oBAAT,CAA8BC,GAA9B,EAAwC;AAC7C;AACA,MAAIF,2BAA2B,KAAKG,SAApC,EAA+C;AAC7C,QAAI;AACFH,MAAAA,2BAA2B,GACzB;AACAI,MAAAA,OAAO,CAAC,mDAAD,CAAP,CAA6DJ,2BAF/D;AAGD,KAJD,CAIE,OAAOK,CAAP,EAAU;AACVL,MAAAA,2BAA2B,GAAIM,IAAD,IAAe,IAA7C;AACD;AACF,GAV4C,CAY7C;;;AACA,SAAON,2BAA2B,CAACE,GAAD,CAA3B,CAAiCK,uBAAjC,CAAyDC,SAAzD,CACJC,IADH;AAED","sourcesContent":["// Used by GestureDetector (unsupported on web at the moment) to check whether the\r\n// attached view may get flattened on Fabric. This implementation causes errors\r\n// on web due to the static resolution of `require` statements by webpack breaking\r\n// the conditional importing. Solved by making .web file.\r\nlet findHostInstance_DEPRECATED: (ref: any) => void;\r\n\r\nexport function getShadowNodeFromRef(ref: any) {\r\n // load findHostInstance_DEPRECATED lazily because it may not be available before render\r\n if (findHostInstance_DEPRECATED === undefined) {\r\n try {\r\n findHostInstance_DEPRECATED =\r\n // eslint-disable-next-line @typescript-eslint/no-var-requires\r\n require('react-native/Libraries/Renderer/shims/ReactFabric').findHostInstance_DEPRECATED;\r\n } catch (e) {\r\n findHostInstance_DEPRECATED = (_ref: any) => null;\r\n }\r\n }\r\n\r\n // @ts-ignore Fabric\r\n return findHostInstance_DEPRECATED(ref)._internalInstanceHandle.stateNode\r\n .node;\r\n}\r\n"]}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.getShadowNodeFromRef = getShadowNodeFromRef;
|
7
|
+
|
8
|
+
// Used by GestureDetector (unsupported on web at the moment) to check whether the
|
9
|
+
// attached view may get flattened on Fabric. Original implementation causes errors
|
10
|
+
// on web due to the static resolution of `require` statements by webpack breaking
|
11
|
+
// the conditional importing.
|
12
|
+
function getShadowNodeFromRef(_ref) {
|
13
|
+
return null;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=getShadowNodeFromRef.web.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["getShadowNodeFromRef.web.ts"],"names":["getShadowNodeFromRef","_ref"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACO,SAASA,oBAAT,CAA8BC,IAA9B,EAAyC;AAC9C,SAAO,IAAP;AACD","sourcesContent":["// Used by GestureDetector (unsupported on web at the moment) to check whether the\r\n// attached view may get flattened on Fabric. Original implementation causes errors\r\n// on web due to the static resolution of `require` statements by webpack breaking\r\n// the conditional importing.\r\nexport function getShadowNodeFromRef(_ref: any) {\r\n return null;\r\n}\r\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.ghQueueMicrotask = void 0;
|
7
|
+
// `queueMicrotask` was introduced to react-native in version 0.66 (https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#v0660)
|
8
|
+
// Because Gesture Handler supports versions 0.64+, we have to handle situations where someone uses older version of react native.
|
9
|
+
// That's why if `queueMicrotask` doesn't exist, we use `setImmediate` instead, since it was used before we switched to `queueMicrotask` in version 2.11.0
|
10
|
+
const ghQueueMicrotask = typeof queueMicrotask === 'function' ? queueMicrotask : setImmediate;
|
11
|
+
exports.ghQueueMicrotask = ghQueueMicrotask;
|
12
|
+
//# sourceMappingURL=ghQueueMicrotask.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["ghQueueMicrotask.ts"],"names":["ghQueueMicrotask","queueMicrotask","setImmediate"],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAMA,gBAAgB,GAC3B,OAAOC,cAAP,KAA0B,UAA1B,GAAuCA,cAAvC,GAAwDC,YADnD","sourcesContent":["// `queueMicrotask` was introduced to react-native in version 0.66 (https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#v0660)\r\n// Because Gesture Handler supports versions 0.64+, we have to handle situations where someone uses older version of react native.\r\n// That's why if `queueMicrotask` doesn't exist, we use `setImmediate` instead, since it was used before we switched to `queueMicrotask` in version 2.11.0\r\nexport const ghQueueMicrotask =\r\n typeof queueMicrotask === 'function' ? queueMicrotask : setImmediate;\r\n"]}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.FlingGestureHandler = exports.flingHandlerName = exports.flingGestureHandlerProps = void 0;
|
7
|
+
|
8
|
+
var _createHandler = _interopRequireDefault(require("./createHandler"));
|
9
|
+
|
10
|
+
var _gestureHandlerCommon = require("./gestureHandlerCommon");
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
+
|
14
|
+
const flingGestureHandlerProps = ['numberOfPointers', 'direction'];
|
15
|
+
exports.flingGestureHandlerProps = flingGestureHandlerProps;
|
16
|
+
const flingHandlerName = 'FlingGestureHandler';
|
17
|
+
exports.flingHandlerName = flingHandlerName;
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file
|
19
|
+
const FlingGestureHandler = (0, _createHandler.default)({
|
20
|
+
name: flingHandlerName,
|
21
|
+
allowedProps: [..._gestureHandlerCommon.baseGestureHandlerProps, ...flingGestureHandlerProps],
|
22
|
+
config: {}
|
23
|
+
});
|
24
|
+
exports.FlingGestureHandler = FlingGestureHandler;
|
25
|
+
//# sourceMappingURL=FlingGestureHandler.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["FlingGestureHandler.ts"],"names":["flingGestureHandlerProps","flingHandlerName","FlingGestureHandler","name","allowedProps","baseGestureHandlerProps","config"],"mappings":";;;;;;;AAAA;;AACA;;;;AAKO,MAAMA,wBAAwB,GAAG,CACtC,kBADsC,EAEtC,WAFsC,CAAjC;;AAsCA,MAAMC,gBAAgB,GAAG,qBAAzB;;AAGP;AACO,MAAMC,mBAAmB,GAAG,4BAGjC;AACAC,EAAAA,IAAI,EAAEF,gBADN;AAEAG,EAAAA,YAAY,EAAE,CACZ,GAAGC,6CADS,EAEZ,GAAGL,wBAFS,CAFd;AAMAM,EAAAA,MAAM,EAAE;AANR,CAHiC,CAA5B","sourcesContent":["import createHandler from './createHandler';\r\nimport {\r\n BaseGestureHandlerProps,\r\n baseGestureHandlerProps,\r\n} from './gestureHandlerCommon';\r\n\r\nexport const flingGestureHandlerProps = [\r\n 'numberOfPointers',\r\n 'direction',\r\n] as const;\r\n\r\nexport type FlingGestureHandlerEventPayload = {\r\n x: number;\r\n y: number;\r\n absoluteX: number;\r\n absoluteY: number;\r\n};\r\nexport interface FlingGestureConfig {\r\n /**\r\n * Expressed allowed direction of movement. It's possible to pass one or many\r\n * directions in one parameter:\r\n *\r\n * ```js\r\n * direction={Directions.RIGHT | Directions.LEFT}\r\n * ```\r\n *\r\n * or\r\n *\r\n * ```js\r\n * direction={Directions.DOWN}\r\n * ```\r\n */\r\n direction?: number;\r\n\r\n /**\r\n * Determine exact number of points required to handle the fling gesture.\r\n */\r\n numberOfPointers?: number;\r\n}\r\n\r\nexport interface FlingGestureHandlerProps\r\n extends BaseGestureHandlerProps<FlingGestureHandlerEventPayload>,\r\n FlingGestureConfig {}\r\n\r\nexport const flingHandlerName = 'FlingGestureHandler';\r\n\r\nexport type FlingGestureHandler = typeof FlingGestureHandler;\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\r\nexport const FlingGestureHandler = createHandler<\r\n FlingGestureHandlerProps,\r\n FlingGestureHandlerEventPayload\r\n>({\r\n name: flingHandlerName,\r\n allowedProps: [\r\n ...baseGestureHandlerProps,\r\n ...flingGestureHandlerProps,\r\n ] as const,\r\n config: {},\r\n});\r\n"]}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.ForceTouchGestureHandler = exports.forceTouchHandlerName = exports.forceTouchGestureHandlerProps = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
10
|
+
var _utils = require("../utils");
|
11
|
+
|
12
|
+
var _PlatformConstants = _interopRequireDefault(require("../PlatformConstants"));
|
13
|
+
|
14
|
+
var _createHandler = _interopRequireDefault(require("./createHandler"));
|
15
|
+
|
16
|
+
var _gestureHandlerCommon = require("./gestureHandlerCommon");
|
17
|
+
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
+
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
21
|
+
|
22
|
+
const forceTouchGestureHandlerProps = ['minForce', 'maxForce', 'feedbackOnActivation']; // implicit `children` prop has been removed in @types/react^18.0.0
|
23
|
+
|
24
|
+
exports.forceTouchGestureHandlerProps = forceTouchGestureHandlerProps;
|
25
|
+
|
26
|
+
class ForceTouchFallback extends _react.default.Component {
|
27
|
+
componentDidMount() {
|
28
|
+
console.warn((0, _utils.tagMessage)('ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'));
|
29
|
+
}
|
30
|
+
|
31
|
+
render() {
|
32
|
+
return this.props.children;
|
33
|
+
}
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
_defineProperty(ForceTouchFallback, "forceTouchAvailable", false);
|
38
|
+
|
39
|
+
const forceTouchHandlerName = 'ForceTouchGestureHandler'; // eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file
|
40
|
+
|
41
|
+
exports.forceTouchHandlerName = forceTouchHandlerName;
|
42
|
+
const ForceTouchGestureHandler = _PlatformConstants.default !== null && _PlatformConstants.default !== void 0 && _PlatformConstants.default.forceTouchAvailable ? (0, _createHandler.default)({
|
43
|
+
name: forceTouchHandlerName,
|
44
|
+
allowedProps: [..._gestureHandlerCommon.baseGestureHandlerProps, ...forceTouchGestureHandlerProps],
|
45
|
+
config: {}
|
46
|
+
}) : ForceTouchFallback;
|
47
|
+
exports.ForceTouchGestureHandler = ForceTouchGestureHandler;
|
48
|
+
ForceTouchGestureHandler.forceTouchAvailable = (_PlatformConstants.default === null || _PlatformConstants.default === void 0 ? void 0 : _PlatformConstants.default.forceTouchAvailable) || false;
|
49
|
+
//# sourceMappingURL=ForceTouchGestureHandler.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["ForceTouchGestureHandler.ts"],"names":["forceTouchGestureHandlerProps","ForceTouchFallback","React","Component","componentDidMount","console","warn","render","props","children","forceTouchHandlerName","ForceTouchGestureHandler","PlatformConstants","forceTouchAvailable","name","allowedProps","baseGestureHandlerProps","config"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAKO,MAAMA,6BAA6B,GAAG,CAC3C,UAD2C,EAE3C,UAF2C,EAG3C,sBAH2C,CAAtC,C,CAMP;;;;AACA,MAAMC,kBAAN,SAAiCC,eAAMC,SAAvC,CAA6E;AAE3EC,EAAAA,iBAAiB,GAAG;AAClBC,IAAAA,OAAO,CAACC,IAAR,CACE,uBACE,8NADF,CADF;AAKD;;AACDC,EAAAA,MAAM,GAAG;AACP,WAAO,KAAKC,KAAL,CAAWC,QAAlB;AACD;;AAX0E;;gBAAvER,kB,yBACyB,K;;AAsDxB,MAAMS,qBAAqB,GAAG,0BAA9B,C,CAEP;;;AACO,MAAMC,wBAAwB,GAAGC,2GAAmBC,mBAAnB,GACpC,4BAGE;AACAC,EAAAA,IAAI,EAAEJ,qBADN;AAEAK,EAAAA,YAAY,EAAE,CACZ,GAAGC,6CADS,EAEZ,GAAGhB,6BAFS,CAFd;AAMAiB,EAAAA,MAAM,EAAE;AANR,CAHF,CADoC,GAYpChB,kBAZG;;AAcNU,wBAAD,CAAuDE,mBAAvD,GACE,oHAAmBA,mBAAnB,KAA0C,KAD5C","sourcesContent":["import React, { PropsWithChildren } from 'react';\r\nimport { tagMessage } from '../utils';\r\nimport PlatformConstants from '../PlatformConstants';\r\nimport createHandler from './createHandler';\r\nimport {\r\n BaseGestureHandlerProps,\r\n baseGestureHandlerProps,\r\n} from './gestureHandlerCommon';\r\n\r\nexport const forceTouchGestureHandlerProps = [\r\n 'minForce',\r\n 'maxForce',\r\n 'feedbackOnActivation',\r\n] as const;\r\n\r\n// implicit `children` prop has been removed in @types/react^18.0.0\r\nclass ForceTouchFallback extends React.Component<PropsWithChildren<unknown>> {\r\n static forceTouchAvailable = false;\r\n componentDidMount() {\r\n console.warn(\r\n tagMessage(\r\n 'ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'\r\n )\r\n );\r\n }\r\n render() {\r\n return this.props.children;\r\n }\r\n}\r\n\r\nexport type ForceTouchGestureHandlerEventPayload = {\r\n x: number;\r\n y: number;\r\n absoluteX: number;\r\n absoluteY: number;\r\n\r\n /**\r\n * The pressure of a touch.\r\n */\r\n force: number;\r\n};\r\n\r\nexport interface ForceTouchGestureConfig {\r\n /**\r\n *\r\n * A minimal pressure that is required before handler can activate. Should be a\r\n * value from range `[0.0, 1.0]`. Default is `0.2`.\r\n */\r\n minForce?: number;\r\n\r\n /**\r\n * A maximal pressure that could be applied for handler. If the pressure is\r\n * greater, handler fails. Should be a value from range `[0.0, 1.0]`.\r\n */\r\n maxForce?: number;\r\n\r\n /**\r\n * Boolean value defining if haptic feedback has to be performed on\r\n * activation.\r\n */\r\n feedbackOnActivation?: boolean;\r\n}\r\n\r\nexport interface ForceTouchGestureHandlerProps\r\n extends BaseGestureHandlerProps<ForceTouchGestureHandlerEventPayload>,\r\n ForceTouchGestureConfig {}\r\n\r\nexport type ForceTouchGestureHandler = typeof ForceTouchGestureHandler & {\r\n forceTouchAvailable: boolean;\r\n};\r\n\r\nexport const forceTouchHandlerName = 'ForceTouchGestureHandler';\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\r\nexport const ForceTouchGestureHandler = PlatformConstants?.forceTouchAvailable\r\n ? createHandler<\r\n ForceTouchGestureHandlerProps,\r\n ForceTouchGestureHandlerEventPayload\r\n >({\r\n name: forceTouchHandlerName,\r\n allowedProps: [\r\n ...baseGestureHandlerProps,\r\n ...forceTouchGestureHandlerProps,\r\n ] as const,\r\n config: {},\r\n })\r\n : ForceTouchFallback;\r\n\r\n(ForceTouchGestureHandler as ForceTouchGestureHandler).forceTouchAvailable =\r\n PlatformConstants?.forceTouchAvailable || false;\r\n"]}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.LongPressGestureHandler = exports.longPressHandlerName = exports.longPressGestureHandlerProps = void 0;
|
7
|
+
|
8
|
+
var _createHandler = _interopRequireDefault(require("./createHandler"));
|
9
|
+
|
10
|
+
var _gestureHandlerCommon = require("./gestureHandlerCommon");
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
+
|
14
|
+
const longPressGestureHandlerProps = ['minDurationMs', 'maxDist'];
|
15
|
+
exports.longPressGestureHandlerProps = longPressGestureHandlerProps;
|
16
|
+
const longPressHandlerName = 'LongPressGestureHandler';
|
17
|
+
exports.longPressHandlerName = longPressHandlerName;
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file
|
19
|
+
const LongPressGestureHandler = (0, _createHandler.default)({
|
20
|
+
name: longPressHandlerName,
|
21
|
+
allowedProps: [..._gestureHandlerCommon.baseGestureHandlerProps, ...longPressGestureHandlerProps],
|
22
|
+
config: {
|
23
|
+
shouldCancelWhenOutside: true
|
24
|
+
}
|
25
|
+
});
|
26
|
+
exports.LongPressGestureHandler = LongPressGestureHandler;
|
27
|
+
//# sourceMappingURL=LongPressGestureHandler.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["LongPressGestureHandler.ts"],"names":["longPressGestureHandlerProps","longPressHandlerName","LongPressGestureHandler","name","allowedProps","baseGestureHandlerProps","config","shouldCancelWhenOutside"],"mappings":";;;;;;;AAAA;;AACA;;;;AAKO,MAAMA,4BAA4B,GAAG,CAC1C,eAD0C,EAE1C,SAF0C,CAArC;;AAiEA,MAAMC,oBAAoB,GAAG,yBAA7B;;AAGP;AACO,MAAMC,uBAAuB,GAAG,4BAGrC;AACAC,EAAAA,IAAI,EAAEF,oBADN;AAEAG,EAAAA,YAAY,EAAE,CACZ,GAAGC,6CADS,EAEZ,GAAGL,4BAFS,CAFd;AAMAM,EAAAA,MAAM,EAAE;AACNC,IAAAA,uBAAuB,EAAE;AADnB;AANR,CAHqC,CAAhC","sourcesContent":["import createHandler from './createHandler';\r\nimport {\r\n BaseGestureHandlerProps,\r\n baseGestureHandlerProps,\r\n} from './gestureHandlerCommon';\r\n\r\nexport const longPressGestureHandlerProps = [\r\n 'minDurationMs',\r\n 'maxDist',\r\n] as const;\r\n\r\nexport type LongPressGestureHandlerEventPayload = {\r\n /**\r\n * X coordinate, expressed in points, of the current position of the pointer\r\n * (finger or a leading pointer when there are multiple fingers placed)\r\n * relative to the view attached to the handler.\r\n */\r\n x: number;\r\n\r\n /**\r\n * Y coordinate, expressed in points, of the current position of the pointer\r\n * (finger or a leading pointer when there are multiple fingers placed)\r\n * relative to the view attached to the handler.\r\n */\r\n y: number;\r\n\r\n /**\r\n * X coordinate, expressed in points, of the current position of the pointer\r\n * (finger or a leading pointer when there are multiple fingers placed)\r\n * relative to the window. It is recommended to use `absoluteX` instead of\r\n * `x` in cases when the view attached to the handler can be transformed as an\r\n * effect of the gesture.\r\n */\r\n absoluteX: number;\r\n\r\n /**\r\n * Y coordinate, expressed in points, of the current position of the pointer\r\n * (finger or a leading pointer when there are multiple fingers placed)\r\n * relative to the window. It is recommended to use `absoluteY` instead of\r\n * `y` in cases when the view attached to the handler can be transformed as an\r\n * effect of the gesture.\r\n */\r\n absoluteY: number;\r\n\r\n /**\r\n * Duration of the long press (time since the start of the event), expressed\r\n * in milliseconds.\r\n */\r\n duration: number;\r\n};\r\n\r\nexport interface LongPressGestureConfig {\r\n /**\r\n * Minimum time, expressed in milliseconds, that a finger must remain pressed on\r\n * the corresponding view. The default value is 500.\r\n */\r\n minDurationMs?: number;\r\n\r\n /**\r\n * Maximum distance, expressed in points, that defines how far the finger is\r\n * allowed to travel during a long press gesture. If the finger travels\r\n * further than the defined distance and the handler hasn't yet activated, it\r\n * will fail to recognize the gesture. The default value is 10.\r\n */\r\n maxDist?: number;\r\n}\r\n\r\nexport interface LongPressGestureHandlerProps\r\n extends BaseGestureHandlerProps<LongPressGestureHandlerEventPayload>,\r\n LongPressGestureConfig {}\r\n\r\nexport const longPressHandlerName = 'LongPressGestureHandler';\r\n\r\nexport type LongPressGestureHandler = typeof LongPressGestureHandler;\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\r\nexport const LongPressGestureHandler = createHandler<\r\n LongPressGestureHandlerProps,\r\n LongPressGestureHandlerEventPayload\r\n>({\r\n name: longPressHandlerName,\r\n allowedProps: [\r\n ...baseGestureHandlerProps,\r\n ...longPressGestureHandlerProps,\r\n ] as const,\r\n config: {\r\n shouldCancelWhenOutside: true,\r\n },\r\n});\r\n"]}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.NativeViewGestureHandler = exports.nativeViewHandlerName = exports.nativeViewProps = exports.nativeViewGestureHandlerProps = void 0;
|
7
|
+
|
8
|
+
var _createHandler = _interopRequireDefault(require("./createHandler"));
|
9
|
+
|
10
|
+
var _gestureHandlerCommon = require("./gestureHandlerCommon");
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
+
|
14
|
+
const nativeViewGestureHandlerProps = ['shouldActivateOnStart', 'disallowInterruption'];
|
15
|
+
exports.nativeViewGestureHandlerProps = nativeViewGestureHandlerProps;
|
16
|
+
const nativeViewProps = [..._gestureHandlerCommon.baseGestureHandlerProps, ...nativeViewGestureHandlerProps];
|
17
|
+
exports.nativeViewProps = nativeViewProps;
|
18
|
+
const nativeViewHandlerName = 'NativeViewGestureHandler';
|
19
|
+
exports.nativeViewHandlerName = nativeViewHandlerName;
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file
|
21
|
+
const NativeViewGestureHandler = (0, _createHandler.default)({
|
22
|
+
name: nativeViewHandlerName,
|
23
|
+
allowedProps: nativeViewProps,
|
24
|
+
config: {}
|
25
|
+
});
|
26
|
+
exports.NativeViewGestureHandler = NativeViewGestureHandler;
|
27
|
+
//# sourceMappingURL=NativeViewGestureHandler.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["NativeViewGestureHandler.ts"],"names":["nativeViewGestureHandlerProps","nativeViewProps","baseGestureHandlerProps","nativeViewHandlerName","NativeViewGestureHandler","name","allowedProps","config"],"mappings":";;;;;;;AAAA;;AACA;;;;AAKO,MAAMA,6BAA6B,GAAG,CAC3C,uBAD2C,EAE3C,sBAF2C,CAAtC;;AAgCA,MAAMC,eAAe,GAAG,CAC7B,GAAGC,6CAD0B,EAE7B,GAAGF,6BAF0B,CAAxB;;AAKA,MAAMG,qBAAqB,GAAG,0BAA9B;;AAGP;AACO,MAAMC,wBAAwB,GAAG,4BAGtC;AACAC,EAAAA,IAAI,EAAEF,qBADN;AAEAG,EAAAA,YAAY,EAAEL,eAFd;AAGAM,EAAAA,MAAM,EAAE;AAHR,CAHsC,CAAjC","sourcesContent":["import createHandler from './createHandler';\r\nimport {\r\n BaseGestureHandlerProps,\r\n baseGestureHandlerProps,\r\n} from './gestureHandlerCommon';\r\n\r\nexport const nativeViewGestureHandlerProps = [\r\n 'shouldActivateOnStart',\r\n 'disallowInterruption',\r\n] as const;\r\n\r\nexport interface NativeViewGestureConfig {\r\n /**\r\n * Android only.\r\n *\r\n * Determines whether the handler should check for an existing touch event on\r\n * instantiation.\r\n */\r\n shouldActivateOnStart?: boolean;\r\n\r\n /**\r\n * When `true`, cancels all other gesture handlers when this\r\n * `NativeViewGestureHandler` receives an `ACTIVE` state event.\r\n */\r\n disallowInterruption?: boolean;\r\n}\r\n\r\nexport interface NativeViewGestureHandlerProps\r\n extends BaseGestureHandlerProps<NativeViewGestureHandlerPayload>,\r\n NativeViewGestureConfig {}\r\n\r\nexport type NativeViewGestureHandlerPayload = {\r\n /**\r\n * True if gesture was performed inside of containing view, false otherwise.\r\n */\r\n pointerInside: boolean;\r\n};\r\n\r\nexport const nativeViewProps = [\r\n ...baseGestureHandlerProps,\r\n ...nativeViewGestureHandlerProps,\r\n] as const;\r\n\r\nexport const nativeViewHandlerName = 'NativeViewGestureHandler';\r\n\r\nexport type NativeViewGestureHandler = typeof NativeViewGestureHandler;\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\r\nexport const NativeViewGestureHandler = createHandler<\r\n NativeViewGestureHandlerProps,\r\n NativeViewGestureHandlerPayload\r\n>({\r\n name: nativeViewHandlerName,\r\n allowedProps: nativeViewProps,\r\n config: {},\r\n});\r\n"]}
|
@@ -0,0 +1,123 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.managePanProps = managePanProps;
|
7
|
+
exports.PanGestureHandler = exports.panHandlerName = exports.panGestureHandlerCustomNativeProps = exports.panGestureHandlerProps = void 0;
|
8
|
+
|
9
|
+
var _createHandler = _interopRequireDefault(require("./createHandler"));
|
10
|
+
|
11
|
+
var _gestureHandlerCommon = require("./gestureHandlerCommon");
|
12
|
+
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
14
|
+
|
15
|
+
const panGestureHandlerProps = ['activeOffsetY', 'activeOffsetX', 'failOffsetY', 'failOffsetX', 'minDist', 'minVelocity', 'minVelocityX', 'minVelocityY', 'minPointers', 'maxPointers', 'avgTouches', 'enableTrackpadTwoFingerGesture', 'activateAfterLongPress'];
|
16
|
+
exports.panGestureHandlerProps = panGestureHandlerProps;
|
17
|
+
const panGestureHandlerCustomNativeProps = ['activeOffsetYStart', 'activeOffsetYEnd', 'activeOffsetXStart', 'activeOffsetXEnd', 'failOffsetYStart', 'failOffsetYEnd', 'failOffsetXStart', 'failOffsetXEnd'];
|
18
|
+
exports.panGestureHandlerCustomNativeProps = panGestureHandlerCustomNativeProps;
|
19
|
+
const panHandlerName = 'PanGestureHandler';
|
20
|
+
exports.panHandlerName = panHandlerName;
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file
|
22
|
+
const PanGestureHandler = (0, _createHandler.default)({
|
23
|
+
name: panHandlerName,
|
24
|
+
allowedProps: [..._gestureHandlerCommon.baseGestureHandlerProps, ...panGestureHandlerProps],
|
25
|
+
config: {},
|
26
|
+
transformProps: managePanProps,
|
27
|
+
customNativeProps: panGestureHandlerCustomNativeProps
|
28
|
+
});
|
29
|
+
exports.PanGestureHandler = PanGestureHandler;
|
30
|
+
|
31
|
+
function validatePanGestureHandlerProps(props) {
|
32
|
+
if (Array.isArray(props.activeOffsetX) && (props.activeOffsetX[0] > 0 || props.activeOffsetX[1] < 0)) {
|
33
|
+
throw new Error(`First element of activeOffsetX should be negative, a the second one should be positive`);
|
34
|
+
}
|
35
|
+
|
36
|
+
if (Array.isArray(props.activeOffsetY) && (props.activeOffsetY[0] > 0 || props.activeOffsetY[1] < 0)) {
|
37
|
+
throw new Error(`First element of activeOffsetY should be negative, a the second one should be positive`);
|
38
|
+
}
|
39
|
+
|
40
|
+
if (Array.isArray(props.failOffsetX) && (props.failOffsetX[0] > 0 || props.failOffsetX[1] < 0)) {
|
41
|
+
throw new Error(`First element of failOffsetX should be negative, a the second one should be positive`);
|
42
|
+
}
|
43
|
+
|
44
|
+
if (Array.isArray(props.failOffsetY) && (props.failOffsetY[0] > 0 || props.failOffsetY[1] < 0)) {
|
45
|
+
throw new Error(`First element of failOffsetY should be negative, a the second one should be positive`);
|
46
|
+
}
|
47
|
+
|
48
|
+
if (props.minDist && (props.failOffsetX || props.failOffsetY)) {
|
49
|
+
throw new Error(`It is not supported to use minDist with failOffsetX or failOffsetY, use activeOffsetX and activeOffsetY instead`);
|
50
|
+
}
|
51
|
+
|
52
|
+
if (props.minDist && (props.activeOffsetX || props.activeOffsetY)) {
|
53
|
+
throw new Error(`It is not supported to use minDist with activeOffsetX or activeOffsetY`);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
function transformPanGestureHandlerProps(props) {
|
58
|
+
const res = { ...props
|
59
|
+
};
|
60
|
+
|
61
|
+
if (props.activeOffsetX !== undefined) {
|
62
|
+
delete res.activeOffsetX;
|
63
|
+
|
64
|
+
if (Array.isArray(props.activeOffsetX)) {
|
65
|
+
res.activeOffsetXStart = props.activeOffsetX[0];
|
66
|
+
res.activeOffsetXEnd = props.activeOffsetX[1];
|
67
|
+
} else if (props.activeOffsetX < 0) {
|
68
|
+
res.activeOffsetXStart = props.activeOffsetX;
|
69
|
+
} else {
|
70
|
+
res.activeOffsetXEnd = props.activeOffsetX;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
if (props.activeOffsetY !== undefined) {
|
75
|
+
delete res.activeOffsetY;
|
76
|
+
|
77
|
+
if (Array.isArray(props.activeOffsetY)) {
|
78
|
+
res.activeOffsetYStart = props.activeOffsetY[0];
|
79
|
+
res.activeOffsetYEnd = props.activeOffsetY[1];
|
80
|
+
} else if (props.activeOffsetY < 0) {
|
81
|
+
res.activeOffsetYStart = props.activeOffsetY;
|
82
|
+
} else {
|
83
|
+
res.activeOffsetYEnd = props.activeOffsetY;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
if (props.failOffsetX !== undefined) {
|
88
|
+
delete res.failOffsetX;
|
89
|
+
|
90
|
+
if (Array.isArray(props.failOffsetX)) {
|
91
|
+
res.failOffsetXStart = props.failOffsetX[0];
|
92
|
+
res.failOffsetXEnd = props.failOffsetX[1];
|
93
|
+
} else if (props.failOffsetX < 0) {
|
94
|
+
res.failOffsetXStart = props.failOffsetX;
|
95
|
+
} else {
|
96
|
+
res.failOffsetXEnd = props.failOffsetX;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
if (props.failOffsetY !== undefined) {
|
101
|
+
delete res.failOffsetY;
|
102
|
+
|
103
|
+
if (Array.isArray(props.failOffsetY)) {
|
104
|
+
res.failOffsetYStart = props.failOffsetY[0];
|
105
|
+
res.failOffsetYEnd = props.failOffsetY[1];
|
106
|
+
} else if (props.failOffsetY < 0) {
|
107
|
+
res.failOffsetYStart = props.failOffsetY;
|
108
|
+
} else {
|
109
|
+
res.failOffsetYEnd = props.failOffsetY;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
return res;
|
114
|
+
}
|
115
|
+
|
116
|
+
function managePanProps(props) {
|
117
|
+
if (__DEV__) {
|
118
|
+
validatePanGestureHandlerProps(props);
|
119
|
+
}
|
120
|
+
|
121
|
+
return transformPanGestureHandlerProps(props);
|
122
|
+
}
|
123
|
+
//# sourceMappingURL=PanGestureHandler.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["PanGestureHandler.ts"],"names":["panGestureHandlerProps","panGestureHandlerCustomNativeProps","panHandlerName","PanGestureHandler","name","allowedProps","baseGestureHandlerProps","config","transformProps","managePanProps","customNativeProps","validatePanGestureHandlerProps","props","Array","isArray","activeOffsetX","Error","activeOffsetY","failOffsetX","failOffsetY","minDist","transformPanGestureHandlerProps","res","undefined","activeOffsetXStart","activeOffsetXEnd","activeOffsetYStart","activeOffsetYEnd","failOffsetXStart","failOffsetXEnd","failOffsetYStart","failOffsetYEnd","__DEV__"],"mappings":";;;;;;;;AAAA;;AACA;;;;AAKO,MAAMA,sBAAsB,GAAG,CACpC,eADoC,EAEpC,eAFoC,EAGpC,aAHoC,EAIpC,aAJoC,EAKpC,SALoC,EAMpC,aANoC,EAOpC,cAPoC,EAQpC,cARoC,EASpC,aAToC,EAUpC,aAVoC,EAWpC,YAXoC,EAYpC,gCAZoC,EAapC,wBAboC,CAA/B;;AAgBA,MAAMC,kCAAkC,GAAG,CAChD,oBADgD,EAEhD,kBAFgD,EAGhD,oBAHgD,EAIhD,kBAJgD,EAKhD,kBALgD,EAMhD,gBANgD,EAOhD,kBAPgD,EAQhD,gBARgD,CAA3C;;AAmKA,MAAMC,cAAc,GAAG,mBAAvB;;AAGP;AACO,MAAMC,iBAAiB,GAAG,4BAG/B;AACAC,EAAAA,IAAI,EAAEF,cADN;AAEAG,EAAAA,YAAY,EAAE,CACZ,GAAGC,6CADS,EAEZ,GAAGN,sBAFS,CAFd;AAMAO,EAAAA,MAAM,EAAE,EANR;AAOAC,EAAAA,cAAc,EAAEC,cAPhB;AAQAC,EAAAA,iBAAiB,EAAET;AARnB,CAH+B,CAA1B;;;AAcP,SAASU,8BAAT,CAAwCC,KAAxC,EAAuE;AACrE,MACEC,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACG,aAApB,MACCH,KAAK,CAACG,aAAN,CAAoB,CAApB,IAAyB,CAAzB,IAA8BH,KAAK,CAACG,aAAN,CAAoB,CAApB,IAAyB,CADxD,CADF,EAGE;AACA,UAAM,IAAIC,KAAJ,CACH,wFADG,CAAN;AAGD;;AAED,MACEH,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACK,aAApB,MACCL,KAAK,CAACK,aAAN,CAAoB,CAApB,IAAyB,CAAzB,IAA8BL,KAAK,CAACK,aAAN,CAAoB,CAApB,IAAyB,CADxD,CADF,EAGE;AACA,UAAM,IAAID,KAAJ,CACH,wFADG,CAAN;AAGD;;AAED,MACEH,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACM,WAApB,MACCN,KAAK,CAACM,WAAN,CAAkB,CAAlB,IAAuB,CAAvB,IAA4BN,KAAK,CAACM,WAAN,CAAkB,CAAlB,IAAuB,CADpD,CADF,EAGE;AACA,UAAM,IAAIF,KAAJ,CACH,sFADG,CAAN;AAGD;;AAED,MACEH,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACO,WAApB,MACCP,KAAK,CAACO,WAAN,CAAkB,CAAlB,IAAuB,CAAvB,IAA4BP,KAAK,CAACO,WAAN,CAAkB,CAAlB,IAAuB,CADpD,CADF,EAGE;AACA,UAAM,IAAIH,KAAJ,CACH,sFADG,CAAN;AAGD;;AAED,MAAIJ,KAAK,CAACQ,OAAN,KAAkBR,KAAK,CAACM,WAAN,IAAqBN,KAAK,CAACO,WAA7C,CAAJ,EAA+D;AAC7D,UAAM,IAAIH,KAAJ,CACH,iHADG,CAAN;AAGD;;AAED,MAAIJ,KAAK,CAACQ,OAAN,KAAkBR,KAAK,CAACG,aAAN,IAAuBH,KAAK,CAACK,aAA/C,CAAJ,EAAmE;AACjE,UAAM,IAAID,KAAJ,CACH,wEADG,CAAN;AAGD;AACF;;AAED,SAASK,+BAAT,CAAyCT,KAAzC,EAAwE;AAatE,QAAMU,GAAmC,GAAG,EAAE,GAAGV;AAAL,GAA5C;;AAEA,MAAIA,KAAK,CAACG,aAAN,KAAwBQ,SAA5B,EAAuC;AACrC,WAAOD,GAAG,CAACP,aAAX;;AACA,QAAIF,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACG,aAApB,CAAJ,EAAwC;AACtCO,MAAAA,GAAG,CAACE,kBAAJ,GAAyBZ,KAAK,CAACG,aAAN,CAAoB,CAApB,CAAzB;AACAO,MAAAA,GAAG,CAACG,gBAAJ,GAAuBb,KAAK,CAACG,aAAN,CAAoB,CAApB,CAAvB;AACD,KAHD,MAGO,IAAIH,KAAK,CAACG,aAAN,GAAsB,CAA1B,EAA6B;AAClCO,MAAAA,GAAG,CAACE,kBAAJ,GAAyBZ,KAAK,CAACG,aAA/B;AACD,KAFM,MAEA;AACLO,MAAAA,GAAG,CAACG,gBAAJ,GAAuBb,KAAK,CAACG,aAA7B;AACD;AACF;;AAED,MAAIH,KAAK,CAACK,aAAN,KAAwBM,SAA5B,EAAuC;AACrC,WAAOD,GAAG,CAACL,aAAX;;AACA,QAAIJ,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACK,aAApB,CAAJ,EAAwC;AACtCK,MAAAA,GAAG,CAACI,kBAAJ,GAAyBd,KAAK,CAACK,aAAN,CAAoB,CAApB,CAAzB;AACAK,MAAAA,GAAG,CAACK,gBAAJ,GAAuBf,KAAK,CAACK,aAAN,CAAoB,CAApB,CAAvB;AACD,KAHD,MAGO,IAAIL,KAAK,CAACK,aAAN,GAAsB,CAA1B,EAA6B;AAClCK,MAAAA,GAAG,CAACI,kBAAJ,GAAyBd,KAAK,CAACK,aAA/B;AACD,KAFM,MAEA;AACLK,MAAAA,GAAG,CAACK,gBAAJ,GAAuBf,KAAK,CAACK,aAA7B;AACD;AACF;;AAED,MAAIL,KAAK,CAACM,WAAN,KAAsBK,SAA1B,EAAqC;AACnC,WAAOD,GAAG,CAACJ,WAAX;;AACA,QAAIL,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACM,WAApB,CAAJ,EAAsC;AACpCI,MAAAA,GAAG,CAACM,gBAAJ,GAAuBhB,KAAK,CAACM,WAAN,CAAkB,CAAlB,CAAvB;AACAI,MAAAA,GAAG,CAACO,cAAJ,GAAqBjB,KAAK,CAACM,WAAN,CAAkB,CAAlB,CAArB;AACD,KAHD,MAGO,IAAIN,KAAK,CAACM,WAAN,GAAoB,CAAxB,EAA2B;AAChCI,MAAAA,GAAG,CAACM,gBAAJ,GAAuBhB,KAAK,CAACM,WAA7B;AACD,KAFM,MAEA;AACLI,MAAAA,GAAG,CAACO,cAAJ,GAAqBjB,KAAK,CAACM,WAA3B;AACD;AACF;;AAED,MAAIN,KAAK,CAACO,WAAN,KAAsBI,SAA1B,EAAqC;AACnC,WAAOD,GAAG,CAACH,WAAX;;AACA,QAAIN,KAAK,CAACC,OAAN,CAAcF,KAAK,CAACO,WAApB,CAAJ,EAAsC;AACpCG,MAAAA,GAAG,CAACQ,gBAAJ,GAAuBlB,KAAK,CAACO,WAAN,CAAkB,CAAlB,CAAvB;AACAG,MAAAA,GAAG,CAACS,cAAJ,GAAqBnB,KAAK,CAACO,WAAN,CAAkB,CAAlB,CAArB;AACD,KAHD,MAGO,IAAIP,KAAK,CAACO,WAAN,GAAoB,CAAxB,EAA2B;AAChCG,MAAAA,GAAG,CAACQ,gBAAJ,GAAuBlB,KAAK,CAACO,WAA7B;AACD,KAFM,MAEA;AACLG,MAAAA,GAAG,CAACS,cAAJ,GAAqBnB,KAAK,CAACO,WAA3B;AACD;AACF;;AAED,SAAOG,GAAP;AACD;;AAEM,SAASb,cAAT,CAAwBG,KAAxB,EAAuD;AAC5D,MAAIoB,OAAJ,EAAa;AACXrB,IAAAA,8BAA8B,CAACC,KAAD,CAA9B;AACD;;AACD,SAAOS,+BAA+B,CAACT,KAAD,CAAtC;AACD","sourcesContent":["import createHandler from './createHandler';\r\nimport {\r\n BaseGestureHandlerProps,\r\n baseGestureHandlerProps,\r\n} from './gestureHandlerCommon';\r\n\r\nexport const panGestureHandlerProps = [\r\n 'activeOffsetY',\r\n 'activeOffsetX',\r\n 'failOffsetY',\r\n 'failOffsetX',\r\n 'minDist',\r\n 'minVelocity',\r\n 'minVelocityX',\r\n 'minVelocityY',\r\n 'minPointers',\r\n 'maxPointers',\r\n 'avgTouches',\r\n 'enableTrackpadTwoFingerGesture',\r\n 'activateAfterLongPress',\r\n] as const;\r\n\r\nexport const panGestureHandlerCustomNativeProps = [\r\n 'activeOffsetYStart',\r\n 'activeOffsetYEnd',\r\n 'activeOffsetXStart',\r\n 'activeOffsetXEnd',\r\n 'failOffsetYStart',\r\n 'failOffsetYEnd',\r\n 'failOffsetXStart',\r\n 'failOffsetXEnd',\r\n] as const;\r\n\r\nexport type PanGestureHandlerEventPayload = {\r\n /**\r\n * X coordinate of the current position of the pointer (finger or a leading\r\n * pointer when there are multiple fingers placed) relative to the view\r\n * attached to the handler. Expressed in point units.\r\n */\r\n x: number;\r\n\r\n /**\r\n * Y coordinate of the current position of the pointer (finger or a leading\r\n * pointer when there are multiple fingers placed) relative to the view\r\n * attached to the handler. Expressed in point units.\r\n */\r\n y: number;\r\n\r\n /**\r\n * X coordinate of the current position of the pointer (finger or a leading\r\n * pointer when there are multiple fingers placed) relative to the window.\r\n * The value is expressed in point units. It is recommended to use it instead\r\n * of `x` in cases when the original view can be transformed as an effect of\r\n * the gesture.\r\n */\r\n absoluteX: number;\r\n\r\n /**\r\n * Y coordinate of the current position of the pointer (finger or a leading\r\n * pointer when there are multiple fingers placed) relative to the window.\r\n * The value is expressed in point units. It is recommended to use it instead\r\n * of `y` in cases when the original view can be transformed as an\r\n * effect of the gesture.\r\n */\r\n absoluteY: number;\r\n\r\n /**\r\n * Translation of the pan gesture along X axis accumulated over the time of\r\n * the gesture. The value is expressed in the point units.\r\n */\r\n translationX: number;\r\n\r\n /**\r\n * Translation of the pan gesture along Y axis accumulated over the time of\r\n * the gesture. The value is expressed in the point units.\r\n */\r\n translationY: number;\r\n\r\n /**\r\n * Velocity of the pan gesture along the X axis in the current moment. The\r\n * value is expressed in point units per second.\r\n */\r\n velocityX: number;\r\n\r\n /**\r\n * Velocity of the pan gesture along the Y axis in the current moment. The\r\n * value is expressed in point units per second.\r\n */\r\n velocityY: number;\r\n};\r\n\r\ninterface CommonPanProperties {\r\n /**\r\n * Minimum distance the finger (or multiple finger) need to travel before the\r\n * handler activates. Expressed in points.\r\n */\r\n minDist?: number;\r\n\r\n /**\r\n * Android only.\r\n */\r\n avgTouches?: boolean;\r\n\r\n /**\r\n * Enables two-finger gestures on supported devices, for example iPads with\r\n * trackpads. If not enabled the gesture will require click + drag, with\r\n * enableTrackpadTwoFingerGesture swiping with two fingers will also trigger\r\n * the gesture.\r\n */\r\n enableTrackpadTwoFingerGesture?: boolean;\r\n\r\n /**\r\n * A number of fingers that is required to be placed before handler can\r\n * activate. Should be a higher or equal to 0 integer.\r\n */\r\n minPointers?: number;\r\n\r\n /**\r\n * When the given number of fingers is placed on the screen and handler hasn't\r\n * yet activated it will fail recognizing the gesture. Should be a higher or\r\n * equal to 0 integer.\r\n */\r\n maxPointers?: number;\r\n\r\n minVelocity?: number;\r\n minVelocityX?: number;\r\n minVelocityY?: number;\r\n activateAfterLongPress?: number;\r\n}\r\n\r\nexport interface PanGestureConfig extends CommonPanProperties {\r\n activeOffsetYStart?: number;\r\n activeOffsetYEnd?: number;\r\n activeOffsetXStart?: number;\r\n activeOffsetXEnd?: number;\r\n failOffsetYStart?: number;\r\n failOffsetYEnd?: number;\r\n failOffsetXStart?: number;\r\n failOffsetXEnd?: number;\r\n}\r\n\r\nexport interface PanGestureHandlerProps\r\n extends BaseGestureHandlerProps<PanGestureHandlerEventPayload>,\r\n CommonPanProperties {\r\n /**\r\n * Range along X axis (in points) where fingers travels without activation of\r\n * handler. Moving outside of this range implies activation of handler. Range\r\n * can be given as an array or a single number. If range is set as an array,\r\n * first value must be lower or equal to 0, a the second one higher or equal\r\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\r\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\r\n */\r\n activeOffsetY?: number | number[];\r\n\r\n /**\r\n * Range along X axis (in points) where fingers travels without activation of\r\n * handler. Moving outside of this range implies activation of handler. Range\r\n * can be given as an array or a single number. If range is set as an array,\r\n * first value must be lower or equal to 0, a the second one higher or equal\r\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\r\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\r\n */\r\n activeOffsetX?: number | number[];\r\n\r\n /**\r\n * When the finger moves outside this range (in points) along Y axis and\r\n * handler hasn't yet activated it will fail recognizing the gesture. Range\r\n * can be given as an array or a single number. If range is set as an array,\r\n * first value must be lower or equal to 0, a the second one higher or equal\r\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\r\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\r\n */\r\n failOffsetY?: number | number[];\r\n\r\n /**\r\n * When the finger moves outside this range (in points) along X axis and\r\n * handler hasn't yet activated it will fail recognizing the gesture. Range\r\n * can be given as an array or a single number. If range is set as an array,\r\n * first value must be lower or equal to 0, a the second one higher or equal\r\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\r\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\r\n */\r\n failOffsetX?: number | number[];\r\n}\r\n\r\nexport const panHandlerName = 'PanGestureHandler';\r\n\r\nexport type PanGestureHandler = typeof PanGestureHandler;\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\r\nexport const PanGestureHandler = createHandler<\r\n PanGestureHandlerProps,\r\n PanGestureHandlerEventPayload\r\n>({\r\n name: panHandlerName,\r\n allowedProps: [\r\n ...baseGestureHandlerProps,\r\n ...panGestureHandlerProps,\r\n ] as const,\r\n config: {},\r\n transformProps: managePanProps,\r\n customNativeProps: panGestureHandlerCustomNativeProps,\r\n});\r\n\r\nfunction validatePanGestureHandlerProps(props: PanGestureHandlerProps) {\r\n if (\r\n Array.isArray(props.activeOffsetX) &&\r\n (props.activeOffsetX[0] > 0 || props.activeOffsetX[1] < 0)\r\n ) {\r\n throw new Error(\r\n `First element of activeOffsetX should be negative, a the second one should be positive`\r\n );\r\n }\r\n\r\n if (\r\n Array.isArray(props.activeOffsetY) &&\r\n (props.activeOffsetY[0] > 0 || props.activeOffsetY[1] < 0)\r\n ) {\r\n throw new Error(\r\n `First element of activeOffsetY should be negative, a the second one should be positive`\r\n );\r\n }\r\n\r\n if (\r\n Array.isArray(props.failOffsetX) &&\r\n (props.failOffsetX[0] > 0 || props.failOffsetX[1] < 0)\r\n ) {\r\n throw new Error(\r\n `First element of failOffsetX should be negative, a the second one should be positive`\r\n );\r\n }\r\n\r\n if (\r\n Array.isArray(props.failOffsetY) &&\r\n (props.failOffsetY[0] > 0 || props.failOffsetY[1] < 0)\r\n ) {\r\n throw new Error(\r\n `First element of failOffsetY should be negative, a the second one should be positive`\r\n );\r\n }\r\n\r\n if (props.minDist && (props.failOffsetX || props.failOffsetY)) {\r\n throw new Error(\r\n `It is not supported to use minDist with failOffsetX or failOffsetY, use activeOffsetX and activeOffsetY instead`\r\n );\r\n }\r\n\r\n if (props.minDist && (props.activeOffsetX || props.activeOffsetY)) {\r\n throw new Error(\r\n `It is not supported to use minDist with activeOffsetX or activeOffsetY`\r\n );\r\n }\r\n}\r\n\r\nfunction transformPanGestureHandlerProps(props: PanGestureHandlerProps) {\r\n type InternalPanGHKeys =\r\n | 'activeOffsetXStart'\r\n | 'activeOffsetXEnd'\r\n | 'failOffsetXStart'\r\n | 'failOffsetXEnd'\r\n | 'activeOffsetYStart'\r\n | 'activeOffsetYEnd'\r\n | 'failOffsetYStart'\r\n | 'failOffsetYEnd';\r\n type PanGestureHandlerInternalProps = PanGestureHandlerProps &\r\n Partial<Record<InternalPanGHKeys, number>>;\r\n\r\n const res: PanGestureHandlerInternalProps = { ...props };\r\n\r\n if (props.activeOffsetX !== undefined) {\r\n delete res.activeOffsetX;\r\n if (Array.isArray(props.activeOffsetX)) {\r\n res.activeOffsetXStart = props.activeOffsetX[0];\r\n res.activeOffsetXEnd = props.activeOffsetX[1];\r\n } else if (props.activeOffsetX < 0) {\r\n res.activeOffsetXStart = props.activeOffsetX;\r\n } else {\r\n res.activeOffsetXEnd = props.activeOffsetX;\r\n }\r\n }\r\n\r\n if (props.activeOffsetY !== undefined) {\r\n delete res.activeOffsetY;\r\n if (Array.isArray(props.activeOffsetY)) {\r\n res.activeOffsetYStart = props.activeOffsetY[0];\r\n res.activeOffsetYEnd = props.activeOffsetY[1];\r\n } else if (props.activeOffsetY < 0) {\r\n res.activeOffsetYStart = props.activeOffsetY;\r\n } else {\r\n res.activeOffsetYEnd = props.activeOffsetY;\r\n }\r\n }\r\n\r\n if (props.failOffsetX !== undefined) {\r\n delete res.failOffsetX;\r\n if (Array.isArray(props.failOffsetX)) {\r\n res.failOffsetXStart = props.failOffsetX[0];\r\n res.failOffsetXEnd = props.failOffsetX[1];\r\n } else if (props.failOffsetX < 0) {\r\n res.failOffsetXStart = props.failOffsetX;\r\n } else {\r\n res.failOffsetXEnd = props.failOffsetX;\r\n }\r\n }\r\n\r\n if (props.failOffsetY !== undefined) {\r\n delete res.failOffsetY;\r\n if (Array.isArray(props.failOffsetY)) {\r\n res.failOffsetYStart = props.failOffsetY[0];\r\n res.failOffsetYEnd = props.failOffsetY[1];\r\n } else if (props.failOffsetY < 0) {\r\n res.failOffsetYStart = props.failOffsetY;\r\n } else {\r\n res.failOffsetYEnd = props.failOffsetY;\r\n }\r\n }\r\n\r\n return res;\r\n}\r\n\r\nexport function managePanProps(props: PanGestureHandlerProps) {\r\n if (__DEV__) {\r\n validatePanGestureHandlerProps(props);\r\n }\r\n return transformPanGestureHandlerProps(props);\r\n}\r\n"]}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.PinchGestureHandler = exports.pinchHandlerName = void 0;
|
7
|
+
|
8
|
+
var _createHandler = _interopRequireDefault(require("./createHandler"));
|
9
|
+
|
10
|
+
var _gestureHandlerCommon = require("./gestureHandlerCommon");
|
11
|
+
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
+
|
14
|
+
const pinchHandlerName = 'PinchGestureHandler';
|
15
|
+
exports.pinchHandlerName = pinchHandlerName;
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file
|
17
|
+
const PinchGestureHandler = (0, _createHandler.default)({
|
18
|
+
name: pinchHandlerName,
|
19
|
+
allowedProps: _gestureHandlerCommon.baseGestureHandlerProps,
|
20
|
+
config: {}
|
21
|
+
});
|
22
|
+
exports.PinchGestureHandler = PinchGestureHandler;
|
23
|
+
//# sourceMappingURL=PinchGestureHandler.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["PinchGestureHandler.ts"],"names":["pinchHandlerName","PinchGestureHandler","name","allowedProps","baseGestureHandlerProps","config"],"mappings":";;;;;;;AAAA;;AACA;;;;AAmCO,MAAMA,gBAAgB,GAAG,qBAAzB;;AAGP;AACO,MAAMC,mBAAmB,GAAG,4BAGjC;AACAC,EAAAA,IAAI,EAAEF,gBADN;AAEAG,EAAAA,YAAY,EAAEC,6CAFd;AAGAC,EAAAA,MAAM,EAAE;AAHR,CAHiC,CAA5B","sourcesContent":["import createHandler from './createHandler';\r\nimport {\r\n BaseGestureHandlerProps,\r\n baseGestureHandlerProps,\r\n} from './gestureHandlerCommon';\r\n\r\nexport type PinchGestureHandlerEventPayload = {\r\n /**\r\n * The scale factor relative to the points of the two touches in screen\r\n * coordinates.\r\n */\r\n scale: number;\r\n\r\n /**\r\n * Position expressed in points along X axis of center anchor point of\r\n * gesture.\r\n */\r\n focalX: number;\r\n\r\n /**\r\n * Position expressed in points along Y axis of center anchor point of\r\n * gesture.\r\n */\r\n focalY: number;\r\n\r\n /**\r\n *\r\n * Velocity of the pan gesture the current moment. The value is expressed in\r\n * point units per second.\r\n */\r\n velocity: number;\r\n};\r\n\r\nexport interface PinchGestureHandlerProps\r\n extends BaseGestureHandlerProps<PinchGestureHandlerEventPayload> {}\r\n\r\nexport const pinchHandlerName = 'PinchGestureHandler';\r\n\r\nexport type PinchGestureHandler = typeof PinchGestureHandler;\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\r\nexport const PinchGestureHandler = createHandler<\r\n PinchGestureHandlerProps,\r\n PinchGestureHandlerEventPayload\r\n>({\r\n name: pinchHandlerName,\r\n allowedProps: baseGestureHandlerProps,\r\n config: {},\r\n});\r\n"]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "PressabilityDebugView", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function () {
|
9
|
+
return _PressabilityDebug.PressabilityDebugView;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
|
13
|
+
var _PressabilityDebug = require("react-native/Libraries/Pressability/PressabilityDebug");
|
14
|
+
//# sourceMappingURL=PressabilityDebugView.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["PressabilityDebugView.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA","sourcesContent":["// @ts-ignore it's not exported so we need to import it from path\r\nexport { PressabilityDebugView } from 'react-native/Libraries/Pressability/PressabilityDebug';\r\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.PressabilityDebugView = PressabilityDebugView;
|
7
|
+
|
8
|
+
// PressabilityDebugView is not implemented in react-native-web
|
9
|
+
function PressabilityDebugView() {
|
10
|
+
return null;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=PressabilityDebugView.web.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["PressabilityDebugView.web.tsx"],"names":["PressabilityDebugView"],"mappings":";;;;;;;AAAA;AACO,SAASA,qBAAT,GAAiC;AACtC,SAAO,IAAP;AACD","sourcesContent":["// PressabilityDebugView is not implemented in react-native-web\r\nexport function PressabilityDebugView() {\r\n return null;\r\n}\r\n"]}
|