@react-native-oh-tpl/react-native-gesture-handler 2.12.1-0.0.1 → 2.12.6-2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -62
- package/{LICENSE → harmony/gesture_handler/LICENSE} +21 -21
- package/harmony/gesture_handler/OAT.xml +44 -0
- package/harmony/gesture_handler/README.OpenSource +11 -0
- package/harmony/gesture_handler/README.md +1 -0
- package/harmony/gesture_handler/build-profile.json5 +8 -0
- package/harmony/gesture_handler/hvigorfile.ts +2 -0
- package/harmony/gesture_handler/index.ets +3 -0
- package/harmony/gesture_handler/oh-package.json5 +13 -0
- package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +8 -0
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +34 -0
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +15 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +60 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +17 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +12 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +60 -0
- package/{src/web/tools → harmony/gesture_handler/src/main/ets}/CircularBuffer.ts +42 -42
- package/harmony/gesture_handler/src/main/ets/Event.ts +68 -0
- package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +38 -0
- package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +663 -0
- package/harmony/gesture_handler/src/main/ets/GestureHandlerArkUIAdapter.ets +202 -0
- package/harmony/gesture_handler/src/main/ets/GestureHandlerFactory.ts +45 -0
- package/harmony/gesture_handler/src/main/ets/GestureHandlerOrchestrator.ts +280 -0
- package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +22 -0
- package/harmony/gesture_handler/src/main/ets/GestureHandlerRegistry.ts +28 -0
- package/{src/web/tools → harmony/gesture_handler/src/main/ets}/InteractionManager.ts +109 -130
- package/{src/web/tools → harmony/gesture_handler/src/main/ets}/LeastSquareSolver.ts +182 -182
- package/harmony/gesture_handler/src/main/ets/NativeViewGestureHandler.ts +115 -0
- package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +34 -0
- package/harmony/gesture_handler/src/main/ets/PanGestureHandler.ts +328 -0
- package/{src/web/tools → harmony/gesture_handler/src/main/ets}/PointerTracker.ts +239 -240
- package/harmony/gesture_handler/src/main/ets/RNGHError.ts +5 -0
- package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +29 -0
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandler.ets +58 -0
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +37 -0
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +125 -0
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +57 -0
- package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +11 -0
- package/harmony/gesture_handler/src/main/ets/State.ts +47 -0
- package/harmony/gesture_handler/src/main/ets/TapGestureHandler.ts +206 -0
- package/harmony/gesture_handler/src/main/ets/Vector2D.ts +36 -0
- package/{src/web/tools → harmony/gesture_handler/src/main/ets}/VelocityTracker.ts +98 -98
- package/harmony/gesture_handler/src/main/ets/View.ts +71 -0
- package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +43 -0
- package/harmony/gesture_handler/src/main/ets/pages/Index.ets +17 -0
- package/harmony/gesture_handler/src/main/ets/webviewability/WebviewAbility.ts +41 -0
- package/harmony/gesture_handler/src/main/module.json5 +7 -0
- package/harmony/gesture_handler/src/main/resources/base/element/color.json +8 -0
- package/harmony/gesture_handler/src/main/resources/base/element/string.json +16 -0
- package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
- package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +5 -0
- package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +16 -0
- package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +16 -0
- package/harmony/gesture_handler/ts.ts +1 -0
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js +2 -22
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/components/GestureButtons.js +88 -142
- package/lib/commonjs/components/GestureButtons.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerButton.js +2 -7
- package/lib/commonjs/components/GestureHandlerButton.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +13 -13
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
- package/lib/commonjs/components/RNGestureHandlerButton.js +23 -0
- package/lib/commonjs/components/RNGestureHandlerButton.js.map +1 -0
- package/lib/commonjs/components/touchables/GenericTouchable.js +103 -145
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +1 -1
- package/lib/commonjs/components/touchables/TouchableOpacity.js +34 -53
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +1 -1
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +4 -12
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +1 -1
- package/lib/commonjs/components/touchables/index.js +2 -21
- package/lib/commonjs/components/touchables/index.js.map +1 -1
- package/lib/commonjs/handlers/NativeViewGestureHandler.js +6 -14
- package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +1 -1
- package/lib/commonjs/handlers/PanGestureHandler.js +12 -32
- package/lib/commonjs/handlers/PanGestureHandler.js.map +1 -1
- package/lib/commonjs/handlers/TapGestureHandler.js +6 -11
- package/lib/commonjs/handlers/TapGestureHandler.js.map +1 -1
- package/lib/commonjs/handlers/createHandler.js +141 -223
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/handlers/createNativeWrapper.js +22 -32
- package/lib/commonjs/handlers/createNativeWrapper.js.map +1 -1
- package/lib/commonjs/handlers/gestureHandlerCommon.js +6 -87
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +1 -1
- package/lib/commonjs/handlers/gestures/GestureDetector.js +111 -226
- package/lib/commonjs/handlers/gestures/GestureDetector.js.map +1 -1
- package/lib/commonjs/index.js +168 -211
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/init.js +7 -15
- package/lib/commonjs/init.js.map +1 -1
- package/lib/module/RNGestureHandlerModule.js +2 -18
- package/lib/module/RNGestureHandlerModule.js.map +1 -1
- package/lib/module/components/GestureButtons.js +83 -121
- package/lib/module/components/GestureButtons.js.map +1 -1
- package/lib/module/components/GestureHandlerButton.js +2 -2
- package/lib/module/components/GestureHandlerButton.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js +11 -3
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/components/RNGestureHandlerButton.js +17 -0
- package/lib/module/components/RNGestureHandlerButton.js.map +1 -0
- package/lib/module/components/touchables/GenericTouchable.js +98 -133
- package/lib/module/components/touchables/GenericTouchable.js.map +1 -1
- package/lib/module/components/touchables/TouchableOpacity.js +29 -43
- package/lib/module/components/touchables/TouchableOpacity.js.map +1 -1
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +1 -2
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +1 -1
- package/lib/module/components/touchables/index.js +5 -2
- package/lib/module/components/touchables/index.js.map +1 -1
- package/lib/module/handlers/NativeViewGestureHandler.js +1 -1
- package/lib/module/handlers/NativeViewGestureHandler.js.map +1 -1
- package/lib/module/handlers/PanGestureHandler.js +6 -21
- package/lib/module/handlers/PanGestureHandler.js.map +1 -1
- package/lib/module/handlers/TapGestureHandler.js +2 -1
- package/lib/module/handlers/TapGestureHandler.js.map +1 -1
- package/lib/module/handlers/createHandler.js +140 -196
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/handlers/createNativeWrapper.js +17 -22
- package/lib/module/handlers/createNativeWrapper.js.map +1 -1
- package/lib/module/handlers/gestureHandlerCommon.js +5 -71
- package/lib/module/handlers/gestureHandlerCommon.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector.js +99 -175
- package/lib/module/handlers/gestures/GestureDetector.js.map +1 -1
- package/lib/module/index.js +160 -18
- package/lib/module/index.js.map +1 -1
- package/lib/module/init.js +6 -5
- package/lib/module/init.js.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.d.ts +7 -13
- package/lib/typescript/RNGestureHandlerModule.d.ts.map +1 -0
- package/lib/typescript/components/GestureButtons.d.ts +122 -121
- package/lib/typescript/components/GestureButtons.d.ts.map +1 -0
- package/lib/typescript/components/GestureHandlerButton.d.ts +5 -4
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +1 -0
- package/lib/typescript/components/GestureHandlerRootView.d.ts +7 -6
- package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -0
- package/lib/typescript/components/RNGestureHandlerButton.d.ts +2 -0
- package/lib/typescript/components/RNGestureHandlerButton.d.ts.map +1 -0
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +68 -68
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +1 -0
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +26 -25
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +1 -0
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +8 -7
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +1 -0
- package/lib/typescript/components/touchables/index.d.ts +4 -7
- package/lib/typescript/components/touchables/index.d.ts.map +1 -0
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +29 -28
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +1 -0
- package/lib/typescript/handlers/PanGestureHandler.d.ts +140 -139
- package/lib/typescript/handlers/PanGestureHandler.d.ts.map +1 -0
- package/lib/typescript/handlers/TapGestureHandler.d.ts +58 -57
- package/lib/typescript/handlers/TapGestureHandler.d.ts.map +1 -0
- package/lib/typescript/handlers/createHandler.d.ts +12 -11
- package/lib/typescript/handlers/createHandler.d.ts.map +1 -0
- package/lib/typescript/handlers/createNativeWrapper.d.ts +4 -3
- package/lib/typescript/handlers/createNativeWrapper.d.ts.map +1 -0
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +2 -68
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +1 -0
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts +24 -19
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +9 -52
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/init.d.ts +3 -2
- package/lib/typescript/init.d.ts.map +1 -0
- package/package.json +70 -156
- package/src/RNGestureHandlerModule.ts +6 -50
- package/src/components/GestureButtons.tsx +334 -332
- package/src/components/GestureHandlerButton.tsx +5 -5
- package/src/components/GestureHandlerRootView.tsx +34 -23
- package/src/components/RNGestureHandlerButton.tsx +23 -0
- package/src/components/touchables/GenericTouchable.tsx +301 -301
- package/src/components/touchables/TouchableOpacity.tsx +76 -75
- package/src/components/touchables/TouchableWithoutFeedback.tsx +14 -14
- package/src/components/touchables/index.ts +7 -7
- package/src/handlers/NativeViewGestureHandler.ts +55 -55
- package/src/handlers/PanGestureHandler.ts +327 -325
- package/src/handlers/TapGestureHandler.ts +95 -94
- package/src/handlers/createHandler.tsx +535 -533
- package/src/handlers/createNativeWrapper.tsx +81 -80
- package/src/handlers/gestureHandlerCommon.ts +15 -250
- package/src/handlers/gestures/GestureDetector.tsx +823 -822
- package/src/index.ts +172 -174
- package/src/init.ts +18 -18
- package/DrawerLayout/package.json +0 -6
- package/RNGestureHandler.podspec +0 -44
- package/Swipeable/package.json +0 -6
- package/android/build.gradle +0 -209
- package/android/common/src/main/java/com/swmansion/common/GestureHandlerStateManager.kt +0 -5
- package/android/fabric/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerComponentsRegistry.java +0 -29
- package/android/fabric/src/main/java/com/swmansion/gesturehandler/ReactContextExtensions.kt +0 -12
- package/android/gradle.properties +0 -19
- package/android/noreanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt +0 -10
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerButtonManagerDelegate.java +0 -50
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerButtonManagerInterface.java +0 -23
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerDelegate.java +0 -25
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerInterface.java +0 -16
- package/android/paper/src/main/java/com/swmansion/gesturehandler/ReactContextExtensions.kt +0 -13
- package/android/reanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt +0 -17
- package/android/src/main/AndroidManifest.xml +0 -3
- package/android/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt +0 -21
- package/android/src/main/java/com/swmansion/gesturehandler/core/FlingGestureHandler.kt +0 -100
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +0 -807
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerInteractionController.kt +0 -8
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +0 -671
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerRegistry.kt +0 -8
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureUtils.kt +0 -47
- package/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt +0 -120
- package/android/src/main/java/com/swmansion/gesturehandler/core/LongPressGestureHandler.kt +0 -100
- package/android/src/main/java/com/swmansion/gesturehandler/core/ManualGestureHandler.kt +0 -11
- package/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt +0 -257
- package/android/src/main/java/com/swmansion/gesturehandler/core/OnTouchEventListener.kt +0 -9
- package/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt +0 -322
- package/android/src/main/java/com/swmansion/gesturehandler/core/PinchGestureHandler.kt +0 -103
- package/android/src/main/java/com/swmansion/gesturehandler/core/PointerEventsConfig.kt +0 -23
- package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureDetector.kt +0 -125
- package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureHandler.kt +0 -93
- package/android/src/main/java/com/swmansion/gesturehandler/core/ScaleGestureDetector.java +0 -558
- package/android/src/main/java/com/swmansion/gesturehandler/core/TapGestureHandler.kt +0 -168
- package/android/src/main/java/com/swmansion/gesturehandler/core/ViewConfigurationHelper.kt +0 -10
- package/android/src/main/java/com/swmansion/gesturehandler/react/Extensions.kt +0 -16
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +0 -423
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt +0 -15
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.kt +0 -75
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +0 -74
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +0 -702
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt +0 -100
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +0 -142
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootInterface.kt +0 -5
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +0 -78
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt +0 -51
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.kt +0 -78
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt +0 -69
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +0 -51
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/FlingGestureHandlerEventDataBuilder.kt +0 -30
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/GestureHandlerEventDataBuilder.kt +0 -22
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/HoverGestureHandlerEventDataBuilder.kt +0 -30
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/LongPressGestureHandlerEventDataBuilder.kt +0 -33
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/ManualGestureHandlerEventDataBuilder.kt +0 -5
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/NativeGestureHandlerEventDataBuilder.kt +0 -18
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/PanGestureHandlerEventDataBuilder.kt +0 -42
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/PinchGestureHandlerEventDataBuilder.kt +0 -30
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/RotationGestureHandlerEventDataBuilder.kt +0 -30
- package/android/src/main/java/com/swmansion/gesturehandler/react/eventbuilders/TapGestureHandlerEventDataBuilder.kt +0 -30
- package/android/src/main/jni/CMakeLists.txt +0 -37
- package/android/src/main/jni/cpp-adapter.cpp +0 -44
- package/ios/Handlers/RNFlingHandler.h +0 -4
- package/ios/Handlers/RNFlingHandler.m +0 -152
- package/ios/Handlers/RNForceTouchHandler.h +0 -4
- package/ios/Handlers/RNForceTouchHandler.m +0 -175
- package/ios/Handlers/RNHoverHandler.h +0 -12
- package/ios/Handlers/RNHoverHandler.m +0 -153
- package/ios/Handlers/RNLongPressHandler.h +0 -12
- package/ios/Handlers/RNLongPressHandler.m +0 -183
- package/ios/Handlers/RNManualHandler.h +0 -4
- package/ios/Handlers/RNManualHandler.m +0 -88
- package/ios/Handlers/RNNativeViewHandler.h +0 -15
- package/ios/Handlers/RNNativeViewHandler.mm +0 -193
- package/ios/Handlers/RNPanHandler.h +0 -12
- package/ios/Handlers/RNPanHandler.m +0 -331
- package/ios/Handlers/RNPinchHandler.h +0 -12
- package/ios/Handlers/RNPinchHandler.m +0 -95
- package/ios/Handlers/RNRotationHandler.h +0 -12
- package/ios/Handlers/RNRotationHandler.m +0 -93
- package/ios/Handlers/RNTapHandler.h +0 -12
- package/ios/Handlers/RNTapHandler.m +0 -265
- package/ios/RNGHTouchEventType.h +0 -9
- package/ios/RNGestureHandler.h +0 -90
- package/ios/RNGestureHandler.m +0 -493
- package/ios/RNGestureHandler.xcodeproj/project.pbxproj +0 -690
- package/ios/RNGestureHandler.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/RNGestureHandlerActionType.h +0 -10
- package/ios/RNGestureHandlerButton.h +0 -19
- package/ios/RNGestureHandlerButton.m +0 -77
- package/ios/RNGestureHandlerButtonComponentView.h +0 -17
- package/ios/RNGestureHandlerButtonComponentView.mm +0 -64
- package/ios/RNGestureHandlerButtonManager.h +0 -5
- package/ios/RNGestureHandlerButtonManager.m +0 -34
- package/ios/RNGestureHandlerDirection.h +0 -8
- package/ios/RNGestureHandlerEvents.h +0 -65
- package/ios/RNGestureHandlerEvents.m +0 -260
- package/ios/RNGestureHandlerManager.h +0 -35
- package/ios/RNGestureHandlerManager.mm +0 -367
- package/ios/RNGestureHandlerModule.h +0 -7
- package/ios/RNGestureHandlerModule.mm +0 -320
- package/ios/RNGestureHandlerPointerTracker.h +0 -25
- package/ios/RNGestureHandlerPointerTracker.m +0 -243
- package/ios/RNGestureHandlerRegistry.h +0 -21
- package/ios/RNGestureHandlerRegistry.m +0 -63
- package/ios/RNGestureHandlerRootViewComponentView.mm +0 -21
- package/ios/RNGestureHandlerState.h +0 -10
- package/ios/RNGestureHandlerStateManager.h +0 -5
- package/ios/RNManualActivationRecognizer.h +0 -10
- package/ios/RNManualActivationRecognizer.m +0 -88
- package/ios/RNRootViewGestureRecognizer.h +0 -17
- package/ios/RNRootViewGestureRecognizer.m +0 -106
- package/jest-utils/package.json +0 -6
- package/jestSetup.js +0 -7
- package/lib/commonjs/ActionType.js +0 -15
- package/lib/commonjs/ActionType.js.map +0 -1
- package/lib/commonjs/Directions.js +0 -15
- package/lib/commonjs/Directions.js.map +0 -1
- package/lib/commonjs/EnableNewWebImplementation.js +0 -35
- package/lib/commonjs/EnableNewWebImplementation.js.map +0 -1
- package/lib/commonjs/GestureHandlerRootViewContext.js +0 -15
- package/lib/commonjs/GestureHandlerRootViewContext.js.map +0 -1
- package/lib/commonjs/PlatformConstants.js +0 -15
- package/lib/commonjs/PlatformConstants.js.map +0 -1
- package/lib/commonjs/PlatformConstants.web.js +0 -14
- package/lib/commonjs/PlatformConstants.web.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.macos.js +0 -149
- package/lib/commonjs/RNGestureHandlerModule.macos.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.web.js +0 -163
- package/lib/commonjs/RNGestureHandlerModule.web.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.windows.js +0 -158
- package/lib/commonjs/RNGestureHandlerModule.windows.js.map +0 -1
- package/lib/commonjs/RNRenderer.js +0 -16
- package/lib/commonjs/RNRenderer.js.map +0 -1
- package/lib/commonjs/RNRenderer.web.js +0 -11
- package/lib/commonjs/RNRenderer.web.js.map +0 -1
- package/lib/commonjs/State.js +0 -18
- package/lib/commonjs/State.js.map +0 -1
- package/lib/commonjs/TouchEventType.js +0 -16
- package/lib/commonjs/TouchEventType.js.map +0 -1
- package/lib/commonjs/components/DrawerLayout.js +0 -566
- package/lib/commonjs/components/DrawerLayout.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.js +0 -115
- package/lib/commonjs/components/GestureComponents.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.web.js +0 -52
- package/lib/commonjs/components/GestureComponents.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.web.js +0 -24
- package/lib/commonjs/components/GestureHandlerButton.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.android.js +0 -31
- package/lib/commonjs/components/GestureHandlerRootView.android.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.web.js +0 -25
- package/lib/commonjs/components/GestureHandlerRootView.web.js.map +0 -1
- package/lib/commonjs/components/Swipeable.js +0 -408
- package/lib/commonjs/components/Swipeable.js.map +0 -1
- package/lib/commonjs/components/gestureHandlerRootHOC.js +0 -40
- package/lib/commonjs/components/gestureHandlerRootHOC.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableHighlight.js +0 -109
- package/lib/commonjs/components/touchables/TouchableHighlight.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js +0 -100
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js +0 -12
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js.map +0 -1
- package/lib/commonjs/getReactNativeVersion.js +0 -22
- package/lib/commonjs/getReactNativeVersion.js.map +0 -1
- package/lib/commonjs/getReactNativeVersion.web.js +0 -11
- package/lib/commonjs/getReactNativeVersion.web.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.js +0 -27
- package/lib/commonjs/getShadowNodeFromRef.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.web.js +0 -15
- package/lib/commonjs/getShadowNodeFromRef.web.js.map +0 -1
- package/lib/commonjs/ghQueueMicrotask.js +0 -12
- package/lib/commonjs/ghQueueMicrotask.js.map +0 -1
- package/lib/commonjs/handlers/FlingGestureHandler.js +0 -25
- package/lib/commonjs/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js +0 -49
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/LongPressGestureHandler.js +0 -27
- package/lib/commonjs/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PinchGestureHandler.js +0 -23
- package/lib/commonjs/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.js +0 -14
- package/lib/commonjs/handlers/PressabilityDebugView.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.web.js +0 -12
- package/lib/commonjs/handlers/PressabilityDebugView.web.js.map +0 -1
- package/lib/commonjs/handlers/RotationGestureHandler.js +0 -23
- package/lib/commonjs/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js +0 -6
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js.map +0 -1
- package/lib/commonjs/handlers/gestures/eventReceiver.js +0 -147
- package/lib/commonjs/handlers/gestures/eventReceiver.js.map +0 -1
- package/lib/commonjs/handlers/gestures/flingGesture.js +0 -34
- package/lib/commonjs/handlers/gestures/flingGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js +0 -65
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gesture.js +0 -241
- package/lib/commonjs/handlers/gestures/gesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureComposition.js +0 -105
- package/lib/commonjs/handlers/gestures/gestureComposition.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureObjects.js +0 -90
- package/lib/commonjs/handlers/gestures/gestureObjects.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.js +0 -65
- package/lib/commonjs/handlers/gestures/gestureStateManager.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js +0 -32
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js.map +0 -1
- package/lib/commonjs/handlers/gestures/hoverGesture.js +0 -74
- package/lib/commonjs/handlers/gestures/hoverGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/longPressGesture.js +0 -35
- package/lib/commonjs/handlers/gestures/longPressGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/manualGesture.js +0 -31
- package/lib/commonjs/handlers/gestures/manualGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/nativeGesture.js +0 -34
- package/lib/commonjs/handlers/gestures/nativeGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/panGesture.js +0 -149
- package/lib/commonjs/handlers/gestures/panGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/pinchGesture.js +0 -45
- package/lib/commonjs/handlers/gestures/pinchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js +0 -37
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js.map +0 -1
- package/lib/commonjs/handlers/gestures/rotationGesture.js +0 -45
- package/lib/commonjs/handlers/gestures/rotationGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/tapGesture.js +0 -60
- package/lib/commonjs/handlers/gestures/tapGesture.js.map +0 -1
- package/lib/commonjs/handlers/handlersRegistry.js +0 -67
- package/lib/commonjs/handlers/handlersRegistry.js.map +0 -1
- package/lib/commonjs/jestUtils/index.js +0 -20
- package/lib/commonjs/jestUtils/index.js.map +0 -1
- package/lib/commonjs/jestUtils/jestUtils.js +0 -375
- package/lib/commonjs/jestUtils/jestUtils.js.map +0 -1
- package/lib/commonjs/mocks.js +0 -66
- package/lib/commonjs/mocks.js.map +0 -1
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +0 -15
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +0 -15
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +0 -1
- package/lib/commonjs/typeUtils.js +0 -2
- package/lib/commonjs/typeUtils.js.map +0 -1
- package/lib/commonjs/utils.js +0 -63
- package/lib/commonjs/utils.js.map +0 -1
- package/lib/commonjs/web/constants.js +0 -16
- package/lib/commonjs/web/constants.js.map +0 -1
- package/lib/commonjs/web/detectors/RotationGestureDetector.js +0 -165
- package/lib/commonjs/web/detectors/RotationGestureDetector.js.map +0 -1
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js +0 -156
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js.map +0 -1
- package/lib/commonjs/web/handlers/FlingGestureHandler.js +0 -167
- package/lib/commonjs/web/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/GestureHandler.js +0 -794
- package/lib/commonjs/web/handlers/GestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/HoverGestureHandler.js +0 -62
- package/lib/commonjs/web/handlers/HoverGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js +0 -151
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/ManualGestureHandler.js +0 -61
- package/lib/commonjs/web/handlers/ManualGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js +0 -178
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/PanGestureHandler.js +0 -448
- package/lib/commonjs/web/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/PinchGestureHandler.js +0 -174
- package/lib/commonjs/web/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/RotationGestureHandler.js +0 -186
- package/lib/commonjs/web/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/TapGestureHandler.js +0 -280
- package/lib/commonjs/web/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/web/interfaces.js +0 -55
- package/lib/commonjs/web/interfaces.js.map +0 -1
- package/lib/commonjs/web/tools/CircularBuffer.js +0 -59
- package/lib/commonjs/web/tools/CircularBuffer.js.map +0 -1
- package/lib/commonjs/web/tools/EventManager.js +0 -127
- package/lib/commonjs/web/tools/EventManager.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js +0 -6
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js +0 -349
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +0 -118
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/InteractionManager.js +0 -114
- package/lib/commonjs/web/tools/InteractionManager.js.map +0 -1
- package/lib/commonjs/web/tools/LeastSquareSolver.js +0 -204
- package/lib/commonjs/web/tools/LeastSquareSolver.js.map +0 -1
- package/lib/commonjs/web/tools/NodeManager.js +0 -48
- package/lib/commonjs/web/tools/NodeManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerEventManager.js +0 -198
- package/lib/commonjs/web/tools/PointerEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerTracker.js +0 -226
- package/lib/commonjs/web/tools/PointerTracker.js.map +0 -1
- package/lib/commonjs/web/tools/TouchEventManager.js +0 -138
- package/lib/commonjs/web/tools/TouchEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/VelocityTracker.js +0 -111
- package/lib/commonjs/web/tools/VelocityTracker.js.map +0 -1
- package/lib/commonjs/web/utils.js +0 -15
- package/lib/commonjs/web/utils.js.map +0 -1
- package/lib/commonjs/web_hammer/DiscreteGestureHandler.js +0 -105
- package/lib/commonjs/web_hammer/DiscreteGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/DraggingGestureHandler.js +0 -53
- package/lib/commonjs/web_hammer/DraggingGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/Errors.js +0 -16
- package/lib/commonjs/web_hammer/Errors.js.map +0 -1
- package/lib/commonjs/web_hammer/FlingGestureHandler.js +0 -170
- package/lib/commonjs/web_hammer/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/GestureHandler.js +0 -579
- package/lib/commonjs/web_hammer/GestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/IndiscreteGestureHandler.js +0 -54
- package/lib/commonjs/web_hammer/IndiscreteGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/LongPressGestureHandler.js +0 -71
- package/lib/commonjs/web_hammer/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/NativeViewGestureHandler.js +0 -66
- package/lib/commonjs/web_hammer/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/NodeManager.js +0 -46
- package/lib/commonjs/web_hammer/NodeManager.js.map +0 -1
- package/lib/commonjs/web_hammer/PanGestureHandler.js +0 -208
- package/lib/commonjs/web_hammer/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/PinchGestureHandler.js +0 -40
- package/lib/commonjs/web_hammer/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/PressGestureHandler.js +0 -188
- package/lib/commonjs/web_hammer/PressGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/RotationGestureHandler.js +0 -44
- package/lib/commonjs/web_hammer/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/TapGestureHandler.js +0 -192
- package/lib/commonjs/web_hammer/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/web_hammer/constants.js +0 -64
- package/lib/commonjs/web_hammer/constants.js.map +0 -1
- package/lib/commonjs/web_hammer/utils.js +0 -42
- package/lib/commonjs/web_hammer/utils.js.map +0 -1
- package/lib/module/ActionType.js +0 -7
- package/lib/module/ActionType.js.map +0 -1
- package/lib/module/Directions.js +0 -7
- package/lib/module/Directions.js.map +0 -1
- package/lib/module/EnableNewWebImplementation.js +0 -22
- package/lib/module/EnableNewWebImplementation.js.map +0 -1
- package/lib/module/GestureHandlerRootViewContext.js +0 -3
- package/lib/module/GestureHandlerRootViewContext.js.map +0 -1
- package/lib/module/PlatformConstants.js +0 -5
- package/lib/module/PlatformConstants.js.map +0 -1
- package/lib/module/PlatformConstants.web.js +0 -7
- package/lib/module/PlatformConstants.web.js.map +0 -1
- package/lib/module/RNGestureHandlerModule.macos.js +0 -110
- package/lib/module/RNGestureHandlerModule.macos.js.map +0 -1
- package/lib/module/RNGestureHandlerModule.web.js +0 -122
- package/lib/module/RNGestureHandlerModule.web.js.map +0 -1
- package/lib/module/RNGestureHandlerModule.windows.js +0 -118
- package/lib/module/RNGestureHandlerModule.windows.js.map +0 -1
- package/lib/module/RNRenderer.js +0 -4
- package/lib/module/RNRenderer.js.map +0 -1
- package/lib/module/RNRenderer.web.js +0 -4
- package/lib/module/RNRenderer.web.js.map +0 -1
- package/lib/module/State.js +0 -10
- package/lib/module/State.js.map +0 -1
- package/lib/module/TouchEventType.js +0 -8
- package/lib/module/TouchEventType.js.map +0 -1
- package/lib/module/components/DrawerLayout.js +0 -551
- package/lib/module/components/DrawerLayout.js.map +0 -1
- package/lib/module/components/GestureComponents.js +0 -90
- package/lib/module/components/GestureComponents.js.map +0 -1
- package/lib/module/components/GestureComponents.web.js +0 -28
- package/lib/module/components/GestureComponents.web.js.map +0 -1
- package/lib/module/components/GestureHandlerButton.web.js +0 -9
- package/lib/module/components/GestureHandlerButton.web.js.map +0 -1
- package/lib/module/components/GestureHandlerRootView.android.js +0 -14
- package/lib/module/components/GestureHandlerRootView.android.js.map +0 -1
- package/lib/module/components/GestureHandlerRootView.web.js +0 -9
- package/lib/module/components/GestureHandlerRootView.web.js.map +0 -1
- package/lib/module/components/Swipeable.js +0 -390
- package/lib/module/components/Swipeable.js.map +0 -1
- package/lib/module/components/gestureHandlerRootHOC.js +0 -22
- package/lib/module/components/gestureHandlerRootHOC.js.map +0 -1
- package/lib/module/components/touchables/TouchableHighlight.js +0 -95
- package/lib/module/components/touchables/TouchableHighlight.js.map +0 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js +0 -84
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js.map +0 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.js +0 -3
- package/lib/module/components/touchables/TouchableNativeFeedback.js.map +0 -1
- package/lib/module/getReactNativeVersion.js +0 -10
- package/lib/module/getReactNativeVersion.js.map +0 -1
- package/lib/module/getReactNativeVersion.web.js +0 -4
- package/lib/module/getReactNativeVersion.web.js.map +0 -1
- package/lib/module/getShadowNodeFromRef.js +0 -20
- package/lib/module/getShadowNodeFromRef.js.map +0 -1
- package/lib/module/getShadowNodeFromRef.web.js +0 -8
- package/lib/module/getShadowNodeFromRef.web.js.map +0 -1
- package/lib/module/ghQueueMicrotask.js +0 -5
- package/lib/module/ghQueueMicrotask.js.map +0 -1
- package/lib/module/handlers/FlingGestureHandler.js +0 -11
- package/lib/module/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/module/handlers/ForceTouchGestureHandler.js +0 -31
- package/lib/module/handlers/ForceTouchGestureHandler.js.map +0 -1
- package/lib/module/handlers/LongPressGestureHandler.js +0 -13
- package/lib/module/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/module/handlers/PinchGestureHandler.js +0 -10
- package/lib/module/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/module/handlers/PressabilityDebugView.js +0 -3
- package/lib/module/handlers/PressabilityDebugView.js.map +0 -1
- package/lib/module/handlers/PressabilityDebugView.web.js +0 -5
- package/lib/module/handlers/PressabilityDebugView.web.js.map +0 -1
- package/lib/module/handlers/RotationGestureHandler.js +0 -10
- package/lib/module/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/module/handlers/gestureHandlerTypesCompat.js +0 -2
- package/lib/module/handlers/gestureHandlerTypesCompat.js.map +0 -1
- package/lib/module/handlers/gestures/eventReceiver.js +0 -131
- package/lib/module/handlers/gestures/eventReceiver.js.map +0 -1
- package/lib/module/handlers/gestures/flingGesture.js +0 -24
- package/lib/module/handlers/gestures/flingGesture.js.map +0 -1
- package/lib/module/handlers/gestures/forceTouchGesture.js +0 -56
- package/lib/module/handlers/gestures/forceTouchGesture.js.map +0 -1
- package/lib/module/handlers/gestures/gesture.js +0 -222
- package/lib/module/handlers/gestures/gesture.js.map +0 -1
- package/lib/module/handlers/gestures/gestureComposition.js +0 -90
- package/lib/module/handlers/gestures/gestureComposition.js.map +0 -1
- package/lib/module/handlers/gestures/gestureObjects.js +0 -71
- package/lib/module/handlers/gestures/gestureObjects.js.map +0 -1
- package/lib/module/handlers/gestures/gestureStateManager.js +0 -54
- package/lib/module/handlers/gestures/gestureStateManager.js.map +0 -1
- package/lib/module/handlers/gestures/gestureStateManager.web.js +0 -21
- package/lib/module/handlers/gestures/gestureStateManager.web.js.map +0 -1
- package/lib/module/handlers/gestures/hoverGesture.js +0 -62
- package/lib/module/handlers/gestures/hoverGesture.js.map +0 -1
- package/lib/module/handlers/gestures/longPressGesture.js +0 -25
- package/lib/module/handlers/gestures/longPressGesture.js.map +0 -1
- package/lib/module/handlers/gestures/manualGesture.js +0 -22
- package/lib/module/handlers/gestures/manualGesture.js.map +0 -1
- package/lib/module/handlers/gestures/nativeGesture.js +0 -24
- package/lib/module/handlers/gestures/nativeGesture.js.map +0 -1
- package/lib/module/handlers/gestures/panGesture.js +0 -140
- package/lib/module/handlers/gestures/panGesture.js.map +0 -1
- package/lib/module/handlers/gestures/pinchGesture.js +0 -36
- package/lib/module/handlers/gestures/pinchGesture.js.map +0 -1
- package/lib/module/handlers/gestures/reanimatedWrapper.js +0 -30
- package/lib/module/handlers/gestures/reanimatedWrapper.js.map +0 -1
- package/lib/module/handlers/gestures/rotationGesture.js +0 -36
- package/lib/module/handlers/gestures/rotationGesture.js.map +0 -1
- package/lib/module/handlers/gestures/tapGesture.js +0 -50
- package/lib/module/handlers/gestures/tapGesture.js.map +0 -1
- package/lib/module/handlers/handlersRegistry.js +0 -44
- package/lib/module/handlers/handlersRegistry.js.map +0 -1
- package/lib/module/jestUtils/index.js +0 -2
- package/lib/module/jestUtils/index.js.map +0 -1
- package/lib/module/jestUtils/jestUtils.js +0 -350
- package/lib/module/jestUtils/jestUtils.js.map +0 -1
- package/lib/module/mocks.js +0 -56
- package/lib/module/mocks.js.map +0 -1
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js +0 -3
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +0 -1
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js +0 -3
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +0 -1
- package/lib/module/typeUtils.js +0 -2
- package/lib/module/typeUtils.js.map +0 -1
- package/lib/module/utils.js +0 -44
- package/lib/module/utils.js.map +0 -1
- package/lib/module/web/constants.js +0 -8
- package/lib/module/web/constants.js.map +0 -1
- package/lib/module/web/detectors/RotationGestureDetector.js +0 -155
- package/lib/module/web/detectors/RotationGestureDetector.js.map +0 -1
- package/lib/module/web/detectors/ScaleGestureDetector.js +0 -145
- package/lib/module/web/detectors/ScaleGestureDetector.js.map +0 -1
- package/lib/module/web/handlers/FlingGestureHandler.js +0 -152
- package/lib/module/web/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/GestureHandler.js +0 -776
- package/lib/module/web/handlers/GestureHandler.js.map +0 -1
- package/lib/module/web/handlers/HoverGestureHandler.js +0 -47
- package/lib/module/web/handlers/HoverGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/LongPressGestureHandler.js +0 -136
- package/lib/module/web/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/ManualGestureHandler.js +0 -49
- package/lib/module/web/handlers/ManualGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/NativeViewGestureHandler.js +0 -163
- package/lib/module/web/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/PanGestureHandler.js +0 -433
- package/lib/module/web/handlers/PanGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/PinchGestureHandler.js +0 -159
- package/lib/module/web/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/RotationGestureHandler.js +0 -171
- package/lib/module/web/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/module/web/handlers/TapGestureHandler.js +0 -265
- package/lib/module/web/handlers/TapGestureHandler.js.map +0 -1
- package/lib/module/web/interfaces.js +0 -45
- package/lib/module/web/interfaces.js.map +0 -1
- package/lib/module/web/tools/CircularBuffer.js +0 -50
- package/lib/module/web/tools/CircularBuffer.js.map +0 -1
- package/lib/module/web/tools/EventManager.js +0 -118
- package/lib/module/web/tools/EventManager.js.map +0 -1
- package/lib/module/web/tools/GestureHandlerDelegate.js +0 -2
- package/lib/module/web/tools/GestureHandlerDelegate.js.map +0 -1
- package/lib/module/web/tools/GestureHandlerOrchestrator.js +0 -335
- package/lib/module/web/tools/GestureHandlerOrchestrator.js.map +0 -1
- package/lib/module/web/tools/GestureHandlerWebDelegate.js +0 -102
- package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +0 -1
- package/lib/module/web/tools/InteractionManager.js +0 -105
- package/lib/module/web/tools/InteractionManager.js.map +0 -1
- package/lib/module/web/tools/LeastSquareSolver.js +0 -195
- package/lib/module/web/tools/LeastSquareSolver.js.map +0 -1
- package/lib/module/web/tools/NodeManager.js +0 -39
- package/lib/module/web/tools/NodeManager.js.map +0 -1
- package/lib/module/web/tools/PointerEventManager.js +0 -184
- package/lib/module/web/tools/PointerEventManager.js.map +0 -1
- package/lib/module/web/tools/PointerTracker.js +0 -213
- package/lib/module/web/tools/PointerTracker.js.map +0 -1
- package/lib/module/web/tools/TouchEventManager.js +0 -124
- package/lib/module/web/tools/TouchEventManager.js.map +0 -1
- package/lib/module/web/tools/VelocityTracker.js +0 -98
- package/lib/module/web/tools/VelocityTracker.js.map +0 -1
- package/lib/module/web/utils.js +0 -8
- package/lib/module/web/utils.js.map +0 -1
- package/lib/module/web_hammer/DiscreteGestureHandler.js +0 -94
- package/lib/module/web_hammer/DiscreteGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/DraggingGestureHandler.js +0 -40
- package/lib/module/web_hammer/DraggingGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/Errors.js +0 -7
- package/lib/module/web_hammer/Errors.js.map +0 -1
- package/lib/module/web_hammer/FlingGestureHandler.js +0 -156
- package/lib/module/web_hammer/FlingGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/GestureHandler.js +0 -563
- package/lib/module/web_hammer/GestureHandler.js.map +0 -1
- package/lib/module/web_hammer/IndiscreteGestureHandler.js +0 -44
- package/lib/module/web_hammer/IndiscreteGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/LongPressGestureHandler.js +0 -58
- package/lib/module/web_hammer/LongPressGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/NativeViewGestureHandler.js +0 -49
- package/lib/module/web_hammer/NativeViewGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/NodeManager.js +0 -33
- package/lib/module/web_hammer/NodeManager.js.map +0 -1
- package/lib/module/web_hammer/PanGestureHandler.js +0 -194
- package/lib/module/web_hammer/PanGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/PinchGestureHandler.js +0 -29
- package/lib/module/web_hammer/PinchGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/PressGestureHandler.js +0 -174
- package/lib/module/web_hammer/PressGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/RotationGestureHandler.js +0 -32
- package/lib/module/web_hammer/RotationGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/TapGestureHandler.js +0 -180
- package/lib/module/web_hammer/TapGestureHandler.js.map +0 -1
- package/lib/module/web_hammer/constants.js +0 -43
- package/lib/module/web_hammer/constants.js.map +0 -1
- package/lib/module/web_hammer/utils.js +0 -19
- package/lib/module/web_hammer/utils.js.map +0 -1
- package/lib/typescript/ActionType.d.ts +0 -7
- package/lib/typescript/Directions.d.ts +0 -7
- package/lib/typescript/EnableNewWebImplementation.d.ts +0 -3
- package/lib/typescript/GestureHandlerRootViewContext.d.ts +0 -3
- package/lib/typescript/PlatformConstants.d.ts +0 -5
- package/lib/typescript/PlatformConstants.web.d.ts +0 -4
- package/lib/typescript/RNGestureHandlerModule.macos.d.ts +0 -47
- package/lib/typescript/RNGestureHandlerModule.web.d.ts +0 -50
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts +0 -48
- package/lib/typescript/RNRenderer.d.ts +0 -1
- package/lib/typescript/RNRenderer.web.d.ts +0 -3
- package/lib/typescript/State.d.ts +0 -9
- package/lib/typescript/TouchEventType.d.ts +0 -8
- package/lib/typescript/components/DrawerLayout.d.ts +0 -148
- package/lib/typescript/components/GestureComponents.d.ts +0 -22
- package/lib/typescript/components/GestureComponents.web.d.ts +0 -8
- package/lib/typescript/components/GestureHandlerButton.web.d.ts +0 -4
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts +0 -6
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts +0 -6
- package/lib/typescript/components/Swipeable.d.ts +0 -178
- package/lib/typescript/components/gestureHandlerRootHOC.d.ts +0 -3
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts +0 -36
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts +0 -45
- package/lib/typescript/components/touchables/TouchableNativeFeedback.d.ts +0 -2
- package/lib/typescript/getReactNativeVersion.d.ts +0 -4
- package/lib/typescript/getReactNativeVersion.web.d.ts +0 -1
- package/lib/typescript/getShadowNodeFromRef.d.ts +0 -1
- package/lib/typescript/getShadowNodeFromRef.web.d.ts +0 -1
- package/lib/typescript/ghQueueMicrotask.d.ts +0 -1
- package/lib/typescript/handlers/FlingGestureHandler.d.ts +0 -34
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts +0 -44
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts +0 -56
- package/lib/typescript/handlers/PinchGestureHandler.d.ts +0 -29
- package/lib/typescript/handlers/PressabilityDebugView.d.ts +0 -1
- package/lib/typescript/handlers/PressabilityDebugView.web.d.ts +0 -1
- package/lib/typescript/handlers/RotationGestureHandler.d.ts +0 -29
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts +0 -42
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts +0 -4
- package/lib/typescript/handlers/gestures/flingGesture.d.ts +0 -9
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +0 -15
- package/lib/typescript/handlers/gestures/gesture.d.ts +0 -110
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts +0 -21
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts +0 -41
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +0 -9
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts +0 -4
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts +0 -32
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts +0 -9
- package/lib/typescript/handlers/gestures/manualGesture.d.ts +0 -7
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts +0 -9
- package/lib/typescript/handlers/gestures/panGesture.d.ts +0 -26
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts +0 -11
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +0 -14
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts +0 -12
- package/lib/typescript/handlers/gestures/tapGesture.d.ts +0 -14
- package/lib/typescript/handlers/handlersRegistry.d.ts +0 -14
- package/lib/typescript/jestUtils/index.d.ts +0 -1
- package/lib/typescript/jestUtils/jestUtils.d.ts +0 -28
- package/lib/typescript/mocks.d.ts +0 -44
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +0 -14
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +0 -6
- package/lib/typescript/typeUtils.d.ts +0 -1
- package/lib/typescript/utils.d.ts +0 -8
- package/lib/typescript/web/constants.d.ts +0 -7
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts +0 -30
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts +0 -29
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts +0 -27
- package/lib/typescript/web/handlers/GestureHandler.d.ts +0 -90
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +0 -10
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +0 -26
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +0 -12
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +0 -24
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts +0 -55
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +0 -28
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +0 -29
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts +0 -39
- package/lib/typescript/web/interfaces.d.ts +0 -141
- package/lib/typescript/web/tools/CircularBuffer.d.ts +0 -11
- package/lib/typescript/web/tools/EventManager.d.ts +0 -34
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts +0 -22
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +0 -29
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +0 -21
- package/lib/typescript/web/tools/InteractionManager.d.ts +0 -17
- package/lib/typescript/web/tools/LeastSquareSolver.d.ts +0 -12
- package/lib/typescript/web/tools/NodeManager.d.ts +0 -11
- package/lib/typescript/web/tools/PointerEventManager.d.ts +0 -8
- package/lib/typescript/web/tools/PointerTracker.d.ts +0 -53
- package/lib/typescript/web/tools/TouchEventManager.d.ts +0 -6
- package/lib/typescript/web/tools/VelocityTracker.d.ts +0 -13
- package/lib/typescript/web/utils.d.ts +0 -4
- package/lib/typescript/web_hammer/DiscreteGestureHandler.d.ts +0 -20
- package/lib/typescript/web_hammer/DraggingGestureHandler.d.ts +0 -15
- package/lib/typescript/web_hammer/Errors.d.ts +0 -3
- package/lib/typescript/web_hammer/FlingGestureHandler.d.ts +0 -43
- package/lib/typescript/web_hammer/GestureHandler.d.ts +0 -145
- package/lib/typescript/web_hammer/IndiscreteGestureHandler.d.ts +0 -40
- package/lib/typescript/web_hammer/LongPressGestureHandler.d.ts +0 -38
- package/lib/typescript/web_hammer/NativeViewGestureHandler.d.ts +0 -7
- package/lib/typescript/web_hammer/NodeManager.d.ts +0 -8
- package/lib/typescript/web_hammer/PanGestureHandler.d.ts +0 -56
- package/lib/typescript/web_hammer/PinchGestureHandler.d.ts +0 -13
- package/lib/typescript/web_hammer/PressGestureHandler.d.ts +0 -83
- package/lib/typescript/web_hammer/RotationGestureHandler.d.ts +0 -13
- package/lib/typescript/web_hammer/TapGestureHandler.d.ts +0 -57
- package/lib/typescript/web_hammer/constants.d.ts +0 -39
- package/lib/typescript/web_hammer/utils.d.ts +0 -9
- package/src/ActionType.ts +0 -9
- package/src/Directions.ts +0 -9
- package/src/EnableNewWebImplementation.ts +0 -35
- package/src/GestureHandlerRootViewContext.ts +0 -3
- package/src/PlatformConstants.ts +0 -8
- package/src/PlatformConstants.web.ts +0 -5
- package/src/RNGestureHandlerModule.macos.ts +0 -133
- package/src/RNGestureHandlerModule.web.ts +0 -146
- package/src/RNGestureHandlerModule.windows.ts +0 -144
- package/src/RNRenderer.ts +0 -3
- package/src/RNRenderer.web.ts +0 -3
- package/src/State.ts +0 -13
- package/src/TouchEventType.ts +0 -10
- package/src/components/DrawerLayout.tsx +0 -743
- package/src/components/GestureComponents.tsx +0 -148
- package/src/components/GestureComponents.web.tsx +0 -41
- package/src/components/GestureHandlerButton.web.tsx +0 -6
- package/src/components/GestureHandlerRootView.android.tsx +0 -24
- package/src/components/GestureHandlerRootView.web.tsx +0 -17
- package/src/components/Swipeable.tsx +0 -584
- package/src/components/gestureHandlerRootHOC.tsx +0 -32
- package/src/components/touchables/TouchableHighlight.tsx +0 -115
- package/src/components/touchables/TouchableNativeFeedback.android.tsx +0 -91
- package/src/components/touchables/TouchableNativeFeedback.tsx +0 -3
- package/src/getReactNativeVersion.ts +0 -11
- package/src/getReactNativeVersion.web.ts +0 -3
- package/src/getShadowNodeFromRef.ts +0 -22
- package/src/getShadowNodeFromRef.web.ts +0 -7
- package/src/ghQueueMicrotask.ts +0 -5
- package/src/handlers/FlingGestureHandler.ts +0 -59
- package/src/handlers/ForceTouchGestureHandler.ts +0 -90
- package/src/handlers/LongPressGestureHandler.ts +0 -88
- package/src/handlers/PinchGestureHandler.ts +0 -48
- package/src/handlers/PressabilityDebugView.tsx +0 -2
- package/src/handlers/PressabilityDebugView.web.tsx +0 -4
- package/src/handlers/RotationGestureHandler.ts +0 -48
- package/src/handlers/gestureHandlerTypesCompat.ts +0 -106
- package/src/handlers/gestures/eventReceiver.ts +0 -155
- package/src/handlers/gestures/flingGesture.ts +0 -27
- package/src/handlers/gestures/forceTouchGesture.ts +0 -74
- package/src/handlers/gestures/gesture.ts +0 -349
- package/src/handlers/gestures/gestureComposition.ts +0 -122
- package/src/handlers/gestures/gestureObjects.ts +0 -84
- package/src/handlers/gestures/gestureStateManager.ts +0 -62
- package/src/handlers/gestures/gestureStateManager.web.ts +0 -24
- package/src/handlers/gestures/hoverGesture.ts +0 -83
- package/src/handlers/gestures/longPressGesture.ts +0 -28
- package/src/handlers/gestures/manualGesture.ts +0 -31
- package/src/handlers/gestures/nativeGesture.ts +0 -27
- package/src/handlers/gestures/panGesture.ts +0 -152
- package/src/handlers/gestures/pinchGesture.ts +0 -51
- package/src/handlers/gestures/reanimatedWrapper.ts +0 -56
- package/src/handlers/gestures/rotationGesture.ts +0 -51
- package/src/handlers/gestures/tapGesture.ts +0 -53
- package/src/handlers/handlersRegistry.ts +0 -60
- package/src/jestUtils/index.ts +0 -1
- package/src/jestUtils/jestUtils.ts +0 -505
- package/src/mocks.ts +0 -67
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +0 -18
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +0 -6
- package/src/typeUtils.ts +0 -1
- package/src/utils.ts +0 -54
- package/src/web/constants.ts +0 -8
- package/src/web/detectors/RotationGestureDetector.ts +0 -168
- package/src/web/detectors/ScaleGestureDetector.ts +0 -172
- package/src/web/handlers/FlingGestureHandler.ts +0 -161
- package/src/web/handlers/GestureHandler.ts +0 -849
- package/src/web/handlers/HoverGestureHandler.ts +0 -43
- package/src/web/handlers/LongPressGestureHandler.ts +0 -125
- package/src/web/handlers/ManualGestureHandler.ts +0 -43
- package/src/web/handlers/NativeViewGestureHandler.ts +0 -167
- package/src/web/handlers/PanGestureHandler.ts +0 -485
- package/src/web/handlers/PinchGestureHandler.ts +0 -158
- package/src/web/handlers/RotationGestureHandler.ts +0 -172
- package/src/web/handlers/TapGestureHandler.ts +0 -273
- package/src/web/interfaces.ts +0 -167
- package/src/web/tools/EventManager.ts +0 -104
- package/src/web/tools/GestureHandlerDelegate.ts +0 -23
- package/src/web/tools/GestureHandlerOrchestrator.ts +0 -389
- package/src/web/tools/GestureHandlerWebDelegate.ts +0 -115
- package/src/web/tools/NodeManager.ts +0 -43
- package/src/web/tools/PointerEventManager.ts +0 -202
- package/src/web/tools/TouchEventManager.ts +0 -167
- package/src/web/utils.ts +0 -8
- package/src/web_hammer/DiscreteGestureHandler.ts +0 -82
- package/src/web_hammer/DraggingGestureHandler.ts +0 -34
- package/src/web_hammer/Errors.ts +0 -7
- package/src/web_hammer/FlingGestureHandler.ts +0 -134
- package/src/web_hammer/GestureHandler.ts +0 -599
- package/src/web_hammer/IndiscreteGestureHandler.ts +0 -33
- package/src/web_hammer/LongPressGestureHandler.ts +0 -56
- package/src/web_hammer/NativeViewGestureHandler.ts +0 -47
- package/src/web_hammer/NodeManager.ts +0 -42
- package/src/web_hammer/PanGestureHandler.ts +0 -226
- package/src/web_hammer/PinchGestureHandler.ts +0 -25
- package/src/web_hammer/PressGestureHandler.ts +0 -167
- package/src/web_hammer/RotationGestureHandler.ts +0 -25
- package/src/web_hammer/TapGestureHandler.ts +0 -172
- package/src/web_hammer/constants.ts +0 -48
- package/src/web_hammer/utils.ts +0 -24
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["DrawerLayout.tsx"],"names":["DRAG_TOSS","IDLE","DRAGGING","SETTLING","DrawerLayout","Component","constructor","props","React","createRef","state","drawerPosition","drawerWidth","drawerType","dragX","dragXValue","touchX","touchXValue","drawerTranslation","containerWidth","Animated","multiply","Value","add","setValue","translationX","startPositionX","dragOffsetFromOnStartPosition","interpolate","inputRange","outputRange","openValue","extrapolate","gestureOptions","useNativeDriver","useNativeAnimations","onDrawerSlide","listener","ev","Math","floor","abs","nativeEvent","position","onGestureEvent","event","x","setState","layout","width","newState","drawerWillShow","onDrawerStateChanged","oldState","State","ACTIVE","handleRelease","emitStateChanged","drawerState","keyboardDismissMode","Keyboard","dismiss","hideStatusBar","StatusBar","setHidden","statusBarAnimation","drawerShown","drawerLockMode","closeDrawer","velocityX","gestureStartX","dragOffsetBasedOnStart","startOffsetX","projOffsetX","shouldOpen","animateDrawer","showing","accessibilityIsModalView","current","setNativeProps","accessibilityViewIsModal","pointerEventsView","pointerEvents","minSwipeDistance","edgeWidth","fromLeft","gestureOrientation","hitSlop","left","undefined","right","panGestureHandler","activeOffsetX","fromValue","toValue","velocity","speed","nextFramePosition","min","max","willShow","updateShowing","spring","bounciness","start","finished","drawerOpened","onDrawerOpen","onDrawerClose","options","forceUpdate","overlayOpacity","dynamicOverlayStyles","opacity","backgroundColor","overlayColor","onTapHandlerStateChange","styles","overlay","drawerBackgroundColor","drawerContainerStyle","contentContainerStyle","drawerSlide","containerSlide","reverseContentDirection","I18nManager","isRTL","dynamicDrawerStyles","containerStyles","containerTranslateX","transform","translateX","drawerTranslateX","closedDrawerOffset","drawerStyles","flexDirection","main","handleContainerLayout","containerOnBack","containerInFront","children","renderOverlay","drawerContainer","renderNavigationView","ref","onGestureRef","updateAnimatedEvent","shouldComponentUpdate","render","userSelect","activeCursor","setPanGestureRef","openingHandlerStateChange","enableTrackpadTwoFingerGesture","renderDrawer","Left","Right","StyleSheet","create","absoluteFillObject","zIndex","flex","overflow"],"mappings":";;;;;;;AAQA;;AAEA;;AACA;;AAoBA;;AAIA;;AAIA;;;;;;;;;;AAEA,MAAMA,SAAS,GAAG,IAAlB;AAEA,MAAMC,IAAiB,GAAG,MAA1B;AACA,MAAMC,QAAqB,GAAG,UAA9B;AACA,MAAMC,QAAqB,GAAG,UAA9B;;AAiJe,MAAMC,YAAN,SAA2BC,eAA3B,CAGb;AAaAC,EAAAA,WAAW,CAACC,MAAD,EAA2B;AACpC,UAAMA,MAAN;;AADoC;;AAAA;;AAAA,mEAoCHC,KAAK,CAACC,SAAN,EApCG;;AAAA,4DAqCVD,KAAK,CAACC,SAAN,EArCU;;AAAA,4DAsCVD,KAAK,CAACC,SAAN,EAtCU;;AAAA,yCA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,GADc;AAM/BI,EAAAA,gBAAgB,EAAE,EAChB,GAAGkB,wBAAWE,kBADE;AAEhBC,IAAAA,MAAM,EAAE;AAFQ,GANa;AAU/BtB,EAAAA,eAAe,EAAE,EACf,GAAGmB,wBAAWE;AADC,GAVc;AAa/BvB,EAAAA,IAAI,EAAE;AACJyB,IAAAA,IAAI,EAAE,CADF;AAEJD,IAAAA,MAAM,EAAE,CAFJ;AAGJE,IAAAA,QAAQ,EAAE;AAHN,GAbyB;AAkB/B5C,EAAAA,OAAO,EAAE,EACP,GAAGuC,wBAAWE,kBADP;AAEPC,IAAAA,MAAM,EAAE;AAFD;AAlBsB,CAAlB,CAAf","sourcesContent":["// This component is based on RN's DrawerLayoutAndroid API\r\n//\r\n// It perhaps deserves to be put in a separate repo, but since it relies on\r\n// react-native-gesture-handler library which isn't very popular at the moment I\r\n// decided to keep it here for the time being. It will allow us to move faster\r\n// and fix issues that may arise in gesture handler library that could be found\r\n// when using the drawer component\r\n\r\nimport * as React from 'react';\r\nimport { Component } from 'react';\r\nimport invariant from 'invariant';\r\nimport {\r\n Animated,\r\n StyleSheet,\r\n View,\r\n Keyboard,\r\n StatusBar,\r\n I18nManager,\r\n StatusBarAnimation,\r\n StyleProp,\r\n ViewStyle,\r\n LayoutChangeEvent,\r\n NativeSyntheticEvent,\r\n} from 'react-native';\r\n\r\nimport {\r\n GestureEvent,\r\n HandlerStateChangeEvent,\r\n UserSelect,\r\n ActiveCursor,\r\n} from '../handlers/gestureHandlerCommon';\r\nimport {\r\n PanGestureHandler,\r\n PanGestureHandlerEventPayload,\r\n} from '../handlers/PanGestureHandler';\r\nimport {\r\n TapGestureHandler,\r\n TapGestureHandlerEventPayload,\r\n} from '../handlers/TapGestureHandler';\r\nimport { State } from '../State';\r\n\r\nconst DRAG_TOSS = 0.05;\r\n\r\nconst IDLE: DrawerState = 'Idle';\r\nconst DRAGGING: DrawerState = 'Dragging';\r\nconst SETTLING: DrawerState = 'Settling';\r\n\r\nexport type DrawerPosition = 'left' | 'right';\r\n\r\nexport type DrawerState = 'Idle' | 'Dragging' | 'Settling';\r\n\r\nexport type DrawerType = 'front' | 'back' | 'slide';\r\n\r\nexport type DrawerLockMode = 'unlocked' | 'locked-closed' | 'locked-open';\r\n\r\nexport type DrawerKeyboardDismissMode = 'none' | 'on-drag';\r\n\r\n// Animated.AnimatedInterpolation has been converted to a generic type\r\n// in @types/react-native 0.70. This way we can maintain compatibility\r\n// with all versions of @types/react-native`\r\ntype AnimatedInterpolation = ReturnType<Animated.Value['interpolate']>;\r\nexport interface DrawerLayoutProps {\r\n /**\r\n * This attribute is present in the standard implementation already and is one\r\n * of the required params. Gesture handler version of DrawerLayout make it\r\n * possible for the function passed as `renderNavigationView` to take an\r\n * Animated value as a parameter that indicates the progress of drawer\r\n * opening/closing animation (progress value is 0 when closed and 1 when\r\n * opened). This can be used by the drawer component to animated its children\r\n * while the drawer is opening or closing.\r\n */\r\n renderNavigationView: (\r\n progressAnimatedValue: Animated.Value\r\n ) => React.ReactNode;\r\n\r\n drawerPosition?: DrawerPosition;\r\n\r\n drawerWidth?: number;\r\n\r\n drawerBackgroundColor?: string;\r\n\r\n drawerLockMode?: DrawerLockMode;\r\n\r\n keyboardDismissMode?: DrawerKeyboardDismissMode;\r\n\r\n /**\r\n * Called when the drawer is closed.\r\n */\r\n onDrawerClose?: () => void;\r\n\r\n /**\r\n * Called when the drawer is opened.\r\n */\r\n onDrawerOpen?: () => void;\r\n\r\n /**\r\n * Called when the status of the drawer changes.\r\n */\r\n onDrawerStateChanged?: (\r\n newState: DrawerState,\r\n drawerWillShow: boolean\r\n ) => void;\r\n useNativeAnimations?: boolean;\r\n\r\n drawerType?: DrawerType;\r\n\r\n /**\r\n * Defines how far from the edge of the content view the gesture should\r\n * activate.\r\n */\r\n edgeWidth?: number;\r\n\r\n minSwipeDistance?: number;\r\n\r\n /**\r\n * When set to true Drawer component will use\r\n * {@link https://reactnative.dev/docs/statusbar StatusBar} API to hide the OS\r\n * status bar whenever the drawer is pulled or when its in an \"open\" state.\r\n */\r\n hideStatusBar?: boolean;\r\n\r\n /**\r\n * @default 'slide'\r\n *\r\n * Can be used when hideStatusBar is set to true and will select the animation\r\n * used for hiding/showing the status bar. See\r\n * {@link https://reactnative.dev/docs/statusbar StatusBar} documentation for\r\n * more details\r\n */\r\n statusBarAnimation?: StatusBarAnimation;\r\n\r\n /**\r\n * @default black\r\n *\r\n * Color of a semi-transparent overlay to be displayed on top of the content\r\n * view when drawer gets open. A solid color should be used as the opacity is\r\n * added by the Drawer itself and the opacity of the overlay is animated (from\r\n * 0% to 70%).\r\n */\r\n overlayColor?: string;\r\n\r\n contentContainerStyle?: StyleProp<ViewStyle>;\r\n\r\n drawerContainerStyle?: StyleProp<ViewStyle>;\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 onDrawerSlide?: (position: number) => void;\r\n\r\n onGestureRef?: (ref: PanGestureHandler) => void;\r\n\r\n // implicit `children` prop has been removed in @types/react^18.0.0\r\n children?:\r\n | React.ReactNode\r\n | ((openValue?: AnimatedInterpolation) => React.ReactNode);\r\n\r\n /**\r\n * @default 'none'\r\n * Defines which userSelect property should be used.\r\n * Values: 'none'|'text'|'auto'\r\n */\r\n userSelect?: UserSelect;\r\n\r\n /**\r\n * @default 'auto'\r\n * Defines which cursor property should be used when gesture activates.\r\n * Values: see CSS cursor values\r\n */\r\n activeCursor?: ActiveCursor;\r\n}\r\n\r\nexport type DrawerLayoutState = {\r\n dragX: Animated.Value;\r\n touchX: Animated.Value;\r\n drawerTranslation: Animated.Value;\r\n containerWidth: number;\r\n drawerState: DrawerState;\r\n drawerOpened: boolean;\r\n};\r\n\r\nexport type DrawerMovementOption = {\r\n velocity?: number;\r\n speed?: number;\r\n};\r\nexport default class DrawerLayout extends Component<\r\n DrawerLayoutProps,\r\n DrawerLayoutState\r\n> {\r\n static defaultProps = {\r\n drawerWidth: 200,\r\n drawerPosition: 'left',\r\n useNativeAnimations: true,\r\n drawerType: 'front',\r\n edgeWidth: 20,\r\n minSwipeDistance: 3,\r\n overlayColor: 'rgba(0, 0, 0, 0.7)',\r\n drawerLockMode: 'unlocked',\r\n enableTrackpadTwoFingerGesture: false,\r\n };\r\n\r\n constructor(props: DrawerLayoutProps) {\r\n super(props);\r\n\r\n const dragX = new Animated.Value(0);\r\n const touchX = new Animated.Value(0);\r\n const drawerTranslation = new Animated.Value(0);\r\n\r\n this.state = {\r\n dragX,\r\n touchX,\r\n drawerTranslation,\r\n containerWidth: 0,\r\n drawerState: IDLE,\r\n drawerOpened: false,\r\n };\r\n\r\n this.updateAnimatedEvent(props, this.state);\r\n }\r\n\r\n shouldComponentUpdate(props: DrawerLayoutProps, state: DrawerLayoutState) {\r\n if (\r\n this.props.drawerPosition !== props.drawerPosition ||\r\n this.props.drawerWidth !== props.drawerWidth ||\r\n this.props.drawerType !== props.drawerType ||\r\n this.state.containerWidth !== state.containerWidth\r\n ) {\r\n this.updateAnimatedEvent(props, state);\r\n }\r\n\r\n return true;\r\n }\r\n\r\n private openValue?: AnimatedInterpolation;\r\n private onGestureEvent?: (\r\n event: GestureEvent<PanGestureHandlerEventPayload>\r\n ) => void;\r\n private accessibilityIsModalView = React.createRef<View>();\r\n private pointerEventsView = React.createRef<View>();\r\n private panGestureHandler = React.createRef<PanGestureHandler | null>();\r\n private drawerShown = false;\r\n\r\n static positions = {\r\n Left: 'left',\r\n Right: 'right',\r\n };\r\n\r\n private updateAnimatedEvent = (\r\n props: DrawerLayoutProps,\r\n state: DrawerLayoutState\r\n ) => {\r\n // Event definition is based on\r\n const { drawerPosition, drawerWidth, drawerType } = props;\r\n const {\r\n dragX: dragXValue,\r\n touchX: touchXValue,\r\n drawerTranslation,\r\n containerWidth,\r\n } = state;\r\n\r\n let dragX = dragXValue;\r\n let touchX = touchXValue;\r\n\r\n if (drawerPosition !== 'left') {\r\n // Most of the code is written in a way to handle left-side drawer. In\r\n // order to handle right-side drawer the only thing we need to do is to\r\n // reverse events coming from gesture handler in a way they emulate\r\n // left-side drawer gestures. E.g. dragX is simply -dragX, and touchX is\r\n // calulcated by subtracing real touchX from the width of the container\r\n // (such that when touch happens at the right edge the value is simply 0)\r\n dragX = Animated.multiply(\r\n new Animated.Value(-1),\r\n dragXValue\r\n ) as Animated.Value; // TODO(TS): (for all \"as\" in this file) make sure we can map this\r\n touchX = Animated.add(\r\n new Animated.Value(containerWidth),\r\n Animated.multiply(new Animated.Value(-1), touchXValue)\r\n ) as Animated.Value; // TODO(TS): make sure we can map this;\r\n touchXValue.setValue(containerWidth);\r\n } else {\r\n touchXValue.setValue(0);\r\n }\r\n\r\n // While closing the drawer when user starts gesture outside of its area (in greyed\r\n // out part of the window), we want the drawer to follow only once finger reaches the\r\n // edge of the drawer.\r\n // E.g. on the diagram below drawer is illustrate by X signs and the greyed out area by\r\n // dots. The touch gesture starts at '*' and moves left, touch path is indicated by\r\n // an arrow pointing left\r\n // 1) +---------------+ 2) +---------------+ 3) +---------------+ 4) +---------------+\r\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\r\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\r\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\r\n // |XXXXXXXX|......| |XXXXXXXX|.<-*..| |XXXXXXXX|<--*..| |XXXXX|<-----*..|\r\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\r\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\r\n // |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|\r\n // +---------------+ +---------------+ +---------------+ +---------------+\r\n //\r\n // For the above to work properly we define animated value that will keep\r\n // start position of the gesture. Then we use that value to calculate how\r\n // much we need to subtract from the dragX. If the gesture started on the\r\n // greyed out area we take the distance from the edge of the drawer to the\r\n // start position. Otherwise we don't subtract at all and the drawer be\r\n // pulled back as soon as you start the pan.\r\n //\r\n // This is used only when drawerType is \"front\"\r\n //\r\n let translationX = dragX;\r\n if (drawerType === 'front') {\r\n const startPositionX = Animated.add(\r\n touchX,\r\n Animated.multiply(new Animated.Value(-1), dragX)\r\n );\r\n\r\n const dragOffsetFromOnStartPosition = startPositionX.interpolate({\r\n inputRange: [drawerWidth! - 1, drawerWidth!, drawerWidth! + 1],\r\n outputRange: [0, 0, 1],\r\n });\r\n translationX = Animated.add(\r\n dragX,\r\n dragOffsetFromOnStartPosition\r\n ) as Animated.Value; // TODO: as above\r\n }\r\n\r\n this.openValue = Animated.add(translationX, drawerTranslation).interpolate({\r\n inputRange: [0, drawerWidth!],\r\n outputRange: [0, 1],\r\n extrapolate: 'clamp',\r\n });\r\n\r\n const gestureOptions: {\r\n useNativeDriver: boolean;\r\n // TODO: make sure it is correct\r\n listener?: (\r\n ev: NativeSyntheticEvent<PanGestureHandlerEventPayload>\r\n ) => void;\r\n } = {\r\n useNativeDriver: props.useNativeAnimations!,\r\n };\r\n\r\n if (this.props.onDrawerSlide) {\r\n gestureOptions.listener = (ev) => {\r\n const translationX = Math.floor(Math.abs(ev.nativeEvent.translationX));\r\n const position = translationX / this.state.containerWidth;\r\n\r\n this.props.onDrawerSlide?.(position);\r\n };\r\n }\r\n\r\n this.onGestureEvent = Animated.event(\r\n [{ nativeEvent: { translationX: dragXValue, x: touchXValue } }],\r\n gestureOptions\r\n );\r\n };\r\n\r\n private handleContainerLayout = ({ nativeEvent }: LayoutChangeEvent) => {\r\n this.setState({ containerWidth: nativeEvent.layout.width });\r\n };\r\n\r\n private emitStateChanged = (\r\n newState: DrawerState,\r\n drawerWillShow: boolean\r\n ) => {\r\n this.props.onDrawerStateChanged?.(newState, drawerWillShow);\r\n };\r\n\r\n private openingHandlerStateChange = ({\r\n nativeEvent,\r\n }: HandlerStateChangeEvent<PanGestureHandlerEventPayload>) => {\r\n if (nativeEvent.oldState === State.ACTIVE) {\r\n this.handleRelease({ nativeEvent });\r\n } else if (nativeEvent.state === State.ACTIVE) {\r\n this.emitStateChanged(DRAGGING, false);\r\n this.setState({ drawerState: DRAGGING });\r\n if (this.props.keyboardDismissMode === 'on-drag') {\r\n Keyboard.dismiss();\r\n }\r\n if (this.props.hideStatusBar) {\r\n StatusBar.setHidden(true, this.props.statusBarAnimation || 'slide');\r\n }\r\n }\r\n };\r\n\r\n private onTapHandlerStateChange = ({\r\n nativeEvent,\r\n }: HandlerStateChangeEvent<TapGestureHandlerEventPayload>) => {\r\n if (\r\n this.drawerShown &&\r\n nativeEvent.oldState === State.ACTIVE &&\r\n this.props.drawerLockMode !== 'locked-open'\r\n ) {\r\n this.closeDrawer();\r\n }\r\n };\r\n\r\n private handleRelease = ({\r\n nativeEvent,\r\n }: HandlerStateChangeEvent<PanGestureHandlerEventPayload>) => {\r\n const { drawerWidth, drawerPosition, drawerType } = this.props;\r\n const { containerWidth } = this.state;\r\n let { translationX: dragX, velocityX, x: touchX } = nativeEvent;\r\n\r\n if (drawerPosition !== 'left') {\r\n // See description in _updateAnimatedEvent about why events are flipped\r\n // for right-side drawer\r\n dragX = -dragX;\r\n touchX = containerWidth - touchX;\r\n velocityX = -velocityX;\r\n }\r\n\r\n const gestureStartX = touchX - dragX;\r\n let dragOffsetBasedOnStart = 0;\r\n\r\n if (drawerType === 'front') {\r\n dragOffsetBasedOnStart =\r\n gestureStartX > drawerWidth! ? gestureStartX - drawerWidth! : 0;\r\n }\r\n\r\n const startOffsetX =\r\n dragX + dragOffsetBasedOnStart + (this.drawerShown ? drawerWidth! : 0);\r\n const projOffsetX = startOffsetX + DRAG_TOSS * velocityX;\r\n\r\n const shouldOpen = projOffsetX > drawerWidth! / 2;\r\n\r\n if (shouldOpen) {\r\n this.animateDrawer(startOffsetX, drawerWidth!, velocityX);\r\n } else {\r\n this.animateDrawer(startOffsetX, 0, velocityX);\r\n }\r\n };\r\n\r\n private updateShowing = (showing: boolean) => {\r\n this.drawerShown = showing;\r\n this.accessibilityIsModalView.current?.setNativeProps({\r\n accessibilityViewIsModal: showing,\r\n });\r\n this.pointerEventsView.current?.setNativeProps({\r\n pointerEvents: showing ? 'auto' : 'none',\r\n });\r\n const { drawerPosition, minSwipeDistance, edgeWidth } = this.props;\r\n const fromLeft = drawerPosition === 'left';\r\n // gestureOrientation is 1 if the expected gesture is from left to right and\r\n // -1 otherwise e.g. when drawer is on the left and is closed we expect left\r\n // to right gesture, thus orientation will be 1.\r\n const gestureOrientation =\r\n (fromLeft ? 1 : -1) * (this.drawerShown ? -1 : 1);\r\n // When drawer is closed we want the hitSlop to be horizontally shorter than\r\n // the container size by the value of SLOP. This will make it only activate\r\n // when gesture happens not further than SLOP away from the edge\r\n const hitSlop = fromLeft\r\n ? { left: 0, width: showing ? undefined : edgeWidth }\r\n : { right: 0, width: showing ? undefined : edgeWidth };\r\n // @ts-ignore internal API, maybe could be fixed in handler types\r\n this.panGestureHandler.current?.setNativeProps({\r\n hitSlop,\r\n activeOffsetX: gestureOrientation * minSwipeDistance!,\r\n });\r\n };\r\n\r\n private animateDrawer = (\r\n fromValue: number | null | undefined,\r\n toValue: number,\r\n velocity: number,\r\n speed?: number\r\n ) => {\r\n this.state.dragX.setValue(0);\r\n this.state.touchX.setValue(\r\n this.props.drawerPosition === 'left' ? 0 : this.state.containerWidth\r\n );\r\n\r\n if (fromValue != null) {\r\n let nextFramePosition = fromValue;\r\n if (this.props.useNativeAnimations) {\r\n // When using native driver, we predict the next position of the\r\n // animation because it takes one frame of a roundtrip to pass RELEASE\r\n // event from native driver to JS before we can start animating. Without\r\n // it, it is more noticable that the frame is dropped.\r\n if (fromValue < toValue && velocity > 0) {\r\n nextFramePosition = Math.min(fromValue + velocity / 60.0, toValue);\r\n } else if (fromValue > toValue && velocity < 0) {\r\n nextFramePosition = Math.max(fromValue + velocity / 60.0, toValue);\r\n }\r\n }\r\n this.state.drawerTranslation.setValue(nextFramePosition);\r\n }\r\n\r\n const willShow = toValue !== 0;\r\n this.updateShowing(willShow);\r\n this.emitStateChanged(SETTLING, willShow);\r\n this.setState({ drawerState: SETTLING });\r\n if (this.props.hideStatusBar) {\r\n StatusBar.setHidden(willShow, this.props.statusBarAnimation || 'slide');\r\n }\r\n Animated.spring(this.state.drawerTranslation, {\r\n velocity,\r\n bounciness: 0,\r\n toValue,\r\n useNativeDriver: this.props.useNativeAnimations!,\r\n speed: speed ?? undefined,\r\n }).start(({ finished }) => {\r\n if (finished) {\r\n this.emitStateChanged(IDLE, willShow);\r\n this.setState({ drawerOpened: willShow });\r\n if (this.state.drawerState !== DRAGGING) {\r\n // it's possilbe that user started drag while the drawer\r\n // was settling, don't override state in this case\r\n this.setState({ drawerState: IDLE });\r\n }\r\n if (willShow) {\r\n this.props.onDrawerOpen?.();\r\n } else {\r\n this.props.onDrawerClose?.();\r\n }\r\n }\r\n });\r\n };\r\n\r\n openDrawer = (options: DrawerMovementOption = {}) => {\r\n this.animateDrawer(\r\n // TODO: decide if it should be null or undefined is the proper value\r\n undefined,\r\n this.props.drawerWidth!,\r\n options.velocity ? options.velocity : 0,\r\n options.speed\r\n );\r\n\r\n // We need to force the update, otherwise the overlay is not rerendered and\r\n // it would not be clickable\r\n this.forceUpdate();\r\n };\r\n\r\n closeDrawer = (options: DrawerMovementOption = {}) => {\r\n // TODO: decide if it should be null or undefined is the proper value\r\n this.animateDrawer(\r\n undefined,\r\n 0,\r\n options.velocity ? options.velocity : 0,\r\n options.speed\r\n );\r\n\r\n // We need to force the update, otherwise the overlay is not rerendered and\r\n // it would be still clickable\r\n this.forceUpdate();\r\n };\r\n\r\n private renderOverlay = () => {\r\n /* Overlay styles */\r\n invariant(this.openValue, 'should be set');\r\n let overlayOpacity;\r\n\r\n if (this.state.drawerState !== IDLE) {\r\n overlayOpacity = this.openValue;\r\n } else {\r\n overlayOpacity = this.state.drawerOpened ? 1 : 0;\r\n }\r\n\r\n const dynamicOverlayStyles = {\r\n opacity: overlayOpacity,\r\n backgroundColor: this.props.overlayColor,\r\n };\r\n\r\n return (\r\n <TapGestureHandler onHandlerStateChange={this.onTapHandlerStateChange}>\r\n <Animated.View\r\n pointerEvents={this.drawerShown ? 'auto' : 'none'}\r\n ref={this.pointerEventsView}\r\n style={[styles.overlay, dynamicOverlayStyles]}\r\n />\r\n </TapGestureHandler>\r\n );\r\n };\r\n\r\n private renderDrawer = () => {\r\n const {\r\n drawerBackgroundColor,\r\n drawerWidth,\r\n drawerPosition,\r\n drawerType,\r\n drawerContainerStyle,\r\n contentContainerStyle,\r\n } = this.props;\r\n\r\n const fromLeft = drawerPosition === 'left';\r\n const drawerSlide = drawerType !== 'back';\r\n const containerSlide = drawerType !== 'front';\r\n\r\n // we rely on row and row-reverse flex directions to position the drawer\r\n // properly. Apparently for RTL these are flipped which requires us to use\r\n // the opposite setting for the drawer to appear from left or right\r\n // according to the drawerPosition prop\r\n const reverseContentDirection = I18nManager.isRTL ? fromLeft : !fromLeft;\r\n\r\n const dynamicDrawerStyles = {\r\n backgroundColor: drawerBackgroundColor,\r\n width: drawerWidth,\r\n };\r\n const openValue = this.openValue;\r\n invariant(openValue, 'should be set');\r\n\r\n let containerStyles;\r\n if (containerSlide) {\r\n const containerTranslateX = openValue.interpolate({\r\n inputRange: [0, 1],\r\n outputRange: fromLeft ? [0, drawerWidth!] : [0, -drawerWidth!],\r\n extrapolate: 'clamp',\r\n });\r\n containerStyles = {\r\n transform: [{ translateX: containerTranslateX }],\r\n };\r\n }\r\n\r\n let drawerTranslateX: number | AnimatedInterpolation = 0;\r\n if (drawerSlide) {\r\n const closedDrawerOffset = fromLeft ? -drawerWidth! : drawerWidth!;\r\n if (this.state.drawerState !== IDLE) {\r\n drawerTranslateX = openValue.interpolate({\r\n inputRange: [0, 1],\r\n outputRange: [closedDrawerOffset, 0],\r\n extrapolate: 'clamp',\r\n });\r\n } else {\r\n drawerTranslateX = this.state.drawerOpened ? 0 : closedDrawerOffset;\r\n }\r\n }\r\n const drawerStyles: {\r\n transform: { translateX: number | AnimatedInterpolation }[];\r\n flexDirection: 'row-reverse' | 'row';\r\n } = {\r\n transform: [{ translateX: drawerTranslateX }],\r\n flexDirection: reverseContentDirection ? 'row-reverse' : 'row',\r\n };\r\n\r\n return (\r\n <Animated.View style={styles.main} onLayout={this.handleContainerLayout}>\r\n <Animated.View\r\n style={[\r\n drawerType === 'front'\r\n ? styles.containerOnBack\r\n : styles.containerInFront,\r\n containerStyles,\r\n contentContainerStyle,\r\n ]}\r\n importantForAccessibility={\r\n this.drawerShown ? 'no-hide-descendants' : 'yes'\r\n }>\r\n {typeof this.props.children === 'function'\r\n ? this.props.children(this.openValue)\r\n : this.props.children}\r\n {this.renderOverlay()}\r\n </Animated.View>\r\n <Animated.View\r\n pointerEvents=\"box-none\"\r\n ref={this.accessibilityIsModalView}\r\n accessibilityViewIsModal={this.drawerShown}\r\n style={[styles.drawerContainer, drawerStyles, drawerContainerStyle]}>\r\n <View style={dynamicDrawerStyles}>\r\n {this.props.renderNavigationView(this.openValue as Animated.Value)}\r\n </View>\r\n </Animated.View>\r\n </Animated.View>\r\n );\r\n };\r\n\r\n private setPanGestureRef = (ref: PanGestureHandler) => {\r\n // TODO(TS): make sure it is OK taken from\r\n // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31065#issuecomment-596081842\r\n (\r\n this.panGestureHandler as React.MutableRefObject<PanGestureHandler>\r\n ).current = ref;\r\n this.props.onGestureRef?.(ref);\r\n };\r\n\r\n render() {\r\n const { drawerPosition, drawerLockMode, edgeWidth, minSwipeDistance } =\r\n this.props;\r\n\r\n const fromLeft = drawerPosition === 'left';\r\n\r\n // gestureOrientation is 1 if the expected gesture is from left to right and\r\n // -1 otherwise e.g. when drawer is on the left and is closed we expect left\r\n // to right gesture, thus orientation will be 1.\r\n const gestureOrientation =\r\n (fromLeft ? 1 : -1) * (this.drawerShown ? -1 : 1);\r\n\r\n // When drawer is closed we want the hitSlop to be horizontally shorter than\r\n // the container size by the value of SLOP. This will make it only activate\r\n // when gesture happens not further than SLOP away from the edge\r\n const hitSlop = fromLeft\r\n ? { left: 0, width: this.drawerShown ? undefined : edgeWidth }\r\n : { right: 0, width: this.drawerShown ? undefined : edgeWidth };\r\n\r\n return (\r\n <PanGestureHandler\r\n // @ts-ignore could be fixed in handler types\r\n userSelect={this.props.userSelect}\r\n activeCursor={this.props.activeCursor}\r\n ref={this.setPanGestureRef}\r\n hitSlop={hitSlop}\r\n activeOffsetX={gestureOrientation * minSwipeDistance!}\r\n failOffsetY={[-15, 15]}\r\n onGestureEvent={this.onGestureEvent}\r\n onHandlerStateChange={this.openingHandlerStateChange}\r\n enableTrackpadTwoFingerGesture={\r\n this.props.enableTrackpadTwoFingerGesture\r\n }\r\n enabled={\r\n drawerLockMode !== 'locked-closed' && drawerLockMode !== 'locked-open'\r\n }>\r\n {this.renderDrawer()}\r\n </PanGestureHandler>\r\n );\r\n }\r\n}\r\n\r\nconst styles = StyleSheet.create({\r\n drawerContainer: {\r\n ...StyleSheet.absoluteFillObject,\r\n zIndex: 1001,\r\n flexDirection: 'row',\r\n },\r\n containerInFront: {\r\n ...StyleSheet.absoluteFillObject,\r\n zIndex: 1002,\r\n },\r\n containerOnBack: {\r\n ...StyleSheet.absoluteFillObject,\r\n },\r\n main: {\r\n flex: 1,\r\n zIndex: 0,\r\n overflow: 'hidden',\r\n },\r\n overlay: {\r\n ...StyleSheet.absoluteFillObject,\r\n zIndex: 1000,\r\n },\r\n});\r\n"]}
|
@@ -1,115 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.FlatList = exports.DrawerLayoutAndroid = exports.TextInput = exports.Switch = exports.ScrollView = exports.RefreshControl = void 0;
|
7
|
-
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
9
|
-
|
10
|
-
var _reactNative = require("react-native");
|
11
|
-
|
12
|
-
var _createNativeWrapper = _interopRequireDefault(require("../handlers/createNativeWrapper"));
|
13
|
-
|
14
|
-
var _NativeViewGestureHandler = require("../handlers/NativeViewGestureHandler");
|
15
|
-
|
16
|
-
var _utils = require("../utils");
|
17
|
-
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
-
|
20
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
21
|
-
|
22
|
-
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; }
|
23
|
-
|
24
|
-
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); }
|
25
|
-
|
26
|
-
const RefreshControl = (0, _createNativeWrapper.default)(_reactNative.RefreshControl, {
|
27
|
-
disallowInterruption: true,
|
28
|
-
shouldCancelWhenOutside: false
|
29
|
-
}); // eslint-disable-next-line @typescript-eslint/no-redeclare
|
30
|
-
|
31
|
-
exports.RefreshControl = RefreshControl;
|
32
|
-
const GHScrollView = (0, _createNativeWrapper.default)(_reactNative.ScrollView, {
|
33
|
-
disallowInterruption: true,
|
34
|
-
shouldCancelWhenOutside: false
|
35
|
-
});
|
36
|
-
const ScrollView = /*#__PURE__*/React.forwardRef((props, ref) => {
|
37
|
-
const refreshControlGestureRef = React.useRef(null);
|
38
|
-
const {
|
39
|
-
refreshControl,
|
40
|
-
waitFor,
|
41
|
-
...rest
|
42
|
-
} = props;
|
43
|
-
return /*#__PURE__*/React.createElement(GHScrollView, _extends({}, rest, {
|
44
|
-
// @ts-ignore `ref` exists on `GHScrollView`
|
45
|
-
ref: ref,
|
46
|
-
waitFor: [...(0, _utils.toArray)(waitFor !== null && waitFor !== void 0 ? waitFor : []), refreshControlGestureRef] // @ts-ignore we don't pass `refreshing` prop as we only want to override the ref
|
47
|
-
,
|
48
|
-
refreshControl: refreshControl ? /*#__PURE__*/React.cloneElement(refreshControl, {
|
49
|
-
// @ts-ignore for reasons unknown to me, `ref` doesn't exist on the type inferred by TS
|
50
|
-
ref: refreshControlGestureRef
|
51
|
-
}) : undefined
|
52
|
-
}));
|
53
|
-
}); // backward type compatibility with https://github.com/software-mansion/react-native-gesture-handler/blob/db78d3ca7d48e8ba57482d3fe9b0a15aa79d9932/react-native-gesture-handler.d.ts#L440-L457
|
54
|
-
// include methods of wrapped components by creating an intersection type with the RN component instead of duplicating them.
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
56
|
-
|
57
|
-
exports.ScrollView = ScrollView;
|
58
|
-
const Switch = (0, _createNativeWrapper.default)(_reactNative.Switch, {
|
59
|
-
shouldCancelWhenOutside: false,
|
60
|
-
shouldActivateOnStart: true,
|
61
|
-
disallowInterruption: true
|
62
|
-
}); // eslint-disable-next-line @typescript-eslint/no-redeclare
|
63
|
-
|
64
|
-
exports.Switch = Switch;
|
65
|
-
const TextInput = (0, _createNativeWrapper.default)(_reactNative.TextInput); // eslint-disable-next-line @typescript-eslint/no-redeclare
|
66
|
-
|
67
|
-
exports.TextInput = TextInput;
|
68
|
-
const DrawerLayoutAndroid = (0, _createNativeWrapper.default)(_reactNative.DrawerLayoutAndroid, {
|
69
|
-
disallowInterruption: true
|
70
|
-
}); // eslint-disable-next-line @typescript-eslint/no-redeclare
|
71
|
-
|
72
|
-
exports.DrawerLayoutAndroid = DrawerLayoutAndroid;
|
73
|
-
const FlatList = /*#__PURE__*/React.forwardRef((props, ref) => {
|
74
|
-
const refreshControlGestureRef = React.useRef(null);
|
75
|
-
const {
|
76
|
-
waitFor,
|
77
|
-
refreshControl,
|
78
|
-
...rest
|
79
|
-
} = props;
|
80
|
-
const flatListProps = {};
|
81
|
-
const scrollViewProps = {};
|
82
|
-
|
83
|
-
for (const [propName, value] of Object.entries(rest)) {
|
84
|
-
// https://github.com/microsoft/TypeScript/issues/26255
|
85
|
-
if (_NativeViewGestureHandler.nativeViewProps.includes(propName)) {
|
86
|
-
// @ts-ignore - this function cannot have generic type so we have to ignore this error
|
87
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
88
|
-
scrollViewProps[propName] = value;
|
89
|
-
} else {
|
90
|
-
// @ts-ignore - this function cannot have generic type so we have to ignore this error
|
91
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
92
|
-
flatListProps[propName] = value;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
return (
|
97
|
-
/*#__PURE__*/
|
98
|
-
// @ts-ignore - this function cannot have generic type so we have to ignore this error
|
99
|
-
React.createElement(_reactNative.FlatList, _extends({
|
100
|
-
ref: ref
|
101
|
-
}, flatListProps, {
|
102
|
-
renderScrollComponent: scrollProps => /*#__PURE__*/React.createElement(ScrollView, _extends({}, scrollProps, scrollViewProps, {
|
103
|
-
waitFor: [...(0, _utils.toArray)(waitFor !== null && waitFor !== void 0 ? waitFor : []), refreshControlGestureRef]
|
104
|
-
})) // @ts-ignore we don't pass `refreshing` prop as we only want to override the ref
|
105
|
-
,
|
106
|
-
refreshControl: refreshControl ? /*#__PURE__*/React.cloneElement(refreshControl, {
|
107
|
-
// @ts-ignore for reasons unknown to me, `ref` doesn't exist on the type inferred by TS
|
108
|
-
ref: refreshControlGestureRef
|
109
|
-
}) : undefined
|
110
|
-
}))
|
111
|
-
);
|
112
|
-
}); // eslint-disable-next-line @typescript-eslint/no-redeclare
|
113
|
-
|
114
|
-
exports.FlatList = FlatList;
|
115
|
-
//# sourceMappingURL=GestureComponents.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["GestureComponents.tsx"],"names":["RefreshControl","RNRefreshControl","disallowInterruption","shouldCancelWhenOutside","GHScrollView","RNScrollView","ScrollView","React","forwardRef","props","ref","refreshControlGestureRef","useRef","refreshControl","waitFor","rest","cloneElement","undefined","Switch","RNSwitch","shouldActivateOnStart","TextInput","RNTextInput","DrawerLayoutAndroid","RNDrawerLayoutAndroid","FlatList","flatListProps","scrollViewProps","propName","value","Object","entries","nativeViewProps","includes","scrollProps"],"mappings":";;;;;;;AAAA;;AAOA;;AAcA;;AAEA;;AAKA;;;;;;;;;;AAEO,MAAMA,cAAc,GAAG,kCAAoBC,2BAApB,EAAsC;AAClEC,EAAAA,oBAAoB,EAAE,IAD4C;AAElEC,EAAAA,uBAAuB,EAAE;AAFyC,CAAtC,CAAvB,C,CAIP;;;AAGA,MAAMC,YAAY,GAAG,kCACnBC,uBADmB,EAEnB;AACEH,EAAAA,oBAAoB,EAAE,IADxB;AAEEC,EAAAA,uBAAuB,EAAE;AAF3B,CAFmB,CAArB;AAOO,MAAMG,UAAU,gBAAGC,KAAK,CAACC,UAAN,CAGxB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChB,QAAMC,wBAAwB,GAAGJ,KAAK,CAACK,MAAN,CAA6B,IAA7B,CAAjC;AACA,QAAM;AAAEC,IAAAA,cAAF;AAAkBC,IAAAA,OAAlB;AAA2B,OAAGC;AAA9B,MAAuCN,KAA7C;AAEA,sBACE,oBAAC,YAAD,eACMM,IADN;AAEE;AACA,IAAA,GAAG,EAAEL,GAHP;AAIE,IAAA,OAAO,EAAE,CAAC,GAAG,oBAAQI,OAAR,aAA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ACE,QAAD,CAAb,GAA0BC,KAA1B;AACD;AACF;;AAED;AAAA;AACE;AACA,wBAAC,qBAAD;AACE,MAAA,GAAG,EAAEnB;AADP,OAEMgB,aAFN;AAGE,MAAA,qBAAqB,EAAGQ,WAAD,iBACrB,oBAAC,UAAD,eAEOA,WAFP,EAGOP,eAHP;AAIIb,QAAAA,OAAO,EAAE,CAAC,GAAG,oBAAQA,OAAR,aAAQA,OAAR,cAAQA,OAAR,GAAmB,EAAnB,CAAJ,EAA4BH,wBAA5B;AAJb,SAJJ,CAYE;AAZF;AAaE,MAAA,cAAc,EACZE,cAAc,gBACVN,KAAK,CAACS,YAAN,CAAmBH,cAAnB,EAAmC;AACjC;AACAH,QAAAA,GAAG,EAAEC;AAF4B,OAAnC,CADU,GAKVM;AAnBR;AAFF;AAyBD,CA7CuB,CAAjB,C,CAqDP","sourcesContent":["import * as React from 'react';\r\nimport {\r\n PropsWithChildren,\r\n ForwardedRef,\r\n RefAttributes,\r\n ReactElement,\r\n} from 'react';\r\nimport {\r\n ScrollView as RNScrollView,\r\n ScrollViewProps as RNScrollViewProps,\r\n Switch as RNSwitch,\r\n SwitchProps as RNSwitchProps,\r\n TextInput as RNTextInput,\r\n TextInputProps as RNTextInputProps,\r\n DrawerLayoutAndroid as RNDrawerLayoutAndroid,\r\n DrawerLayoutAndroidProps as RNDrawerLayoutAndroidProps,\r\n FlatList as RNFlatList,\r\n FlatListProps as RNFlatListProps,\r\n RefreshControl as RNRefreshControl,\r\n} from 'react-native';\r\n\r\nimport createNativeWrapper from '../handlers/createNativeWrapper';\r\n\r\nimport {\r\n NativeViewGestureHandlerProps,\r\n nativeViewProps,\r\n} from '../handlers/NativeViewGestureHandler';\r\n\r\nimport { toArray } from '../utils';\r\n\r\nexport const RefreshControl = createNativeWrapper(RNRefreshControl, {\r\n disallowInterruption: true,\r\n shouldCancelWhenOutside: false,\r\n});\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport type RefreshControl = typeof RefreshControl & RNRefreshControl;\r\n\r\nconst GHScrollView = createNativeWrapper<PropsWithChildren<RNScrollViewProps>>(\r\n RNScrollView,\r\n {\r\n disallowInterruption: true,\r\n shouldCancelWhenOutside: false,\r\n }\r\n);\r\nexport const ScrollView = React.forwardRef<\r\n RNScrollView,\r\n RNScrollViewProps & NativeViewGestureHandlerProps\r\n>((props, ref) => {\r\n const refreshControlGestureRef = React.useRef<RefreshControl>(null);\r\n const { refreshControl, waitFor, ...rest } = props;\r\n\r\n return (\r\n <GHScrollView\r\n {...rest}\r\n // @ts-ignore `ref` exists on `GHScrollView`\r\n ref={ref}\r\n waitFor={[...toArray(waitFor ?? []), refreshControlGestureRef]}\r\n // @ts-ignore we don't pass `refreshing` prop as we only want to override the ref\r\n refreshControl={\r\n refreshControl\r\n ? React.cloneElement(refreshControl, {\r\n // @ts-ignore for reasons unknown to me, `ref` doesn't exist on the type inferred by TS\r\n ref: refreshControlGestureRef,\r\n })\r\n : undefined\r\n }\r\n />\r\n );\r\n});\r\n// backward type compatibility with https://github.com/software-mansion/react-native-gesture-handler/blob/db78d3ca7d48e8ba57482d3fe9b0a15aa79d9932/react-native-gesture-handler.d.ts#L440-L457\r\n// include methods of wrapped components by creating an intersection type with the RN component instead of duplicating them.\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport type ScrollView = typeof GHScrollView & RNScrollView;\r\n\r\nexport const Switch = createNativeWrapper<RNSwitchProps>(RNSwitch, {\r\n shouldCancelWhenOutside: false,\r\n shouldActivateOnStart: true,\r\n disallowInterruption: true,\r\n});\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport type Switch = typeof Switch & RNSwitch;\r\n\r\nexport const TextInput = createNativeWrapper<RNTextInputProps>(RNTextInput);\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport type TextInput = typeof TextInput & RNTextInput;\r\n\r\nexport const DrawerLayoutAndroid = createNativeWrapper<\r\n PropsWithChildren<RNDrawerLayoutAndroidProps>\r\n>(RNDrawerLayoutAndroid, { disallowInterruption: true });\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport type DrawerLayoutAndroid = typeof DrawerLayoutAndroid &\r\n RNDrawerLayoutAndroid;\r\n\r\nexport const FlatList = React.forwardRef((props, ref) => {\r\n const refreshControlGestureRef = React.useRef<RefreshControl>(null);\r\n\r\n const { waitFor, refreshControl, ...rest } = props;\r\n\r\n const flatListProps = {};\r\n const scrollViewProps = {};\r\n for (const [propName, value] of Object.entries(rest)) {\r\n // https://github.com/microsoft/TypeScript/issues/26255\r\n if ((nativeViewProps as readonly string[]).includes(propName)) {\r\n // @ts-ignore - this function cannot have generic type so we have to ignore this error\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\r\n scrollViewProps[propName] = value;\r\n } else {\r\n // @ts-ignore - this function cannot have generic type so we have to ignore this error\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\r\n flatListProps[propName] = value;\r\n }\r\n }\r\n\r\n return (\r\n // @ts-ignore - this function cannot have generic type so we have to ignore this error\r\n <RNFlatList\r\n ref={ref}\r\n {...flatListProps}\r\n renderScrollComponent={(scrollProps) => (\r\n <ScrollView\r\n {...{\r\n ...scrollProps,\r\n ...scrollViewProps,\r\n waitFor: [...toArray(waitFor ?? []), refreshControlGestureRef],\r\n }}\r\n />\r\n )}\r\n // @ts-ignore we don't pass `refreshing` prop as we only want to override the ref\r\n refreshControl={\r\n refreshControl\r\n ? React.cloneElement(refreshControl, {\r\n // @ts-ignore for reasons unknown to me, `ref` doesn't exist on the type inferred by TS\r\n ref: refreshControlGestureRef,\r\n })\r\n : undefined\r\n }\r\n />\r\n );\r\n}) as <ItemT = any>(\r\n props: PropsWithChildren<\r\n RNFlatListProps<ItemT> &\r\n RefAttributes<FlatList<ItemT>> &\r\n NativeViewGestureHandlerProps\r\n >,\r\n ref: ForwardedRef<FlatList<ItemT>>\r\n) => ReactElement | null;\r\n// eslint-disable-next-line @typescript-eslint/no-redeclare\r\nexport type FlatList<ItemT = any> = typeof FlatList & RNFlatList<ItemT>;\r\n"]}
|
@@ -1,52 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.FlatList = exports.RefreshControl = exports.DrawerLayoutAndroid = exports.TextInput = exports.Switch = exports.ScrollView = void 0;
|
7
|
-
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
9
|
-
|
10
|
-
var _reactNative = require("react-native");
|
11
|
-
|
12
|
-
var _createNativeWrapper = _interopRequireDefault(require("../handlers/createNativeWrapper"));
|
13
|
-
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
-
|
16
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
17
|
-
|
18
|
-
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; }
|
19
|
-
|
20
|
-
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); }
|
21
|
-
|
22
|
-
const ScrollView = (0, _createNativeWrapper.default)(_reactNative.ScrollView, {
|
23
|
-
disallowInterruption: false
|
24
|
-
});
|
25
|
-
exports.ScrollView = ScrollView;
|
26
|
-
const Switch = (0, _createNativeWrapper.default)(_reactNative.Switch, {
|
27
|
-
shouldCancelWhenOutside: false,
|
28
|
-
shouldActivateOnStart: true,
|
29
|
-
disallowInterruption: true
|
30
|
-
});
|
31
|
-
exports.Switch = Switch;
|
32
|
-
const TextInput = (0, _createNativeWrapper.default)(_reactNative.TextInput);
|
33
|
-
exports.TextInput = TextInput;
|
34
|
-
|
35
|
-
const DrawerLayoutAndroid = () => {
|
36
|
-
console.warn('DrawerLayoutAndroid is not supported on web!');
|
37
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, null);
|
38
|
-
}; // RefreshControl is implemented as a functional component, rendering a View
|
39
|
-
// NativeViewGestureHandler needs to set a ref on its child, which cannot be done
|
40
|
-
// on functional components
|
41
|
-
|
42
|
-
|
43
|
-
exports.DrawerLayoutAndroid = DrawerLayoutAndroid;
|
44
|
-
const RefreshControl = (0, _createNativeWrapper.default)(_reactNative.View);
|
45
|
-
exports.RefreshControl = RefreshControl;
|
46
|
-
const FlatList = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(_reactNative.FlatList, _extends({
|
47
|
-
ref: ref
|
48
|
-
}, props, {
|
49
|
-
renderScrollComponent: scrollProps => /*#__PURE__*/React.createElement(ScrollView, scrollProps)
|
50
|
-
})));
|
51
|
-
exports.FlatList = FlatList;
|
52
|
-
//# sourceMappingURL=GestureComponents.web.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["GestureComponents.web.tsx"],"names":["ScrollView","RNScrollView","disallowInterruption","Switch","RNSwitch","shouldCancelWhenOutside","shouldActivateOnStart","TextInput","RNTextInput","DrawerLayoutAndroid","console","warn","RefreshControl","View","FlatList","React","forwardRef","props","ref","scrollProps"],"mappings":";;;;;;;AAAA;;AACA;;AASA;;;;;;;;;;AAEO,MAAMA,UAAU,GAAG,kCAAoBC,uBAApB,EAAkC;AAC1DC,EAAAA,oBAAoB,EAAE;AADoC,CAAlC,CAAnB;;AAIA,MAAMC,MAAM,GAAG,kCAAoBC,mBAApB,EAA8B;AAClDC,EAAAA,uBAAuB,EAAE,KADyB;AAElDC,EAAAA,qBAAqB,EAAE,IAF2B;AAGlDJ,EAAAA,oBAAoB,EAAE;AAH4B,CAA9B,CAAf;;AAKA,MAAMK,SAAS,GAAG,kCAAoBC,sBAApB,CAAlB;;;AACA,MAAMC,mBAAmB,GAAG,MAAM;AACvCC,EAAAA,OAAO,CAACC,IAAR,CAAa,8CAAb;AACA,sBAAO,oBAAC,iBAAD,OAAP;AACD,CAHM,C,CAKP;AACA;AACA;;;;AACO,MAAMC,cAAc,GAAG,kCAAoBC,iBAApB,CAAvB;;AAEA,MAAMC,QAAQ,gBAAGC,KAAK,CAACC,UAAN,CACtB,CAAoBC,KAApB,EAAiDC,GAAjD,kBACE,oBAAC,qBAAD;AACE,EAAA,GAAG,EAAEA;AADP,GAEMD,KAFN;AAGE,EAAA,qBAAqB,EAAGE,WAAD,iBAAiB,oBAAC,UAAD,EAAgBA,WAAhB;AAH1C,GAFoB,CAAjB","sourcesContent":["import * as React from 'react';\r\nimport {\r\n FlatList as RNFlatList,\r\n Switch as RNSwitch,\r\n TextInput as RNTextInput,\r\n ScrollView as RNScrollView,\r\n FlatListProps,\r\n View,\r\n} from 'react-native';\r\n\r\nimport createNativeWrapper from '../handlers/createNativeWrapper';\r\n\r\nexport const ScrollView = createNativeWrapper(RNScrollView, {\r\n disallowInterruption: false,\r\n});\r\n\r\nexport const Switch = createNativeWrapper(RNSwitch, {\r\n shouldCancelWhenOutside: false,\r\n shouldActivateOnStart: true,\r\n disallowInterruption: true,\r\n});\r\nexport const TextInput = createNativeWrapper(RNTextInput);\r\nexport const DrawerLayoutAndroid = () => {\r\n console.warn('DrawerLayoutAndroid is not supported on web!');\r\n return <View />;\r\n};\r\n\r\n// RefreshControl is implemented as a functional component, rendering a View\r\n// NativeViewGestureHandler needs to set a ref on its child, which cannot be done\r\n// on functional components\r\nexport const RefreshControl = createNativeWrapper(View);\r\n\r\nexport const FlatList = React.forwardRef(\r\n <ItemT extends any>(props: FlatListProps<ItemT>, ref: any) => (\r\n <RNFlatList\r\n ref={ref}\r\n {...props}\r\n renderScrollComponent={(scrollProps) => <ScrollView {...scrollProps} />}\r\n />\r\n )\r\n);\r\n"]}
|
@@ -1,24 +0,0 @@
|
|
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 _reactNative = require("react-native");
|
11
|
-
|
12
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
13
|
-
|
14
|
-
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; }
|
15
|
-
|
16
|
-
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); }
|
17
|
-
|
18
|
-
var _default = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
19
|
-
ref: ref,
|
20
|
-
accessibilityRole: "button"
|
21
|
-
}, props)));
|
22
|
-
|
23
|
-
exports.default = _default;
|
24
|
-
//# sourceMappingURL=GestureHandlerButton.web.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["GestureHandlerButton.web.tsx"],"names":["React","forwardRef","props","ref"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;4BAEeA,KAAK,CAACC,UAAN,CAAuB,CAACC,KAAD,EAAQC,GAAR,kBACpC,oBAAC,iBAAD;AAAM,EAAA,GAAG,EAAEA,GAAX;AAAgB,EAAA,iBAAiB,EAAC;AAAlC,GAA+CD,KAA/C,EADa,C","sourcesContent":["import * as React from 'react';\r\nimport { View } from 'react-native';\r\n\r\nexport default React.forwardRef<View>((props, ref) => (\r\n <View ref={ref} accessibilityRole=\"button\" {...props} />\r\n));\r\n"]}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = GestureHandlerRootView;
|
7
|
-
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
9
|
-
|
10
|
-
var _init = require("../init");
|
11
|
-
|
12
|
-
var _GestureHandlerRootViewContext = _interopRequireDefault(require("../GestureHandlerRootViewContext"));
|
13
|
-
|
14
|
-
var _RNGestureHandlerRootViewNativeComponent = _interopRequireDefault(require("../specs/RNGestureHandlerRootViewNativeComponent"));
|
15
|
-
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
-
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
19
|
-
|
20
|
-
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; }
|
21
|
-
|
22
|
-
function GestureHandlerRootView(props) {
|
23
|
-
// try initialize fabric on the first render, at this point we can
|
24
|
-
// reliably check if fabric is enabled (the function contains a flag
|
25
|
-
// to make sure it's called only once)
|
26
|
-
(0, _init.maybeInitializeFabric)();
|
27
|
-
return /*#__PURE__*/React.createElement(_GestureHandlerRootViewContext.default.Provider, {
|
28
|
-
value: true
|
29
|
-
}, /*#__PURE__*/React.createElement(_RNGestureHandlerRootViewNativeComponent.default, props));
|
30
|
-
}
|
31
|
-
//# sourceMappingURL=GestureHandlerRootView.android.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["GestureHandlerRootView.android.tsx"],"names":["GestureHandlerRootView","props"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;;;AAKe,SAASA,sBAAT,CACbC,KADa,EAEb;AACA;AACA;AACA;AACA;AAEA,sBACE,oBAAC,sCAAD,CAA+B,QAA/B;AAAwC,IAAA,KAAK;AAA7C,kBACE,oBAAC,gDAAD,EAA2CA,KAA3C,CADF,CADF;AAKD","sourcesContent":["import * as React from 'react';\r\nimport { PropsWithChildren } from 'react';\r\nimport { ViewProps } from 'react-native';\r\nimport { maybeInitializeFabric } from '../init';\r\nimport GestureHandlerRootViewContext from '../GestureHandlerRootViewContext';\r\nimport GestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';\r\n\r\nexport interface GestureHandlerRootViewProps\r\n extends PropsWithChildren<ViewProps> {}\r\n\r\nexport default function GestureHandlerRootView(\r\n props: GestureHandlerRootViewProps\r\n) {\r\n // try initialize fabric on the first render, at this point we can\r\n // reliably check if fabric is enabled (the function contains a flag\r\n // to make sure it's called only once)\r\n maybeInitializeFabric();\r\n\r\n return (\r\n <GestureHandlerRootViewContext.Provider value>\r\n <GestureHandlerRootViewNativeComponent {...props} />\r\n </GestureHandlerRootViewContext.Provider>\r\n );\r\n}\r\n"]}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = GestureHandlerRootView;
|
7
|
-
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
9
|
-
|
10
|
-
var _reactNative = require("react-native");
|
11
|
-
|
12
|
-
var _GestureHandlerRootViewContext = _interopRequireDefault(require("../GestureHandlerRootViewContext"));
|
13
|
-
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
-
|
16
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
17
|
-
|
18
|
-
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; }
|
19
|
-
|
20
|
-
function GestureHandlerRootView(props) {
|
21
|
-
return /*#__PURE__*/React.createElement(_GestureHandlerRootViewContext.default.Provider, {
|
22
|
-
value: true
|
23
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, props));
|
24
|
-
}
|
25
|
-
//# sourceMappingURL=GestureHandlerRootView.web.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["GestureHandlerRootView.web.tsx"],"names":["GestureHandlerRootView","props"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;;;;;;;AAKe,SAASA,sBAAT,CACbC,KADa,EAEb;AACA,sBACE,oBAAC,sCAAD,CAA+B,QAA/B;AAAwC,IAAA,KAAK;AAA7C,kBACE,oBAAC,iBAAD,EAAUA,KAAV,CADF,CADF;AAKD","sourcesContent":["import * as React from 'react';\r\nimport { PropsWithChildren } from 'react';\r\nimport { View, ViewProps } from 'react-native';\r\nimport GestureHandlerRootViewContext from '../GestureHandlerRootViewContext';\r\n\r\nexport interface GestureHandlerRootViewProps\r\n extends PropsWithChildren<ViewProps> {}\r\n\r\nexport default function GestureHandlerRootView(\r\n props: GestureHandlerRootViewProps\r\n) {\r\n return (\r\n <GestureHandlerRootViewContext.Provider value>\r\n <View {...props} />\r\n </GestureHandlerRootViewContext.Provider>\r\n );\r\n}\r\n"]}
|