expo-dev-menu 2.2.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -8
- package/README.md +2 -2
- package/android/build.gradle +4 -63
- package/android/src/debug/java/expo/modules/devmenu/DevMenuActivity.kt +39 -1
- package/android/src/debug/java/expo/modules/devmenu/DevMenuHost.kt +0 -7
- package/android/src/debug/java/expo/modules/devmenu/DevMenuManager.kt +9 -10
- package/android/src/main/java/expo/modules/devmenu/DevMenuPackage.kt +62 -5
- package/android/src/main/java/expo/modules/devmenu/modules/DevMenuInternalModule.kt +3 -0
- package/android/src/main/java/expo/modules/devmenu/modules/DevMenuModule.kt +23 -7
- package/android/src/main/java/expo/modules/devmenu/modules/internals/DevMenuInternalMenuControllerModule.kt +9 -4
- package/android/src/main/res/layout/bottom_sheet.xml +24 -0
- package/android/src/release/java/expo/modules/devmenu/DevMenuManager.kt +3 -1
- package/app/App.tsx +3 -3
- package/app/components/AppProviders.tsx +1 -4
- package/app/components/Main.tsx +197 -184
- package/app/components/Onboarding.tsx +7 -10
- package/app/hooks/useDevSettings.tsx +8 -9
- package/app/native-modules/DevMenu.ts +10 -2
- package/assets/EXDevMenuApp.android.js +455 -701
- package/assets/EXDevMenuApp.ios.js +455 -702
- package/build/DevMenu.d.ts +2 -0
- package/build/DevMenu.d.ts.map +1 -1
- package/build/DevMenu.js +7 -1
- package/build/DevMenu.js.map +1 -1
- package/build/ExpoDevMenu.types.d.ts +7 -1
- package/build/ExpoDevMenu.types.d.ts.map +1 -1
- package/build/ExpoDevMenu.types.js.map +1 -1
- package/build/ExpoDevMenu.web.d.ts.map +1 -1
- package/build/ExpoDevMenu.web.js +6 -0
- package/build/ExpoDevMenu.web.js.map +1 -1
- package/expo-dev-menu.podspec +21 -103
- package/expo-module.config.json +6 -0
- package/ios/DevMenuAppInstance.swift +8 -6
- package/ios/DevMenuManager.swift +36 -19
- package/ios/DevMenuRCTBridge.h +4 -0
- package/ios/{DevMenuRCTBridge.m → DevMenuRCTBridge.mm} +45 -6
- package/ios/DevMenuViewController.swift +1 -1
- package/ios/DevMenuWindow.swift +97 -4
- package/ios/EXDevMenuAppInfo.m +12 -10
- package/ios/Headers/EXDevMenu-Bridging-Header.h +0 -1
- package/ios/Modules/DevMenuInternalModule.swift +59 -85
- package/ios/Modules/DevMenuModule.swift +34 -15
- package/ios/Modules/DevMenuPreferences.swift +15 -26
- package/ios/OverlayContainer/Internal/ConcreteOverlayContainerContextTargetNotchPolicy.swift +25 -0
- package/ios/OverlayContainer/Internal/ConcreteOverlayContainerContextTransitioning.swift +36 -0
- package/ios/OverlayContainer/Internal/ConcreteOverlayContainerDimissingPolicyContext.swift +41 -0
- package/ios/OverlayContainer/Internal/ConcreteOverlayTranslationParameters.swift +14 -0
- package/ios/OverlayContainer/Internal/DraggingOverlayContainerTransitionCoordinator.swift +76 -0
- package/ios/OverlayContainer/Internal/Extensions/CGFloat+Round.swift +16 -0
- package/ios/OverlayContainer/Internal/Extensions/CGGeometry+Utils.swift +26 -0
- package/ios/OverlayContainer/Internal/Extensions/OverlayContainerViewControllerDelegate+Defaults.swift +58 -0
- package/ios/OverlayContainer/Internal/Extensions/UIPanGesture+Utils.swift +28 -0
- package/ios/OverlayContainer/Internal/Extensions/UIScrollViiew+Utils.swift +40 -0
- package/ios/OverlayContainer/Internal/Extensions/UIView+Constraints.swift +28 -0
- package/ios/OverlayContainer/Internal/Extensions/UIView+Subviews.swift +14 -0
- package/ios/OverlayContainer/Internal/Extensions/UIViewController+Children.swift +40 -0
- package/ios/OverlayContainer/Internal/HeightContraintOverlayTranslationController.swift +296 -0
- package/ios/OverlayContainer/Internal/InterruptibleAnimatorOverlayContainerTransitionCoordinator.swift +75 -0
- package/ios/OverlayContainer/Internal/OverlayContainerConfiguration.swift +63 -0
- package/ios/OverlayContainer/Internal/OverlayContainerConfigurationImplementation.swift +130 -0
- package/ios/OverlayContainer/Internal/OverlayScrollViewDelegate.swift +16 -0
- package/ios/OverlayContainer/Internal/OverlayScrollViewDelegateProxy.swift +96 -0
- package/ios/OverlayContainer/Internal/OverlayTranslationController.swift +26 -0
- package/ios/OverlayContainer/Internal/OverlayTranslationDriver.swift +12 -0
- package/ios/OverlayContainer/Internal/OverlayTranslationGestureRecognizer.swift +40 -0
- package/ios/OverlayContainer/Internal/PanGestureOverlayTranslationDriver.swift +68 -0
- package/ios/OverlayContainer/Internal/ScrollViewOverlayTranslationDriver.swift +135 -0
- package/ios/OverlayContainer/Internal/Views/GroundView.swift +10 -0
- package/ios/OverlayContainer/Internal/Views/OverlayContainerView.swift +10 -0
- package/ios/OverlayContainer/Internal/Views/OverlayTranslationContainerView.swift +10 -0
- package/ios/OverlayContainer/Internal/Views/OverlayTranslationView.swift +10 -0
- package/ios/OverlayContainer/OverlayContainerPresentationController.swift +88 -0
- package/ios/OverlayContainer/OverlayContainerSheetDimmingView.swift +81 -0
- package/ios/OverlayContainer/OverlayContainerSheetDismissalPolicy.swift +91 -0
- package/ios/OverlayContainer/OverlayContainerSheetPresentationController.swift +156 -0
- package/ios/OverlayContainer/OverlayContainerSheetPresentationControllerDelegate.swift +26 -0
- package/ios/OverlayContainer/OverlayContainerTransitionCoordinator.swift +80 -0
- package/ios/OverlayContainer/OverlayContainerViewController.swift +412 -0
- package/ios/OverlayContainer/OverlayContainerViewControllerDelegate.swift +155 -0
- package/ios/OverlayContainer/OverlayTransitioningDelegate.swift +67 -0
- package/ios/OverlayContainer/OverlayTranslationFunction.swift +29 -0
- package/ios/OverlayContainer/PassThroughView.swift +24 -0
- package/ios/OverlayContainer/RubberBandOverlayTranslationFunction.swift +44 -0
- package/ios/OverlayContainer/RushingForwardTargetNotchPolicy.swift +52 -0
- package/ios/OverlayContainer/SpringOverlayTranslationAnimationController.swift +70 -0
- package/ios/Tests/DevMenuAppInstanceTest.swift +2 -4
- package/ios/Tests/DevMenuInternalModuleTest.swift +7 -6
- package/mocks/react-native-gesture-handler/src/index.tsx +39 -0
- package/package.json +6 -6
- package/scripts/start.sh +1 -1
- package/setupTests.ts +0 -11
- package/src/DevMenu.ts +10 -2
- package/src/ExpoDevMenu.types.ts +4 -1
- package/src/ExpoDevMenu.web.ts +6 -0
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProvider.swift +52 -0
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProviderManager.swift +54 -0
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewEdges.swift +9 -0
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewMode.swift +7 -0
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/RCTView+DevMenuSafeAreaCompat.swift +47 -0
- package/vendored/react-native-safe-area-context/src/InitialWindow.native.ts +7 -8
- package/vendored/react-native-safe-area-context/src/NativeSafeAreaProvider.native.tsx +5 -4
- package/android/src/expo-44/java/expo/modules/devmenu/DevMenuPackageDelegate.kt +0 -13
- package/android/src/expo-45/java/expo/modules/devmenu/DevMenuPackageDelegate.kt +0 -65
- package/android/src/release/java/expo/modules/devmenu/DevMenuPackageDelegate.kt +0 -13
- package/app/components/BottomSheet.tsx +0 -705
- package/app/components/GestureHandlerTouchableWrapper.tsx +0 -15
- package/app/hooks/useBottomSheet.tsx +0 -95
- package/ios/DevMenuBaseAppInstance+Reanimated.mm +0 -52
- package/ios/DevMenuBaseAppInstance.h +0 -6
- package/ios/DevMenuVendoredModulesUtils.h +0 -13
- package/ios/DevMenuVendoredModulesUtils.m +0 -56
- package/ios/Modules/DevMenuInternalModule.m +0 -34
- package/ios/Modules/DevMenuModule.m +0 -15
- package/ios/Modules/DevMenuPreferences.m +0 -10
- package/ios/Tests/DevMenuVendoredModulesUtilsTests.swift +0 -17
- package/scripts/reanimated_utils.rb +0 -91
- package/vendored/react-native-gesture-handler/RNGestureHandler.podspec.json +0 -21
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/common/GestureHandlerStateManager.kt +0 -5
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.kt +0 -18
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/Extensions.kt +0 -11
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/FlingGestureHandler.kt +0 -96
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandler.kt +0 -713
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerInteractionController.kt +0 -8
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerOrchestrator.kt +0 -562
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerRegistry.kt +0 -8
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.kt +0 -21
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureUtils.kt +0 -49
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/LongPressGestureHandler.kt +0 -97
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/ManualGestureHandler.kt +0 -11
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/NativeViewGestureHandler.kt +0 -129
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/OnTouchEventListener.kt +0 -9
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/PanGestureHandler.kt +0 -289
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/PinchGestureHandler.kt +0 -88
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/PointerEventsConfig.kt +0 -23
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/RotationGestureDetector.kt +0 -125
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/RotationGestureHandler.kt +0 -79
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/TapGestureHandler.kt +0 -167
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/ViewConfigurationHelper.kt +0 -10
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +0 -349
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt +0 -57
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.kt +0 -59
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerEventDataExtractor.kt +0 -8
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +0 -61
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +0 -686
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerPackage.kt +0 -17
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt +0 -95
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +0 -132
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootInterface.kt +0 -5
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +0 -68
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt +0 -34
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.kt +0 -66
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt +0 -69
- package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +0 -51
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandler.h +0 -87
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandler.m +0 -454
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerButton.h +0 -18
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerButton.m +0 -70
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerDirection.h +0 -8
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerEvents.h +0 -65
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerEvents.m +0 -255
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerManager.h +0 -36
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerManager.m +0 -221
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerModule.h +0 -10
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerModule.m +0 -235
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerPointerTracker.h +0 -26
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerPointerTracker.m +0 -237
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerRegistry.h +0 -19
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerRegistry.m +0 -60
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerState.h +0 -10
- package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerStateManager.h +0 -5
- package/vendored/react-native-gesture-handler/ios/DevMenuRNManualActivationRecognizer.h +0 -10
- package/vendored/react-native-gesture-handler/ios/DevMenuRNManualActivationRecognizer.m +0 -80
- package/vendored/react-native-gesture-handler/ios/DevMenuRNRootViewGestureRecognizer.h +0 -17
- package/vendored/react-native-gesture-handler/ios/DevMenuRNRootViewGestureRecognizer.m +0 -93
- package/vendored/react-native-gesture-handler/ios/DevMenuRNTouchEventType.h +0 -9
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNFlingHandler.h +0 -4
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNFlingHandler.m +0 -106
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNForceTouchHandler.h +0 -4
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNForceTouchHandler.m +0 -173
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNLongPressHandler.h +0 -12
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNLongPressHandler.m +0 -185
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNManualHandler.h +0 -4
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNManualHandler.m +0 -73
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNNativeViewHandler.h +0 -15
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNNativeViewHandler.m +0 -177
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPanHandler.h +0 -12
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPanHandler.m +0 -306
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPinchHandler.h +0 -12
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPinchHandler.m +0 -94
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNRotationHandler.h +0 -12
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNRotationHandler.m +0 -94
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNTapHandler.h +0 -12
- package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNTapHandler.m +0 -265
- package/vendored/react-native-gesture-handler/jestSetup.js +0 -7
- package/vendored/react-native-gesture-handler/src/Directions.ts +0 -9
- package/vendored/react-native-gesture-handler/src/EventType.ts +0 -10
- package/vendored/react-native-gesture-handler/src/GestureHandlerRootView.android.tsx +0 -18
- package/vendored/react-native-gesture-handler/src/GestureHandlerRootView.tsx +0 -12
- package/vendored/react-native-gesture-handler/src/PlatformConstants.ts +0 -8
- package/vendored/react-native-gesture-handler/src/PlatformConstants.web.ts +0 -5
- package/vendored/react-native-gesture-handler/src/RNGestureHandlerModule.ts +0 -35
- package/vendored/react-native-gesture-handler/src/RNGestureHandlerModule.web.ts +0 -61
- package/vendored/react-native-gesture-handler/src/State.ts +0 -13
- package/vendored/react-native-gesture-handler/src/components/DrawerLayout.tsx +0 -695
- package/vendored/react-native-gesture-handler/src/components/GestureButtons.tsx +0 -254
- package/vendored/react-native-gesture-handler/src/components/GestureComponents.tsx +0 -92
- package/vendored/react-native-gesture-handler/src/components/GestureComponents.web.tsx +0 -37
- package/vendored/react-native-gesture-handler/src/components/GestureHandlerButton.tsx +0 -7
- package/vendored/react-native-gesture-handler/src/components/GestureHandlerButton.web.tsx +0 -6
- package/vendored/react-native-gesture-handler/src/components/Swipeable.tsx +0 -510
- package/vendored/react-native-gesture-handler/src/components/touchables/GenericTouchable.tsx +0 -285
- package/vendored/react-native-gesture-handler/src/components/touchables/TouchableHighlight.tsx +0 -112
- package/vendored/react-native-gesture-handler/src/components/touchables/TouchableNativeFeedback.android.tsx +0 -89
- package/vendored/react-native-gesture-handler/src/components/touchables/TouchableNativeFeedback.tsx +0 -3
- package/vendored/react-native-gesture-handler/src/components/touchables/TouchableOpacity.tsx +0 -70
- package/vendored/react-native-gesture-handler/src/components/touchables/TouchableWithoutFeedback.tsx +0 -12
- package/vendored/react-native-gesture-handler/src/components/touchables/index.ts +0 -4
- package/vendored/react-native-gesture-handler/src/gestureHandlerRootHOC.tsx +0 -29
- package/vendored/react-native-gesture-handler/src/handlers/FlingGestureHandler.ts +0 -57
- package/vendored/react-native-gesture-handler/src/handlers/ForceTouchGestureHandler.ts +0 -83
- package/vendored/react-native-gesture-handler/src/handlers/LongPressGestureHandler.ts +0 -84
- package/vendored/react-native-gesture-handler/src/handlers/NativeViewGestureHandler.ts +0 -53
- package/vendored/react-native-gesture-handler/src/handlers/PanGestureHandler.ts +0 -321
- package/vendored/react-native-gesture-handler/src/handlers/PinchGestureHandler.ts +0 -46
- package/vendored/react-native-gesture-handler/src/handlers/RotationGestureHandler.ts +0 -46
- package/vendored/react-native-gesture-handler/src/handlers/TapGestureHandler.ts +0 -90
- package/vendored/react-native-gesture-handler/src/handlers/createHandler.ts +0 -430
- package/vendored/react-native-gesture-handler/src/handlers/createNativeWrapper.tsx +0 -74
- package/vendored/react-native-gesture-handler/src/handlers/gestureHandlerCommon.ts +0 -185
- package/vendored/react-native-gesture-handler/src/handlers/gestureHandlerTypesCompat.ts +0 -89
- package/vendored/react-native-gesture-handler/src/handlers/gestures/GestureDetector.tsx +0 -519
- package/vendored/react-native-gesture-handler/src/handlers/gestures/eventReceiver.ts +0 -151
- package/vendored/react-native-gesture-handler/src/handlers/gestures/flingGesture.ts +0 -27
- package/vendored/react-native-gesture-handler/src/handlers/gestures/forceTouchGesture.ts +0 -74
- package/vendored/react-native-gesture-handler/src/handlers/gestures/gesture.ts +0 -292
- package/vendored/react-native-gesture-handler/src/handlers/gestures/gestureComposition.ts +0 -109
- package/vendored/react-native-gesture-handler/src/handlers/gestures/gestureObjects.ts +0 -79
- package/vendored/react-native-gesture-handler/src/handlers/gestures/gestureStateManager.ts +0 -60
- package/vendored/react-native-gesture-handler/src/handlers/gestures/longPressGesture.ts +0 -27
- package/vendored/react-native-gesture-handler/src/handlers/gestures/manualGesture.ts +0 -31
- package/vendored/react-native-gesture-handler/src/handlers/gestures/nativeGesture.ts +0 -27
- package/vendored/react-native-gesture-handler/src/handlers/gestures/panGesture.ts +0 -147
- package/vendored/react-native-gesture-handler/src/handlers/gestures/pinchGesture.ts +0 -51
- package/vendored/react-native-gesture-handler/src/handlers/gestures/reanimatedWrapper.ts +0 -45
- package/vendored/react-native-gesture-handler/src/handlers/gestures/rotationGesture.ts +0 -51
- package/vendored/react-native-gesture-handler/src/handlers/gestures/tapGesture.ts +0 -52
- package/vendored/react-native-gesture-handler/src/handlers/handlersRegistry.ts +0 -22
- package/vendored/react-native-gesture-handler/src/index.ts +0 -156
- package/vendored/react-native-gesture-handler/src/init.ts +0 -5
- package/vendored/react-native-gesture-handler/src/mocks.ts +0 -65
- package/vendored/react-native-gesture-handler/src/typeUtils.ts +0 -1
- package/vendored/react-native-gesture-handler/src/utils.ts +0 -7
- package/vendored/react-native-gesture-handler/src/web/DiscreteGestureHandler.ts +0 -82
- package/vendored/react-native-gesture-handler/src/web/DraggingGestureHandler.ts +0 -34
- package/vendored/react-native-gesture-handler/src/web/Errors.ts +0 -7
- package/vendored/react-native-gesture-handler/src/web/FlingGestureHandler.ts +0 -134
- package/vendored/react-native-gesture-handler/src/web/GestureHandler.ts +0 -547
- package/vendored/react-native-gesture-handler/src/web/IndiscreteGestureHandler.ts +0 -33
- package/vendored/react-native-gesture-handler/src/web/LongPressGestureHandler.ts +0 -56
- package/vendored/react-native-gesture-handler/src/web/NativeViewGestureHandler.ts +0 -43
- package/vendored/react-native-gesture-handler/src/web/NodeManager.ts +0 -37
- package/vendored/react-native-gesture-handler/src/web/PanGestureHandler.ts +0 -220
- package/vendored/react-native-gesture-handler/src/web/PinchGestureHandler.ts +0 -25
- package/vendored/react-native-gesture-handler/src/web/PressGestureHandler.ts +0 -167
- package/vendored/react-native-gesture-handler/src/web/RotationGestureHandler.ts +0 -25
- package/vendored/react-native-gesture-handler/src/web/TapGestureHandler.ts +0 -172
- package/vendored/react-native-gesture-handler/src/web/constants.ts +0 -48
- package/vendored/react-native-gesture-handler/src/web/utils.ts +0 -24
- package/vendored/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp +0 -75
- package/vendored/react-native-reanimated/Common/cpp/AnimatedSensor/DevMenuAnimatedSensorModule.h +0 -41
- package/vendored/react-native-reanimated/Common/cpp/LayoutAnimations/DevMenuLayoutAnimationsProxy.h +0 -32
- package/vendored/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsProxy.cpp +0 -45
- package/vendored/react-native-reanimated/Common/cpp/NativeModules/DevMenuNativeReanimatedModule.h +0 -121
- package/vendored/react-native-reanimated/Common/cpp/NativeModules/DevMenuNativeReanimatedModuleSpec.h +0 -90
- package/vendored/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp +0 -371
- package/vendored/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +0 -192
- package/vendored/react-native-reanimated/Common/cpp/Registries/DevMenuEventHandlerRegistry.h +0 -37
- package/vendored/react-native-reanimated/Common/cpp/Registries/DevMenuMapperRegistry.h +0 -29
- package/vendored/react-native-reanimated/Common/cpp/Registries/DevMenuWorkletsCache.h +0 -24
- package/vendored/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp +0 -68
- package/vendored/react-native-reanimated/Common/cpp/Registries/MapperRegistry.cpp +0 -147
- package/vendored/react-native-reanimated/Common/cpp/Registries/WorkletsCache.cpp +0 -41
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuFrozenObject.h +0 -36
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuHostFunctionHandler.h +0 -28
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuMutableValue.h +0 -54
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuMutableValueSetterProxy.h +0 -25
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuRemoteObject.h +0 -35
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuRuntimeManager.h +0 -75
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuShareableValue.h +0 -63
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuSharedParent.h +0 -27
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuValueWrapper.h +0 -158
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/FrozenObject.cpp +0 -35
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/MutableValue.cpp +0 -134
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/MutableValueSetterProxy.cpp +0 -47
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/RemoteObject.cpp +0 -45
- package/vendored/react-native-reanimated/Common/cpp/SharedItems/ShareableValue.cpp +0 -512
- package/vendored/react-native-reanimated/Common/cpp/SpecTools/DevMenuErrorHandler.h +0 -32
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuFeaturesConfig.h +0 -19
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuJSIStoreValueUser.h +0 -37
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuMapper.h +0 -51
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuPlatformDepMethodsHolder.h +0 -51
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuReanimatedHiddenHeaders.h +0 -11
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuReanimatedVersion.h +0 -11
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuRuntimeDecorator.h +0 -89
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuScheduler.h +0 -89
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuSingleInstanceChecker.h +0 -58
- package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuWorkletEventHandler.h +0 -30
- package/vendored/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp +0 -5
- package/vendored/react-native-reanimated/Common/cpp/Tools/JSIStoreValueUser.cpp +0 -55
- package/vendored/react-native-reanimated/Common/cpp/Tools/Mapper.cpp +0 -67
- package/vendored/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp +0 -17
- package/vendored/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp +0 -242
- package/vendored/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp +0 -37
- package/vendored/react-native-reanimated/Common/cpp/Tools/WorkletEventHandler.cpp +0 -11
- package/vendored/react-native-reanimated/Common/cpp/hidden_headers/DevMenuLogger.h +0 -22
- package/vendored/react-native-reanimated/Common/cpp/hidden_headers/DevMenuLoggerInterface.h +0 -14
- package/vendored/react-native-reanimated/Common/cpp/hidden_headers/DevMenuSpeedChecker.h +0 -29
- package/vendored/react-native-reanimated/android/71-hermes/classes.jar +0 -0
- package/vendored/react-native-reanimated/android/71-hermes/jni/arm64-v8a/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/android/71-hermes/jni/armeabi-v7a/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/android/71-hermes/jni/x86/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/android/71-hermes/jni/x86_64/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/android/71-jsc/classes.jar +0 -0
- package/vendored/react-native-reanimated/android/71-jsc/jni/arm64-v8a/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/android/71-jsc/jni/armeabi-v7a/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/android/71-jsc/jni/x86/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/android/71-jsc/jni/x86_64/libdevmenureanimated.so +0 -0
- package/vendored/react-native-reanimated/ios/DevMenuREAEventDispatcher.h +0 -10
- package/vendored/react-native-reanimated/ios/DevMenuREAEventDispatcher.m +0 -19
- package/vendored/react-native-reanimated/ios/DevMenuREAModule.h +0 -17
- package/vendored/react-native-reanimated/ios/DevMenuREAModule.mm +0 -221
- package/vendored/react-native-reanimated/ios/DevMenuREANodesManager.h +0 -83
- package/vendored/react-native-reanimated/ios/DevMenuREANodesManager.m +0 -649
- package/vendored/react-native-reanimated/ios/DevMenuREAUtils.h +0 -7
- package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAAnimationsManager.h +0 -32
- package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAAnimationsManager.m +0 -360
- package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREASnapshot.h +0 -13
- package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREASnapshot.m +0 -29
- package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAUIManager.h +0 -16
- package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAUIManager.mm +0 -388
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAAlwaysNode.h +0 -4
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAAlwaysNode.m +0 -35
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABezierNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABezierNode.m +0 -103
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABlockNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABlockNode.m +0 -25
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACallFuncNode.h +0 -6
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACallFuncNode.m +0 -71
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAClockNodes.h +0 -19
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAClockNodes.m +0 -118
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAConcatNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAConcatNode.m +0 -32
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACondNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACondNode.m +0 -36
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREADebugNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREADebugNode.m +0 -30
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAEventNode.h +0 -8
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAEventNode.m +0 -35
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAFunctionNode.h +0 -6
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAFunctionNode.m +0 -24
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAJSCallNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAJSCallNode.m +0 -30
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREANode.h +0 -40
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREANode.m +0 -155
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAOperatorNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAOperatorNode.m +0 -114
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAParamNode.h +0 -10
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAParamNode.m +0 -79
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAPropsNode.h +0 -9
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAPropsNode.m +0 -96
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREASetNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREASetNode.m +0 -34
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAStyleNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAStyleNode.m +0 -27
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREATransformNode.h +0 -5
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREATransformNode.m +0 -36
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAValueNode.h +0 -9
- package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAValueNode.m +0 -26
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREAAllTransitions.h +0 -26
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREAAllTransitions.m +0 -296
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransition.h +0 -64
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransition.m +0 -210
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionAnimation.h +0 -17
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionAnimation.m +0 -79
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionManager.h +0 -9
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionManager.m +0 -60
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionValues.h +0 -15
- package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionValues.m +0 -25
- package/vendored/react-native-reanimated/ios/Transitioning/RCTConvert+DevMenuREATransition.h +0 -11
- package/vendored/react-native-reanimated/ios/Transitioning/RCTConvert+DevMenuREATransition.m +0 -53
- package/vendored/react-native-reanimated/ios/keyboardObserver/DevMenuREAKeyboardEventObserver.h +0 -17
- package/vendored/react-native-reanimated/ios/keyboardObserver/DevMenuREAKeyboardEventObserver.m +0 -198
- package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSErrorHandler.h +0 -21
- package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSErrorHandler.mm +0 -40
- package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSLogger.h +0 -15
- package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSLogger.mm +0 -29
- package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSScheduler.h +0 -19
- package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSScheduler.mm +0 -48
- package/vendored/react-native-reanimated/ios/native/DevMenuREAInitializer.h +0 -30
- package/vendored/react-native-reanimated/ios/native/DevMenuREAInitializer.mm +0 -79
- package/vendored/react-native-reanimated/ios/native/NativeMethods.h +0 -24
- package/vendored/react-native-reanimated/ios/native/NativeMethods.mm +0 -54
- package/vendored/react-native-reanimated/ios/native/NativeProxy.h +0 -15
- package/vendored/react-native-reanimated/ios/native/NativeProxy.mm +0 -370
- package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensor.h +0 -26
- package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensor.m +0 -226
- package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensorContainer.h +0 -12
- package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensorContainer.m +0 -40
- package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensorType.h +0 -7
- package/vendored/react-native-reanimated/plugin.js +0 -789
- package/vendored/react-native-reanimated/react-native-reanimated.d.ts +0 -1248
- package/vendored/react-native-reanimated/src/Animated.ts +0 -13
- package/vendored/react-native-reanimated/src/ConfigHelper.ts +0 -170
- package/vendored/react-native-reanimated/src/ReanimatedEventEmitter.ts +0 -4
- package/vendored/react-native-reanimated/src/ReanimatedModule.macos.ts +0 -3
- package/vendored/react-native-reanimated/src/ReanimatedModule.native.ts +0 -13
- package/vendored/react-native-reanimated/src/ReanimatedModule.ts +0 -3
- package/vendored/react-native-reanimated/src/ReanimatedModule.windows.ts +0 -3
- package/vendored/react-native-reanimated/src/ReanimatedModuleCompat.ts +0 -51
- package/vendored/react-native-reanimated/src/createAnimatedComponent.tsx +0 -705
- package/vendored/react-native-reanimated/src/index.ts +0 -15
- package/vendored/react-native-reanimated/src/index.web.ts +0 -7
- package/vendored/react-native-reanimated/src/reanimated1/Easing.js +0 -231
- package/vendored/react-native-reanimated/src/reanimated1/SpringConfig.js +0 -79
- package/vendored/react-native-reanimated/src/reanimated1/Transitioning.js +0 -158
- package/vendored/react-native-reanimated/src/reanimated1/animations/Animation.js +0 -32
- package/vendored/react-native-reanimated/src/reanimated1/animations/SpringUtils.js +0 -199
- package/vendored/react-native-reanimated/src/reanimated1/animations/backwardCompatibleAnimWrapper.js +0 -117
- package/vendored/react-native-reanimated/src/reanimated1/animations/decay.js +0 -54
- package/vendored/react-native-reanimated/src/reanimated1/animations/spring.js +0 -198
- package/vendored/react-native-reanimated/src/reanimated1/animations/timing.js +0 -74
- package/vendored/react-native-reanimated/src/reanimated1/base.js +0 -13
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedAlways.js +0 -33
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedBezier.js +0 -150
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedBlock.js +0 -52
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCall.js +0 -55
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCallFunc.js +0 -72
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedClock.js +0 -90
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedClockTest.js +0 -22
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCode.js +0 -32
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedConcat.js +0 -32
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCond.js +0 -57
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedDebug.js +0 -62
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedEvent.js +0 -126
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedFunction.js +0 -55
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedNode.js +0 -223
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedOperator.js +0 -103
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedParam.js +0 -88
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedProps.js +0 -108
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedSet.js +0 -38
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedStartClock.js +0 -30
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedStopClock.js +0 -30
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedStyle.js +0 -78
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedTransform.js +0 -78
- package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedValue.js +0 -38
- package/vendored/react-native-reanimated/src/reanimated1/core/Core.test.js +0 -30
- package/vendored/react-native-reanimated/src/reanimated1/core/InternalAnimatedValue.js +0 -87
- package/vendored/react-native-reanimated/src/reanimated1/core/createEventObjectProxyPolyfill.js +0 -44
- package/vendored/react-native-reanimated/src/reanimated1/derived/acc.js +0 -11
- package/vendored/react-native-reanimated/src/reanimated1/derived/color.js +0 -47
- package/vendored/react-native-reanimated/src/reanimated1/derived/diff.js +0 -16
- package/vendored/react-native-reanimated/src/reanimated1/derived/diffClamp.js +0 -11
- package/vendored/react-native-reanimated/src/reanimated1/derived/evaluateOnce.js +0 -35
- package/vendored/react-native-reanimated/src/reanimated1/derived/index.js +0 -8
- package/vendored/react-native-reanimated/src/reanimated1/derived/interpolate.js +0 -152
- package/vendored/react-native-reanimated/src/reanimated1/derived/interpolateColors.js +0 -62
- package/vendored/react-native-reanimated/src/reanimated1/derived/onChange.js +0 -14
- package/vendored/react-native-reanimated/src/reanimated1/derived/useCode.js +0 -41
- package/vendored/react-native-reanimated/src/reanimated1/index.js +0 -53
- package/vendored/react-native-reanimated/src/reanimated1/operators.js +0 -35
- package/vendored/react-native-reanimated/src/reanimated1/useValue.js +0 -10
- package/vendored/react-native-reanimated/src/reanimated1/val.js +0 -3
- package/vendored/react-native-reanimated/src/reanimated2/Bezier.ts +0 -172
- package/vendored/react-native-reanimated/src/reanimated2/Colors.ts +0 -679
- package/vendored/react-native-reanimated/src/reanimated2/Easing.ts +0 -339
- package/vendored/react-native-reanimated/src/reanimated2/NativeMethods.ts +0 -135
- package/vendored/react-native-reanimated/src/reanimated2/NativeReanimated/NativeReanimated.ts +0 -113
- package/vendored/react-native-reanimated/src/reanimated2/NativeReanimated/index.ts +0 -12
- package/vendored/react-native-reanimated/src/reanimated2/PlatformChecker.ts +0 -21
- package/vendored/react-native-reanimated/src/reanimated2/PropAdapters.ts +0 -68
- package/vendored/react-native-reanimated/src/reanimated2/UpdateProps.ts +0 -93
- package/vendored/react-native-reanimated/src/reanimated2/ViewDescriptorsSet.ts +0 -111
- package/vendored/react-native-reanimated/src/reanimated2/WorkletEventHandler.ts +0 -68
- package/vendored/react-native-reanimated/src/reanimated2/animation/commonTypes.ts +0 -52
- package/vendored/react-native-reanimated/src/reanimated2/animation/decay.ts +0 -141
- package/vendored/react-native-reanimated/src/reanimated2/animation/delay.ts +0 -89
- package/vendored/react-native-reanimated/src/reanimated2/animation/index.ts +0 -16
- package/vendored/react-native-reanimated/src/reanimated2/animation/repeat.ts +0 -118
- package/vendored/react-native-reanimated/src/reanimated2/animation/sequence.ts +0 -98
- package/vendored/react-native-reanimated/src/reanimated2/animation/spring.ts +0 -166
- package/vendored/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts +0 -258
- package/vendored/react-native-reanimated/src/reanimated2/animation/timing.ts +0 -111
- package/vendored/react-native-reanimated/src/reanimated2/animation/util.ts +0 -301
- package/vendored/react-native-reanimated/src/reanimated2/commonTypes.ts +0 -171
- package/vendored/react-native-reanimated/src/reanimated2/component/FlatList.tsx +0 -52
- package/vendored/react-native-reanimated/src/reanimated2/component/Image.ts +0 -6
- package/vendored/react-native-reanimated/src/reanimated2/component/ScrollView.ts +0 -6
- package/vendored/react-native-reanimated/src/reanimated2/component/Text.ts +0 -6
- package/vendored/react-native-reanimated/src/reanimated2/component/View.ts +0 -6
- package/vendored/react-native-reanimated/src/reanimated2/core.ts +0 -376
- package/vendored/react-native-reanimated/src/reanimated2/frameCallback/FrameCallbackRegistryJS.ts +0 -40
- package/vendored/react-native-reanimated/src/reanimated2/frameCallback/FrameCallbackRegistryUI.ts +0 -115
- package/vendored/react-native-reanimated/src/reanimated2/globals.d.ts +0 -91
- package/vendored/react-native-reanimated/src/reanimated2/hook/Hooks.ts +0 -16
- package/vendored/react-native-reanimated/src/reanimated2/hook/commonTypes.ts +0 -17
- package/vendored/react-native-reanimated/src/reanimated2/hook/index.ts +0 -30
- package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedGestureHandler.ts +0 -109
- package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedKeyboard.ts +0 -35
- package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedReaction.ts +0 -49
- package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedRef.ts +0 -30
- package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedScrollHandler.ts +0 -85
- package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedSensor.ts +0 -89
- package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedStyle.ts +0 -557
- package/vendored/react-native-reanimated/src/reanimated2/hook/useDerivedValue.ts +0 -48
- package/vendored/react-native-reanimated/src/reanimated2/hook/useFrameCallback.ts +0 -40
- package/vendored/react-native-reanimated/src/reanimated2/hook/useScrollViewOffset.ts +0 -37
- package/vendored/react-native-reanimated/src/reanimated2/hook/useSharedValue.ts +0 -22
- package/vendored/react-native-reanimated/src/reanimated2/hook/utils.ts +0 -245
- package/vendored/react-native-reanimated/src/reanimated2/index.ts +0 -12
- package/vendored/react-native-reanimated/src/reanimated2/interpolateColor.ts +0 -262
- package/vendored/react-native-reanimated/src/reanimated2/interpolation.ts +0 -212
- package/vendored/react-native-reanimated/src/reanimated2/jestUtils.ts +0 -225
- package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/JSReanimated.ts +0 -144
- package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/Mapper.ts +0 -62
- package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/MapperRegistry.ts +0 -133
- package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/MutableValue.ts +0 -38
- package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/commonTypes.ts +0 -51
- package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/global.ts +0 -45
- package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/index.ts +0 -57
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts +0 -75
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.ts +0 -91
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts +0 -182
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/Keyframe.ts +0 -262
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/commonTypes.ts +0 -101
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/index.ts +0 -20
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Bounce.ts +0 -528
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Default.ts +0 -49
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Fade.ts +0 -347
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Flip.ts +0 -478
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.ts +0 -194
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.ts +0 -99
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Roll.ts +0 -154
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Rotate.ts +0 -384
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Slide.ts +0 -298
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Stretch.ts +0 -129
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Zoom.ts +0 -580
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/index.ts +0 -10
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.ts +0 -117
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.ts +0 -224
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.ts +0 -61
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.ts +0 -65
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.ts +0 -48
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.ts +0 -91
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/index.ts +0 -6
- package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/index.ts +0 -4
- package/vendored/react-native-reanimated/src/reanimated2/mock.ts +0 -80
- package/vendored/react-native-reanimated/src/reanimated2/platform-specific/RNRenderer.ts +0 -3
- package/vendored/react-native-reanimated/src/reanimated2/platform-specific/RNRenderer.web.ts +0 -2
- package/vendored/react-native-reanimated/src/reanimated2/platform-specific/checkVersion.ts +0 -35
- package/vendored/react-native-reanimated/src/reanimated2/platform-specific/checkVersion.web.ts +0 -6
- package/vendored/react-native-reanimated/src/reanimated2/utils.ts +0 -28
- package/vendored/react-native-reanimated/src/setAndForwardRef.ts +0 -63
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProvider.h +0 -13
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProvider.m +0 -65
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProviderManager.h +0 -9
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProviderManager.m +0 -109
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaShadowView.h +0 -9
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaShadowView.m +0 -180
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaView.h +0 -21
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaView.m +0 -118
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewEdges.h +0 -9
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewEdges.m +0 -13
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewLocalData.h +0 -18
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewLocalData.m +0 -16
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewManager.h +0 -9
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewManager.m +0 -25
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewMode.h +0 -7
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewMode.m +0 -11
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/RCTView+DevMenuSafeAreaCompat.h +0 -16
- package/vendored/react-native-safe-area-context/ios/SafeAreaView/RCTView+DevMenuSafeAreaCompat.m +0 -57
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* global _updateProps */
|
|
2
|
-
import { MutableRefObject } from 'react';
|
|
3
|
-
import { processColor } from './Colors';
|
|
4
|
-
import { AnimatedStyle, SharedValue, StyleProps } from './commonTypes';
|
|
5
|
-
import { makeShareable, isConfigured } from './core';
|
|
6
|
-
import { Descriptor } from './hook/commonTypes';
|
|
7
|
-
import { _updatePropsJS } from './js-reanimated';
|
|
8
|
-
import { shouldBeUseWeb } from './PlatformChecker';
|
|
9
|
-
import { ViewRefSet } from './ViewDescriptorsSet';
|
|
10
|
-
|
|
11
|
-
// copied from react-native/Libraries/Components/View/ReactNativeStyleAttributes
|
|
12
|
-
export const colorProps = [
|
|
13
|
-
'backgroundColor',
|
|
14
|
-
'borderBottomColor',
|
|
15
|
-
'borderColor',
|
|
16
|
-
'borderLeftColor',
|
|
17
|
-
'borderRightColor',
|
|
18
|
-
'borderTopColor',
|
|
19
|
-
'borderStartColor',
|
|
20
|
-
'borderEndColor',
|
|
21
|
-
'color',
|
|
22
|
-
'shadowColor',
|
|
23
|
-
'textDecorationColor',
|
|
24
|
-
'tintColor',
|
|
25
|
-
'textShadowColor',
|
|
26
|
-
'overlayColor',
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
export const ColorProperties = !isConfigured() ? [] : makeShareable(colorProps);
|
|
30
|
-
|
|
31
|
-
let updatePropsByPlatform;
|
|
32
|
-
if (shouldBeUseWeb()) {
|
|
33
|
-
updatePropsByPlatform = (
|
|
34
|
-
_: SharedValue<Descriptor[]>,
|
|
35
|
-
updates: StyleProps | AnimatedStyle,
|
|
36
|
-
maybeViewRef: ViewRefSet<any> | undefined
|
|
37
|
-
): void => {
|
|
38
|
-
'worklet';
|
|
39
|
-
if (maybeViewRef) {
|
|
40
|
-
maybeViewRef.items.forEach((item, _) => {
|
|
41
|
-
_updatePropsJS(updates, item);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
} else {
|
|
46
|
-
updatePropsByPlatform = (
|
|
47
|
-
viewDescriptors: SharedValue<Descriptor[]>,
|
|
48
|
-
updates: StyleProps | AnimatedStyle,
|
|
49
|
-
_: ViewRefSet<any> | undefined
|
|
50
|
-
): void => {
|
|
51
|
-
'worklet';
|
|
52
|
-
|
|
53
|
-
for (const key in updates) {
|
|
54
|
-
if (ColorProperties.indexOf(key) !== -1) {
|
|
55
|
-
updates[key] = processColor(updates[key]);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
viewDescriptors.value.forEach((viewDescriptor) => {
|
|
60
|
-
_updateProps(
|
|
61
|
-
viewDescriptor.tag,
|
|
62
|
-
viewDescriptor.name || 'RCTView',
|
|
63
|
-
updates
|
|
64
|
-
);
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export const updateProps: (
|
|
70
|
-
viewDescriptor: SharedValue<Descriptor[]>,
|
|
71
|
-
updates: StyleProps | AnimatedStyle,
|
|
72
|
-
maybeViewRef: ViewRefSet<any> | undefined
|
|
73
|
-
) => void = updatePropsByPlatform;
|
|
74
|
-
|
|
75
|
-
export const updatePropsJestWrapper = (
|
|
76
|
-
viewDescriptors: SharedValue<Descriptor[]>,
|
|
77
|
-
updates: AnimatedStyle,
|
|
78
|
-
maybeViewRef: ViewRefSet<any> | undefined,
|
|
79
|
-
animatedStyle: MutableRefObject<AnimatedStyle>,
|
|
80
|
-
adapters: ((updates: AnimatedStyle) => void)[]
|
|
81
|
-
): void => {
|
|
82
|
-
adapters.forEach((adapter) => {
|
|
83
|
-
adapter(updates);
|
|
84
|
-
});
|
|
85
|
-
animatedStyle.current.value = {
|
|
86
|
-
...animatedStyle.current.value,
|
|
87
|
-
...updates,
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
updateProps(viewDescriptors, updates, maybeViewRef);
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export default updateProps;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { useRef } from 'react';
|
|
2
|
-
import { makeMutable } from './core';
|
|
3
|
-
import { SharedValue } from './commonTypes';
|
|
4
|
-
import { Descriptor } from './hook/commonTypes';
|
|
5
|
-
import { shouldBeUseWeb } from './PlatformChecker';
|
|
6
|
-
|
|
7
|
-
export interface ViewRefSet<T> {
|
|
8
|
-
items: Set<T>;
|
|
9
|
-
add: (item: T) => void;
|
|
10
|
-
remove: (item: T) => void;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface ViewDescriptorsSet {
|
|
14
|
-
batchToRemove: Set<number>;
|
|
15
|
-
tags: Set<number>;
|
|
16
|
-
waitForInsertSync: boolean;
|
|
17
|
-
waitForRemoveSync: boolean;
|
|
18
|
-
sharableViewDescriptors: SharedValue<Descriptor[]>;
|
|
19
|
-
items: Descriptor[];
|
|
20
|
-
add: (item: Descriptor) => void;
|
|
21
|
-
remove: (viewTag: number) => void;
|
|
22
|
-
rebuildsharableViewDescriptors: (
|
|
23
|
-
sharableViewDescriptor: SharedValue<Descriptor[]>
|
|
24
|
-
) => void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const scheduleUpdates = shouldBeUseWeb() ? requestAnimationFrame : setImmediate;
|
|
28
|
-
|
|
29
|
-
export function makeViewDescriptorsSet(): ViewDescriptorsSet {
|
|
30
|
-
const ref = useRef<ViewDescriptorsSet | null>(null);
|
|
31
|
-
if (ref.current === null) {
|
|
32
|
-
const data: ViewDescriptorsSet = {
|
|
33
|
-
batchToRemove: new Set(),
|
|
34
|
-
tags: new Set(),
|
|
35
|
-
waitForInsertSync: false,
|
|
36
|
-
waitForRemoveSync: false,
|
|
37
|
-
sharableViewDescriptors: makeMutable([]),
|
|
38
|
-
items: [],
|
|
39
|
-
|
|
40
|
-
add: (item: Descriptor) => {
|
|
41
|
-
if (data.tags.has(item.tag)) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
data.tags.add(item.tag);
|
|
45
|
-
data.items.push(item);
|
|
46
|
-
|
|
47
|
-
if (!data.waitForInsertSync) {
|
|
48
|
-
data.waitForInsertSync = true;
|
|
49
|
-
|
|
50
|
-
scheduleUpdates(() => {
|
|
51
|
-
data.sharableViewDescriptors.value = data.items;
|
|
52
|
-
data.waitForInsertSync = false;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
remove: (viewTag: number) => {
|
|
58
|
-
data.batchToRemove.add(viewTag);
|
|
59
|
-
|
|
60
|
-
if (!data.waitForRemoveSync) {
|
|
61
|
-
data.waitForRemoveSync = true;
|
|
62
|
-
|
|
63
|
-
scheduleUpdates(() => {
|
|
64
|
-
const items = [];
|
|
65
|
-
for (const item of data.items) {
|
|
66
|
-
if (data.batchToRemove.has(item.tag)) {
|
|
67
|
-
data.tags.delete(item.tag);
|
|
68
|
-
} else {
|
|
69
|
-
items.push(item);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
data.items = items;
|
|
73
|
-
data.sharableViewDescriptors.value = items;
|
|
74
|
-
data.batchToRemove = new Set();
|
|
75
|
-
data.waitForRemoveSync = false;
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
rebuildsharableViewDescriptors: (
|
|
81
|
-
sharableViewDescriptors: SharedValue<Descriptor[]>
|
|
82
|
-
) => {
|
|
83
|
-
data.sharableViewDescriptors = sharableViewDescriptors;
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
ref.current = data;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return ref.current;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function makeViewsRefSet<T>(): ViewRefSet<T> {
|
|
93
|
-
const ref = useRef<ViewRefSet<T> | null>(null);
|
|
94
|
-
if (ref.current === null) {
|
|
95
|
-
const data: ViewRefSet<T> = {
|
|
96
|
-
items: new Set(),
|
|
97
|
-
|
|
98
|
-
add: (item: T) => {
|
|
99
|
-
if (data.items.has(item)) return;
|
|
100
|
-
data.items.add(item);
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
remove: (item: T) => {
|
|
104
|
-
data.items.delete(item);
|
|
105
|
-
},
|
|
106
|
-
};
|
|
107
|
-
ref.current = data;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return ref.current;
|
|
111
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { NativeEvent } from './commonTypes';
|
|
2
|
-
import NativeReanimatedModule from './NativeReanimated';
|
|
3
|
-
|
|
4
|
-
function jsListener<T extends NativeEvent<T>>(
|
|
5
|
-
eventName: string,
|
|
6
|
-
handler: (event: T) => void
|
|
7
|
-
) {
|
|
8
|
-
return (evt: T) => {
|
|
9
|
-
handler({ ...evt.nativeEvent, eventName });
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default class WorkletEventHandler<T extends NativeEvent<T>> {
|
|
14
|
-
worklet: (event: T) => void;
|
|
15
|
-
eventNames: string[];
|
|
16
|
-
reattachNeeded: boolean;
|
|
17
|
-
listeners: Record<string, (event: T) => void>;
|
|
18
|
-
viewTag: number | undefined;
|
|
19
|
-
registrations: string[];
|
|
20
|
-
constructor(worklet: (event: T) => void, eventNames: string[] = []) {
|
|
21
|
-
this.worklet = worklet;
|
|
22
|
-
this.eventNames = eventNames;
|
|
23
|
-
this.reattachNeeded = false;
|
|
24
|
-
this.listeners = {};
|
|
25
|
-
this.viewTag = undefined;
|
|
26
|
-
this.registrations = [];
|
|
27
|
-
|
|
28
|
-
if (!NativeReanimatedModule.native) {
|
|
29
|
-
this.listeners = eventNames.reduce(
|
|
30
|
-
(acc: Record<string, (event: T) => void>, eventName: string) => {
|
|
31
|
-
acc[eventName] = jsListener(eventName, worklet);
|
|
32
|
-
return acc;
|
|
33
|
-
},
|
|
34
|
-
{}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
updateWorklet(newWorklet: (event: T) => void): void {
|
|
40
|
-
this.worklet = newWorklet;
|
|
41
|
-
this.reattachNeeded = true;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
registerForEvents(viewTag: number, fallbackEventName?: string): void {
|
|
45
|
-
this.viewTag = viewTag;
|
|
46
|
-
this.registrations = this.eventNames.map((eventName) =>
|
|
47
|
-
NativeReanimatedModule.registerEventHandler(
|
|
48
|
-
viewTag + eventName,
|
|
49
|
-
this.worklet
|
|
50
|
-
)
|
|
51
|
-
);
|
|
52
|
-
if (this.registrations.length === 0 && fallbackEventName) {
|
|
53
|
-
this.registrations.push(
|
|
54
|
-
NativeReanimatedModule.registerEventHandler(
|
|
55
|
-
viewTag + fallbackEventName,
|
|
56
|
-
this.worklet
|
|
57
|
-
)
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
unregisterFromEvents(): void {
|
|
63
|
-
this.registrations.forEach((id) =>
|
|
64
|
-
NativeReanimatedModule.unregisterEventHandler(id)
|
|
65
|
-
);
|
|
66
|
-
this.registrations = [];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AnimatedStyle,
|
|
3
|
-
StyleProps,
|
|
4
|
-
AnimatableValue,
|
|
5
|
-
AnimationObject,
|
|
6
|
-
Animation,
|
|
7
|
-
Timestamp,
|
|
8
|
-
AnimationCallback,
|
|
9
|
-
} from '../commonTypes';
|
|
10
|
-
|
|
11
|
-
export interface HigherOrderAnimation {
|
|
12
|
-
isHigherOrder?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type NextAnimation<T extends AnimationObject> = T | (() => T);
|
|
16
|
-
|
|
17
|
-
export interface DelayAnimation
|
|
18
|
-
extends Animation<DelayAnimation>,
|
|
19
|
-
HigherOrderAnimation {
|
|
20
|
-
startTime: Timestamp;
|
|
21
|
-
started: boolean;
|
|
22
|
-
previousAnimation: DelayAnimation | null;
|
|
23
|
-
current: AnimatableValue;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface RepeatAnimation
|
|
27
|
-
extends Animation<RepeatAnimation>,
|
|
28
|
-
HigherOrderAnimation {
|
|
29
|
-
reps: number;
|
|
30
|
-
startValue: AnimatableValue;
|
|
31
|
-
toValue?: AnimatableValue;
|
|
32
|
-
previousAnimation?: RepeatAnimation;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface SequenceAnimation
|
|
36
|
-
extends Animation<SequenceAnimation>,
|
|
37
|
-
HigherOrderAnimation {
|
|
38
|
-
animationIndex: number;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface StyleLayoutAnimation extends HigherOrderAnimation {
|
|
42
|
-
current: StyleProps;
|
|
43
|
-
styleAnimations: AnimatedStyle;
|
|
44
|
-
onFrame: (animation: StyleLayoutAnimation, timestamp: Timestamp) => boolean;
|
|
45
|
-
onStart: (
|
|
46
|
-
nextAnimation: StyleLayoutAnimation,
|
|
47
|
-
current: AnimatedStyle,
|
|
48
|
-
timestamp: Timestamp,
|
|
49
|
-
previousAnimation: StyleLayoutAnimation
|
|
50
|
-
) => void;
|
|
51
|
-
callback?: AnimationCallback;
|
|
52
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { defineAnimation } from './util';
|
|
2
|
-
import {
|
|
3
|
-
Animation,
|
|
4
|
-
AnimationCallback,
|
|
5
|
-
AnimationObject,
|
|
6
|
-
AnimatableValue,
|
|
7
|
-
Timestamp,
|
|
8
|
-
} from '../commonTypes';
|
|
9
|
-
import { Platform } from 'react-native';
|
|
10
|
-
|
|
11
|
-
interface DecayConfig {
|
|
12
|
-
deceleration?: number;
|
|
13
|
-
velocityFactor?: number;
|
|
14
|
-
clamp?: number[];
|
|
15
|
-
velocity?: number;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface DefaultDecayConfig {
|
|
19
|
-
deceleration: number;
|
|
20
|
-
velocityFactor: number;
|
|
21
|
-
clamp?: number[];
|
|
22
|
-
velocity: number;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface DecayAnimation extends Animation<DecayAnimation> {
|
|
26
|
-
lastTimestamp: Timestamp;
|
|
27
|
-
startTimestamp: Timestamp;
|
|
28
|
-
initialVelocity: number;
|
|
29
|
-
velocity: number;
|
|
30
|
-
current: AnimatableValue;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface InnerDecayAnimation
|
|
34
|
-
extends Omit<DecayAnimation, 'current'>,
|
|
35
|
-
AnimationObject {
|
|
36
|
-
current: number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function withDecay(
|
|
40
|
-
userConfig: DecayConfig,
|
|
41
|
-
callback?: AnimationCallback
|
|
42
|
-
): Animation<DecayAnimation> {
|
|
43
|
-
'worklet';
|
|
44
|
-
|
|
45
|
-
return defineAnimation<DecayAnimation>(0, () => {
|
|
46
|
-
'worklet';
|
|
47
|
-
const config: DefaultDecayConfig = {
|
|
48
|
-
deceleration: 0.998,
|
|
49
|
-
velocityFactor: Platform.OS !== 'web' ? 1 : 1000,
|
|
50
|
-
velocity: 0,
|
|
51
|
-
};
|
|
52
|
-
if (userConfig) {
|
|
53
|
-
Object.keys(userConfig).forEach(
|
|
54
|
-
(key) =>
|
|
55
|
-
((config as any)[key] = userConfig[key as keyof typeof userConfig])
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const VELOCITY_EPS = Platform.OS !== 'web' ? 1 : 1 / 20;
|
|
60
|
-
const SLOPE_FACTOR = 0.1;
|
|
61
|
-
|
|
62
|
-
function decay(animation: InnerDecayAnimation, now: number): boolean {
|
|
63
|
-
const {
|
|
64
|
-
lastTimestamp,
|
|
65
|
-
startTimestamp,
|
|
66
|
-
initialVelocity,
|
|
67
|
-
current,
|
|
68
|
-
velocity,
|
|
69
|
-
} = animation;
|
|
70
|
-
|
|
71
|
-
const deltaTime = Math.min(now - lastTimestamp, 64);
|
|
72
|
-
const v =
|
|
73
|
-
velocity *
|
|
74
|
-
Math.exp(
|
|
75
|
-
-(1 - config.deceleration) * (now - startTimestamp) * SLOPE_FACTOR
|
|
76
|
-
);
|
|
77
|
-
animation.current =
|
|
78
|
-
current + (v * config.velocityFactor * deltaTime) / 1000; // /1000 because time is in ms not in s
|
|
79
|
-
animation.velocity = v;
|
|
80
|
-
animation.lastTimestamp = now;
|
|
81
|
-
|
|
82
|
-
if (config.clamp) {
|
|
83
|
-
if (initialVelocity < 0 && animation.current <= config.clamp[0]) {
|
|
84
|
-
animation.current = config.clamp[0];
|
|
85
|
-
return true;
|
|
86
|
-
} else if (
|
|
87
|
-
initialVelocity > 0 &&
|
|
88
|
-
animation.current >= config.clamp[1]
|
|
89
|
-
) {
|
|
90
|
-
animation.current = config.clamp[1];
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return Math.abs(v) < VELOCITY_EPS;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function validateConfig(): void {
|
|
99
|
-
if (config.clamp) {
|
|
100
|
-
if (!Array.isArray(config.clamp)) {
|
|
101
|
-
throw Error(
|
|
102
|
-
`config.clamp must be an array but is ${typeof config.clamp}`
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
if (config.clamp.length !== 2) {
|
|
106
|
-
throw Error(
|
|
107
|
-
`clamp array must contain 2 items but is given ${config.clamp.length}`
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if (config.velocityFactor <= 0) {
|
|
112
|
-
throw Error(
|
|
113
|
-
`config.velocityFactor must be greather then 0 but is ${config.velocityFactor}`
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function onStart(
|
|
119
|
-
animation: DecayAnimation,
|
|
120
|
-
value: number,
|
|
121
|
-
now: Timestamp
|
|
122
|
-
): void {
|
|
123
|
-
animation.current = value;
|
|
124
|
-
animation.lastTimestamp = now;
|
|
125
|
-
animation.startTimestamp = now;
|
|
126
|
-
animation.initialVelocity = config.velocity;
|
|
127
|
-
validateConfig();
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return {
|
|
131
|
-
onFrame: decay,
|
|
132
|
-
onStart,
|
|
133
|
-
callback,
|
|
134
|
-
velocity: config.velocity ?? 0,
|
|
135
|
-
initialVelocity: 0,
|
|
136
|
-
current: 0,
|
|
137
|
-
lastTimestamp: 0,
|
|
138
|
-
startTimestamp: 0,
|
|
139
|
-
} as DecayAnimation;
|
|
140
|
-
});
|
|
141
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { defineAnimation } from './util';
|
|
2
|
-
import { Animation, Timestamp, AnimatableValue } from '../commonTypes';
|
|
3
|
-
import { NextAnimation, DelayAnimation } from './commonTypes';
|
|
4
|
-
|
|
5
|
-
export function withDelay(
|
|
6
|
-
delayMs: number,
|
|
7
|
-
_nextAnimation: NextAnimation<DelayAnimation>
|
|
8
|
-
): Animation<DelayAnimation> {
|
|
9
|
-
'worklet';
|
|
10
|
-
return defineAnimation<DelayAnimation>(_nextAnimation, () => {
|
|
11
|
-
'worklet';
|
|
12
|
-
const nextAnimation =
|
|
13
|
-
typeof _nextAnimation === 'function' ? _nextAnimation() : _nextAnimation;
|
|
14
|
-
|
|
15
|
-
function delay(animation: DelayAnimation, now: Timestamp): boolean {
|
|
16
|
-
const { startTime, started, previousAnimation } = animation;
|
|
17
|
-
|
|
18
|
-
if (now - startTime > delayMs) {
|
|
19
|
-
if (!started) {
|
|
20
|
-
nextAnimation.onStart(
|
|
21
|
-
nextAnimation,
|
|
22
|
-
animation.current,
|
|
23
|
-
now,
|
|
24
|
-
previousAnimation as DelayAnimation
|
|
25
|
-
);
|
|
26
|
-
animation.previousAnimation = null;
|
|
27
|
-
animation.started = true;
|
|
28
|
-
}
|
|
29
|
-
const finished = nextAnimation.onFrame(nextAnimation, now);
|
|
30
|
-
animation.current = nextAnimation.current;
|
|
31
|
-
return finished;
|
|
32
|
-
} else if (previousAnimation) {
|
|
33
|
-
const finished =
|
|
34
|
-
previousAnimation.finished ||
|
|
35
|
-
previousAnimation.onFrame(previousAnimation, now);
|
|
36
|
-
animation.current = previousAnimation.current;
|
|
37
|
-
if (finished) {
|
|
38
|
-
animation.previousAnimation = null;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function onStart(
|
|
45
|
-
animation: DelayAnimation,
|
|
46
|
-
value: AnimatableValue,
|
|
47
|
-
now: Timestamp,
|
|
48
|
-
previousAnimation: DelayAnimation
|
|
49
|
-
): void {
|
|
50
|
-
animation.startTime = now;
|
|
51
|
-
animation.started = false;
|
|
52
|
-
animation.current = value;
|
|
53
|
-
if (previousAnimation === animation) {
|
|
54
|
-
animation.previousAnimation = previousAnimation.previousAnimation;
|
|
55
|
-
} else {
|
|
56
|
-
animation.previousAnimation = previousAnimation;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const callback = (finished?: boolean): void => {
|
|
61
|
-
if (nextAnimation.callback) {
|
|
62
|
-
nextAnimation.callback(finished);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
return {
|
|
67
|
-
isHigherOrder: true,
|
|
68
|
-
onFrame: delay,
|
|
69
|
-
onStart,
|
|
70
|
-
current: nextAnimation.current,
|
|
71
|
-
callback,
|
|
72
|
-
previousAnimation: null,
|
|
73
|
-
startTime: 0,
|
|
74
|
-
started: false,
|
|
75
|
-
};
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated Kept for backward compatibility. Will be removed soon.
|
|
81
|
-
*/
|
|
82
|
-
export function delay(
|
|
83
|
-
delayMs: number,
|
|
84
|
-
_nextAnimation: NextAnimation<DelayAnimation>
|
|
85
|
-
): Animation<DelayAnimation> {
|
|
86
|
-
'worklet';
|
|
87
|
-
console.warn('Method `delay` is deprecated. Please use `withDelay` instead');
|
|
88
|
-
return withDelay(delayMs, _nextAnimation);
|
|
89
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
HigherOrderAnimation,
|
|
3
|
-
NextAnimation,
|
|
4
|
-
DelayAnimation,
|
|
5
|
-
RepeatAnimation,
|
|
6
|
-
SequenceAnimation,
|
|
7
|
-
StyleLayoutAnimation,
|
|
8
|
-
} from './commonTypes';
|
|
9
|
-
export { cancelAnimation, defineAnimation, initialUpdaterRun } from './util';
|
|
10
|
-
export { withTiming, TimingAnimation } from './timing';
|
|
11
|
-
export { withSpring, SpringAnimation } from './spring';
|
|
12
|
-
export { withDecay, DecayAnimation } from './decay';
|
|
13
|
-
export { withDelay } from './delay';
|
|
14
|
-
export { withRepeat } from './repeat';
|
|
15
|
-
export { withSequence } from './sequence';
|
|
16
|
-
export { withStyleAnimation } from './styleAnimation';
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { defineAnimation } from './util';
|
|
2
|
-
import {
|
|
3
|
-
Animation,
|
|
4
|
-
AnimationCallback,
|
|
5
|
-
AnimatableValue,
|
|
6
|
-
Timestamp,
|
|
7
|
-
} from '../commonTypes';
|
|
8
|
-
import { NextAnimation, RepeatAnimation } from './commonTypes';
|
|
9
|
-
|
|
10
|
-
export interface InnerRepeatAnimation
|
|
11
|
-
extends Omit<RepeatAnimation, 'toValue' | 'startValue'> {
|
|
12
|
-
toValue: number;
|
|
13
|
-
startValue: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function withRepeat(
|
|
17
|
-
_nextAnimation: NextAnimation<RepeatAnimation>,
|
|
18
|
-
numberOfReps = 2,
|
|
19
|
-
reverse = false,
|
|
20
|
-
callback?: AnimationCallback
|
|
21
|
-
): Animation<RepeatAnimation> {
|
|
22
|
-
'worklet';
|
|
23
|
-
|
|
24
|
-
return defineAnimation<RepeatAnimation>(_nextAnimation, () => {
|
|
25
|
-
'worklet';
|
|
26
|
-
|
|
27
|
-
const nextAnimation: RepeatAnimation =
|
|
28
|
-
typeof _nextAnimation === 'function' ? _nextAnimation() : _nextAnimation;
|
|
29
|
-
|
|
30
|
-
function repeat(animation: InnerRepeatAnimation, now: Timestamp): boolean {
|
|
31
|
-
const finished = nextAnimation.onFrame(nextAnimation, now);
|
|
32
|
-
animation.current = nextAnimation.current;
|
|
33
|
-
if (finished) {
|
|
34
|
-
animation.reps += 1;
|
|
35
|
-
// call inner animation's callback on every repetition
|
|
36
|
-
// as the second argument the animation's current value is passed
|
|
37
|
-
if (nextAnimation.callback) {
|
|
38
|
-
nextAnimation.callback(true /* finished */, animation.current);
|
|
39
|
-
}
|
|
40
|
-
if (numberOfReps > 0 && animation.reps >= numberOfReps) {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const startValue = reverse
|
|
45
|
-
? (nextAnimation.current as number)
|
|
46
|
-
: animation.startValue;
|
|
47
|
-
if (reverse) {
|
|
48
|
-
nextAnimation.toValue = animation.startValue;
|
|
49
|
-
animation.startValue = startValue;
|
|
50
|
-
}
|
|
51
|
-
nextAnimation.onStart(
|
|
52
|
-
nextAnimation,
|
|
53
|
-
startValue,
|
|
54
|
-
now,
|
|
55
|
-
nextAnimation.previousAnimation as RepeatAnimation
|
|
56
|
-
);
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const repCallback = (finished: boolean): void => {
|
|
63
|
-
if (callback) {
|
|
64
|
-
callback(finished);
|
|
65
|
-
}
|
|
66
|
-
// when cancelled call inner animation's callback
|
|
67
|
-
if (!finished && nextAnimation.callback) {
|
|
68
|
-
nextAnimation.callback(false /* finished */);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
function onStart(
|
|
73
|
-
animation: RepeatAnimation,
|
|
74
|
-
value: AnimatableValue,
|
|
75
|
-
now: Timestamp,
|
|
76
|
-
previousAnimation: RepeatAnimation
|
|
77
|
-
): void {
|
|
78
|
-
animation.startValue = value;
|
|
79
|
-
animation.reps = 0;
|
|
80
|
-
nextAnimation.onStart(nextAnimation, value, now, previousAnimation);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
isHigherOrder: true,
|
|
85
|
-
onFrame: repeat,
|
|
86
|
-
onStart,
|
|
87
|
-
reps: 0,
|
|
88
|
-
current: nextAnimation.current,
|
|
89
|
-
callback: repCallback,
|
|
90
|
-
startValue: 0,
|
|
91
|
-
} as RepeatAnimation;
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated Kept for backward compatibility. Will be removed soon.
|
|
97
|
-
*/
|
|
98
|
-
export function repeat(
|
|
99
|
-
_nextAnimation: NextAnimation<RepeatAnimation>,
|
|
100
|
-
numberOfReps = 2,
|
|
101
|
-
reverse = false,
|
|
102
|
-
callback?: AnimationCallback
|
|
103
|
-
): Animation<RepeatAnimation> {
|
|
104
|
-
'worklet';
|
|
105
|
-
console.warn(
|
|
106
|
-
'Method `repeat` is deprecated. Please use `withRepeat` instead'
|
|
107
|
-
);
|
|
108
|
-
return withRepeat(_nextAnimation, numberOfReps, reverse, callback);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function loop(
|
|
112
|
-
nextAnimation: NextAnimation<RepeatAnimation>,
|
|
113
|
-
numberOfLoops = 1
|
|
114
|
-
): Animation<RepeatAnimation> {
|
|
115
|
-
'worklet';
|
|
116
|
-
console.warn('Method `loop` is deprecated. Please use `withRepeat` instead');
|
|
117
|
-
return repeat(nextAnimation, Math.round(numberOfLoops * 2), true);
|
|
118
|
-
}
|