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,98 +0,0 @@
|
|
|
1
|
-
import { defineAnimation } from './util';
|
|
2
|
-
import { NextAnimation, SequenceAnimation } from './commonTypes';
|
|
3
|
-
import {
|
|
4
|
-
Animation,
|
|
5
|
-
AnimatableValue,
|
|
6
|
-
AnimationObject,
|
|
7
|
-
Timestamp,
|
|
8
|
-
} from '../commonTypes';
|
|
9
|
-
|
|
10
|
-
export function withSequence(
|
|
11
|
-
..._animations: NextAnimation<AnimationObject>[]
|
|
12
|
-
): Animation<SequenceAnimation> {
|
|
13
|
-
'worklet';
|
|
14
|
-
return defineAnimation<SequenceAnimation>(
|
|
15
|
-
_animations[0] as SequenceAnimation,
|
|
16
|
-
() => {
|
|
17
|
-
'worklet';
|
|
18
|
-
const animations = _animations.map((a) => {
|
|
19
|
-
const result = typeof a === 'function' ? a() : a;
|
|
20
|
-
result.finished = false;
|
|
21
|
-
return result;
|
|
22
|
-
});
|
|
23
|
-
const firstAnimation = animations[0];
|
|
24
|
-
|
|
25
|
-
const callback = (finished: boolean): void => {
|
|
26
|
-
if (finished) {
|
|
27
|
-
// we want to call the callback after every single animation
|
|
28
|
-
// not after all of them
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
// this is going to be called only if sequence has been cancelled
|
|
32
|
-
animations.forEach((animation) => {
|
|
33
|
-
if (typeof animation.callback === 'function' && !animation.finished) {
|
|
34
|
-
animation.callback(finished);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
function sequence(animation: SequenceAnimation, now: Timestamp): boolean {
|
|
40
|
-
const currentAnim = animations[animation.animationIndex];
|
|
41
|
-
const finished = currentAnim.onFrame(currentAnim, now);
|
|
42
|
-
animation.current = currentAnim.current;
|
|
43
|
-
if (finished) {
|
|
44
|
-
// we want to call the callback after every single animation
|
|
45
|
-
if (currentAnim.callback) {
|
|
46
|
-
currentAnim.callback(true /* finished */);
|
|
47
|
-
}
|
|
48
|
-
currentAnim.finished = true;
|
|
49
|
-
animation.animationIndex += 1;
|
|
50
|
-
if (animation.animationIndex < animations.length) {
|
|
51
|
-
const nextAnim = animations[animation.animationIndex];
|
|
52
|
-
nextAnim.onStart(nextAnim, currentAnim.current, now, currentAnim);
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function onStart(
|
|
61
|
-
animation: SequenceAnimation,
|
|
62
|
-
value: AnimatableValue,
|
|
63
|
-
now: Timestamp,
|
|
64
|
-
previousAnimation: SequenceAnimation
|
|
65
|
-
): void {
|
|
66
|
-
animation.animationIndex = 0;
|
|
67
|
-
if (previousAnimation === undefined) {
|
|
68
|
-
previousAnimation = animations[
|
|
69
|
-
animations.length - 1
|
|
70
|
-
] as SequenceAnimation;
|
|
71
|
-
}
|
|
72
|
-
firstAnimation.onStart(firstAnimation, value, now, previousAnimation);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
isHigherOrder: true,
|
|
77
|
-
onFrame: sequence,
|
|
78
|
-
onStart,
|
|
79
|
-
animationIndex: 0,
|
|
80
|
-
current: firstAnimation.current,
|
|
81
|
-
callback,
|
|
82
|
-
} as SequenceAnimation;
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @deprecated Kept for backward compatibility. Will be removed soon.
|
|
89
|
-
*/
|
|
90
|
-
export function sequence(
|
|
91
|
-
..._animations: NextAnimation<SequenceAnimation>[]
|
|
92
|
-
): Animation<SequenceAnimation> {
|
|
93
|
-
'worklet';
|
|
94
|
-
console.warn(
|
|
95
|
-
'Method `sequence` is deprecated. Please use `withSequence` instead'
|
|
96
|
-
);
|
|
97
|
-
return withSequence(..._animations);
|
|
98
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { defineAnimation } from './util';
|
|
2
|
-
import {
|
|
3
|
-
Animation,
|
|
4
|
-
AnimationCallback,
|
|
5
|
-
AnimatableValue,
|
|
6
|
-
Timestamp,
|
|
7
|
-
} from '../commonTypes';
|
|
8
|
-
|
|
9
|
-
interface SpringConfig {
|
|
10
|
-
mass?: number;
|
|
11
|
-
stiffness?: number;
|
|
12
|
-
overshootClamping?: boolean;
|
|
13
|
-
restDisplacementThreshold?: number;
|
|
14
|
-
restSpeedThreshold?: number;
|
|
15
|
-
velocity?: number;
|
|
16
|
-
damping?: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface SpringAnimation extends Animation<SpringAnimation> {
|
|
20
|
-
current: AnimatableValue;
|
|
21
|
-
toValue: AnimatableValue;
|
|
22
|
-
velocity: number;
|
|
23
|
-
lastTimestamp: Timestamp;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface InnerSpringAnimation
|
|
27
|
-
extends Omit<SpringAnimation, 'toValue' | 'current'> {
|
|
28
|
-
toValue: number;
|
|
29
|
-
current: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function withSpring(
|
|
33
|
-
toValue: AnimatableValue,
|
|
34
|
-
userConfig?: SpringConfig,
|
|
35
|
-
callback?: AnimationCallback
|
|
36
|
-
): Animation<SpringAnimation> {
|
|
37
|
-
'worklet';
|
|
38
|
-
|
|
39
|
-
return defineAnimation<SpringAnimation>(toValue, () => {
|
|
40
|
-
'worklet';
|
|
41
|
-
|
|
42
|
-
// TODO: figure out why we can't use spread or Object.assign here
|
|
43
|
-
// when user config is "frozen object" we can't enumerate it (perhaps
|
|
44
|
-
// something is wrong with the object prototype).
|
|
45
|
-
const config: Required<SpringConfig> = {
|
|
46
|
-
damping: 10,
|
|
47
|
-
mass: 1,
|
|
48
|
-
stiffness: 100,
|
|
49
|
-
overshootClamping: false,
|
|
50
|
-
restDisplacementThreshold: 0.01,
|
|
51
|
-
restSpeedThreshold: 2,
|
|
52
|
-
velocity: 0,
|
|
53
|
-
};
|
|
54
|
-
if (userConfig) {
|
|
55
|
-
Object.keys(userConfig).forEach(
|
|
56
|
-
(key) =>
|
|
57
|
-
((config as any)[key] = userConfig[key as keyof typeof userConfig])
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function spring(animation: InnerSpringAnimation, now: Timestamp): boolean {
|
|
62
|
-
const { toValue, lastTimestamp, current, velocity } = animation;
|
|
63
|
-
|
|
64
|
-
const deltaTime = Math.min(now - lastTimestamp, 64);
|
|
65
|
-
animation.lastTimestamp = now;
|
|
66
|
-
|
|
67
|
-
const c = config.damping;
|
|
68
|
-
const m = config.mass;
|
|
69
|
-
const k = config.stiffness;
|
|
70
|
-
|
|
71
|
-
const v0 = -velocity;
|
|
72
|
-
const x0 = toValue - current;
|
|
73
|
-
|
|
74
|
-
const zeta = c / (2 * Math.sqrt(k * m)); // damping ratio
|
|
75
|
-
const omega0 = Math.sqrt(k / m); // undamped angular frequency of the oscillator (rad/ms)
|
|
76
|
-
const omega1 = omega0 * Math.sqrt(1 - zeta ** 2); // exponential decay
|
|
77
|
-
|
|
78
|
-
const t = deltaTime / 1000;
|
|
79
|
-
|
|
80
|
-
const sin1 = Math.sin(omega1 * t);
|
|
81
|
-
const cos1 = Math.cos(omega1 * t);
|
|
82
|
-
|
|
83
|
-
// under damped
|
|
84
|
-
const underDampedEnvelope = Math.exp(-zeta * omega0 * t);
|
|
85
|
-
const underDampedFrag1 =
|
|
86
|
-
underDampedEnvelope *
|
|
87
|
-
(sin1 * ((v0 + zeta * omega0 * x0) / omega1) + x0 * cos1);
|
|
88
|
-
|
|
89
|
-
const underDampedPosition = toValue - underDampedFrag1;
|
|
90
|
-
// This looks crazy -- it's actually just the derivative of the oscillation function
|
|
91
|
-
const underDampedVelocity =
|
|
92
|
-
zeta * omega0 * underDampedFrag1 -
|
|
93
|
-
underDampedEnvelope *
|
|
94
|
-
(cos1 * (v0 + zeta * omega0 * x0) - omega1 * x0 * sin1);
|
|
95
|
-
|
|
96
|
-
// critically damped
|
|
97
|
-
const criticallyDampedEnvelope = Math.exp(-omega0 * t);
|
|
98
|
-
const criticallyDampedPosition =
|
|
99
|
-
toValue - criticallyDampedEnvelope * (x0 + (v0 + omega0 * x0) * t);
|
|
100
|
-
|
|
101
|
-
const criticallyDampedVelocity =
|
|
102
|
-
criticallyDampedEnvelope *
|
|
103
|
-
(v0 * (t * omega0 - 1) + t * x0 * omega0 * omega0);
|
|
104
|
-
|
|
105
|
-
const isOvershooting = () => {
|
|
106
|
-
if (config.overshootClamping && config.stiffness !== 0) {
|
|
107
|
-
return current < toValue
|
|
108
|
-
? animation.current > toValue
|
|
109
|
-
: animation.current < toValue;
|
|
110
|
-
} else {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const isVelocity = Math.abs(velocity) < config.restSpeedThreshold;
|
|
116
|
-
const isDisplacement =
|
|
117
|
-
config.stiffness === 0 ||
|
|
118
|
-
Math.abs(toValue - current) < config.restDisplacementThreshold;
|
|
119
|
-
|
|
120
|
-
if (zeta < 1) {
|
|
121
|
-
animation.current = underDampedPosition;
|
|
122
|
-
animation.velocity = underDampedVelocity;
|
|
123
|
-
} else {
|
|
124
|
-
animation.current = criticallyDampedPosition;
|
|
125
|
-
animation.velocity = criticallyDampedVelocity;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (isOvershooting() || (isVelocity && isDisplacement)) {
|
|
129
|
-
if (config.stiffness !== 0) {
|
|
130
|
-
animation.velocity = 0;
|
|
131
|
-
animation.current = toValue;
|
|
132
|
-
}
|
|
133
|
-
// clear lastTimestamp to avoid using stale value by the next spring animation that starts after this one
|
|
134
|
-
animation.lastTimestamp = 0;
|
|
135
|
-
return true;
|
|
136
|
-
}
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function onStart(
|
|
141
|
-
animation: SpringAnimation,
|
|
142
|
-
value: number,
|
|
143
|
-
now: Timestamp,
|
|
144
|
-
previousAnimation: SpringAnimation
|
|
145
|
-
): void {
|
|
146
|
-
animation.current = value;
|
|
147
|
-
if (previousAnimation) {
|
|
148
|
-
animation.velocity =
|
|
149
|
-
previousAnimation.velocity || animation.velocity || 0;
|
|
150
|
-
animation.lastTimestamp = previousAnimation.lastTimestamp || now;
|
|
151
|
-
} else {
|
|
152
|
-
animation.lastTimestamp = now;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
return {
|
|
157
|
-
onFrame: spring,
|
|
158
|
-
onStart,
|
|
159
|
-
toValue,
|
|
160
|
-
velocity: config.velocity || 0,
|
|
161
|
-
current: toValue,
|
|
162
|
-
callback,
|
|
163
|
-
lastTimestamp: 0,
|
|
164
|
-
} as SpringAnimation;
|
|
165
|
-
});
|
|
166
|
-
}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import { defineAnimation } from './util';
|
|
2
|
-
import {
|
|
3
|
-
Timestamp,
|
|
4
|
-
AnimatableValue,
|
|
5
|
-
AnimationObject,
|
|
6
|
-
Animation,
|
|
7
|
-
AnimatedStyle,
|
|
8
|
-
NestedObject,
|
|
9
|
-
NestedObjectValues,
|
|
10
|
-
} from '../commonTypes';
|
|
11
|
-
import { StyleLayoutAnimation } from './commonTypes';
|
|
12
|
-
import { withTiming } from './timing';
|
|
13
|
-
import { ColorProperties } from '../UpdateProps';
|
|
14
|
-
import { processColor } from '../Colors';
|
|
15
|
-
|
|
16
|
-
// resolves path to value for nested objects
|
|
17
|
-
// if path cannot be resolved returns undefined
|
|
18
|
-
export function resolvePath<T>(
|
|
19
|
-
obj: NestedObject<T>,
|
|
20
|
-
path: AnimatableValue[] | AnimatableValue
|
|
21
|
-
): NestedObjectValues<T> | undefined {
|
|
22
|
-
'worklet';
|
|
23
|
-
const keys: AnimatableValue[] = Array.isArray(path) ? path : [path];
|
|
24
|
-
return keys.reduce<NestedObjectValues<T> | undefined>((acc, current) => {
|
|
25
|
-
if (Array.isArray(acc) && typeof current === 'number') {
|
|
26
|
-
return acc[current];
|
|
27
|
-
} else if (typeof acc === 'object' && (current as number | string) in acc) {
|
|
28
|
-
return (acc as { [key: string]: NestedObjectValues<T> })[
|
|
29
|
-
current as number | string
|
|
30
|
-
];
|
|
31
|
-
}
|
|
32
|
-
return undefined;
|
|
33
|
-
}, obj);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// set value at given path
|
|
37
|
-
type Path = Array<string | number> | string | number;
|
|
38
|
-
export function setPath<T>(
|
|
39
|
-
obj: NestedObject<T>,
|
|
40
|
-
path: Path,
|
|
41
|
-
value: NestedObjectValues<T>
|
|
42
|
-
): void {
|
|
43
|
-
'worklet';
|
|
44
|
-
const keys: Path = Array.isArray(path) ? path : [path];
|
|
45
|
-
let currObj: NestedObjectValues<T> = obj;
|
|
46
|
-
for (let i = 0; i < keys.length - 1; i++) {
|
|
47
|
-
// creates entry if there isn't one
|
|
48
|
-
currObj = currObj as { [key: string]: NestedObjectValues<T> };
|
|
49
|
-
if (!(keys[i] in currObj)) {
|
|
50
|
-
// if next key is a number create an array
|
|
51
|
-
if (typeof keys[i + 1] === 'number') {
|
|
52
|
-
currObj[keys[i]] = [];
|
|
53
|
-
} else {
|
|
54
|
-
currObj[keys[i]] = {};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
currObj = currObj[keys[i]];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
(currObj as { [key: string]: NestedObjectValues<T> })[keys[keys.length - 1]] =
|
|
61
|
-
value;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface NestedObjectEntry<T> {
|
|
65
|
-
value: NestedObjectValues<T>;
|
|
66
|
-
path: (string | number)[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function withStyleAnimation(
|
|
70
|
-
styleAnimations: AnimatedStyle
|
|
71
|
-
): StyleLayoutAnimation {
|
|
72
|
-
'worklet';
|
|
73
|
-
return defineAnimation<StyleLayoutAnimation>({}, () => {
|
|
74
|
-
'worklet';
|
|
75
|
-
|
|
76
|
-
const onFrame = (
|
|
77
|
-
animation: StyleLayoutAnimation,
|
|
78
|
-
now: Timestamp
|
|
79
|
-
): boolean => {
|
|
80
|
-
let stillGoing = false;
|
|
81
|
-
const entriesToCheck: NestedObjectEntry<AnimationObject>[] = [
|
|
82
|
-
{ value: animation.styleAnimations, path: [] },
|
|
83
|
-
];
|
|
84
|
-
while (entriesToCheck.length > 0) {
|
|
85
|
-
const currentEntry: NestedObjectEntry<AnimationObject> =
|
|
86
|
-
entriesToCheck.pop() as NestedObjectEntry<AnimationObject>;
|
|
87
|
-
if (Array.isArray(currentEntry.value)) {
|
|
88
|
-
for (let index = 0; index < currentEntry.value.length; index++) {
|
|
89
|
-
entriesToCheck.push({
|
|
90
|
-
value: currentEntry.value[index],
|
|
91
|
-
path: currentEntry.path.concat(index),
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
} else if (
|
|
95
|
-
typeof currentEntry.value === 'object' &&
|
|
96
|
-
currentEntry.value.onFrame === undefined
|
|
97
|
-
) {
|
|
98
|
-
// nested object
|
|
99
|
-
for (const key of Object.keys(currentEntry.value)) {
|
|
100
|
-
entriesToCheck.push({
|
|
101
|
-
value: currentEntry.value[key],
|
|
102
|
-
path: currentEntry.path.concat(key),
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
} else {
|
|
106
|
-
const currentStyleAnimation: AnimationObject =
|
|
107
|
-
currentEntry.value as AnimationObject;
|
|
108
|
-
if (currentStyleAnimation.finished) {
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
const finished = currentStyleAnimation.onFrame(
|
|
112
|
-
currentStyleAnimation,
|
|
113
|
-
now
|
|
114
|
-
);
|
|
115
|
-
if (finished) {
|
|
116
|
-
currentStyleAnimation.finished = true;
|
|
117
|
-
if (currentStyleAnimation.callback) {
|
|
118
|
-
currentStyleAnimation.callback(true);
|
|
119
|
-
}
|
|
120
|
-
} else {
|
|
121
|
-
stillGoing = true;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (ColorProperties.includes(currentEntry.path[0] as string)) {
|
|
125
|
-
currentStyleAnimation.current = processColor(
|
|
126
|
-
currentStyleAnimation.current
|
|
127
|
-
) as number;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
setPath(
|
|
131
|
-
animation.current,
|
|
132
|
-
currentEntry.path,
|
|
133
|
-
currentStyleAnimation.current
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return !stillGoing;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const onStart = (
|
|
141
|
-
animation: StyleLayoutAnimation,
|
|
142
|
-
value: AnimatedStyle,
|
|
143
|
-
now: Timestamp,
|
|
144
|
-
previousAnimation: StyleLayoutAnimation
|
|
145
|
-
): void => {
|
|
146
|
-
const entriesToCheck: NestedObjectEntry<
|
|
147
|
-
AnimationObject | AnimatableValue
|
|
148
|
-
>[] = [{ value: styleAnimations, path: [] }];
|
|
149
|
-
while (entriesToCheck.length > 0) {
|
|
150
|
-
const currentEntry: NestedObjectEntry<
|
|
151
|
-
AnimationObject | AnimatableValue
|
|
152
|
-
> = entriesToCheck.pop() as NestedObjectEntry<
|
|
153
|
-
AnimationObject | AnimatableValue
|
|
154
|
-
>;
|
|
155
|
-
if (Array.isArray(currentEntry.value)) {
|
|
156
|
-
for (let index = 0; index < currentEntry.value.length; index++) {
|
|
157
|
-
entriesToCheck.push({
|
|
158
|
-
value: currentEntry.value[index],
|
|
159
|
-
path: currentEntry.path.concat(index),
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
} else if (
|
|
163
|
-
typeof currentEntry.value === 'object' &&
|
|
164
|
-
currentEntry.value.onStart === undefined
|
|
165
|
-
) {
|
|
166
|
-
for (const key of Object.keys(currentEntry.value)) {
|
|
167
|
-
entriesToCheck.push({
|
|
168
|
-
value: currentEntry.value[key],
|
|
169
|
-
path: currentEntry.path.concat(key),
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
} else {
|
|
173
|
-
const prevAnimation = resolvePath(
|
|
174
|
-
previousAnimation?.styleAnimations,
|
|
175
|
-
currentEntry.path
|
|
176
|
-
);
|
|
177
|
-
let prevVal = resolvePath(value, currentEntry.path);
|
|
178
|
-
if (prevAnimation && !prevVal) {
|
|
179
|
-
prevVal = prevAnimation.current;
|
|
180
|
-
}
|
|
181
|
-
if (prevVal === undefined) {
|
|
182
|
-
console.warn(
|
|
183
|
-
`Initial values for animation are missing for property ${currentEntry.path.join(
|
|
184
|
-
'.'
|
|
185
|
-
)}`
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
setPath(animation.current, currentEntry.path, prevVal);
|
|
189
|
-
let currentAnimation: AnimationObject;
|
|
190
|
-
if (
|
|
191
|
-
typeof currentEntry.value !== 'object' ||
|
|
192
|
-
!currentEntry.value.onStart
|
|
193
|
-
) {
|
|
194
|
-
currentAnimation = withTiming(
|
|
195
|
-
currentEntry.value as AnimatableValue,
|
|
196
|
-
{ duration: 0 }
|
|
197
|
-
);
|
|
198
|
-
setPath(
|
|
199
|
-
animation.styleAnimations,
|
|
200
|
-
currentEntry.path,
|
|
201
|
-
currentAnimation
|
|
202
|
-
);
|
|
203
|
-
} else {
|
|
204
|
-
currentAnimation = currentEntry.value as Animation<AnimationObject>;
|
|
205
|
-
}
|
|
206
|
-
currentAnimation.onStart(
|
|
207
|
-
currentAnimation,
|
|
208
|
-
prevVal,
|
|
209
|
-
now,
|
|
210
|
-
prevAnimation
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
const callback = (finished: boolean): void => {
|
|
217
|
-
if (!finished) {
|
|
218
|
-
const animationsToCheck: NestedObjectValues<AnimationObject>[] = [
|
|
219
|
-
styleAnimations,
|
|
220
|
-
];
|
|
221
|
-
while (animationsToCheck.length > 0) {
|
|
222
|
-
const currentAnimation: NestedObjectValues<AnimationObject> =
|
|
223
|
-
animationsToCheck.pop() as NestedObjectValues<AnimationObject>;
|
|
224
|
-
if (Array.isArray(currentAnimation)) {
|
|
225
|
-
for (const element of currentAnimation) {
|
|
226
|
-
animationsToCheck.push(element);
|
|
227
|
-
}
|
|
228
|
-
} else if (
|
|
229
|
-
typeof currentAnimation === 'object' &&
|
|
230
|
-
currentAnimation.onStart === undefined
|
|
231
|
-
) {
|
|
232
|
-
for (const value of Object.values(currentAnimation)) {
|
|
233
|
-
animationsToCheck.push(value);
|
|
234
|
-
}
|
|
235
|
-
} else {
|
|
236
|
-
const currentStyleAnimation: AnimationObject =
|
|
237
|
-
currentAnimation as AnimationObject;
|
|
238
|
-
if (
|
|
239
|
-
!currentStyleAnimation.finished &&
|
|
240
|
-
currentStyleAnimation.callback
|
|
241
|
-
) {
|
|
242
|
-
currentStyleAnimation.callback(false);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
return {
|
|
250
|
-
isHigherOrder: true,
|
|
251
|
-
onFrame,
|
|
252
|
-
onStart,
|
|
253
|
-
current: {},
|
|
254
|
-
styleAnimations,
|
|
255
|
-
callback,
|
|
256
|
-
} as StyleLayoutAnimation;
|
|
257
|
-
});
|
|
258
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { Easing, EasingFn, EasingFactoryFn } from '../Easing';
|
|
2
|
-
import { defineAnimation } from './util';
|
|
3
|
-
import {
|
|
4
|
-
Animation,
|
|
5
|
-
AnimationCallback,
|
|
6
|
-
Timestamp,
|
|
7
|
-
AnimatableValue,
|
|
8
|
-
} from '../commonTypes';
|
|
9
|
-
|
|
10
|
-
interface TimingConfig {
|
|
11
|
-
duration?: number;
|
|
12
|
-
easing?: EasingFn | EasingFactoryFn;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface TimingAnimation extends Animation<TimingAnimation> {
|
|
16
|
-
type: string;
|
|
17
|
-
easing: EasingFn;
|
|
18
|
-
startValue: AnimatableValue;
|
|
19
|
-
startTime: Timestamp;
|
|
20
|
-
progress: number;
|
|
21
|
-
toValue: AnimatableValue;
|
|
22
|
-
current: AnimatableValue;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface InnerTimingAnimation
|
|
26
|
-
extends Omit<TimingAnimation, 'toValue' | 'current'> {
|
|
27
|
-
toValue: number;
|
|
28
|
-
current: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function withTiming(
|
|
32
|
-
toValue: AnimatableValue,
|
|
33
|
-
userConfig?: TimingConfig,
|
|
34
|
-
callback?: AnimationCallback
|
|
35
|
-
): Animation<TimingAnimation> {
|
|
36
|
-
'worklet';
|
|
37
|
-
|
|
38
|
-
return defineAnimation<TimingAnimation>(toValue, () => {
|
|
39
|
-
'worklet';
|
|
40
|
-
const config: Required<TimingConfig> = {
|
|
41
|
-
duration: 300,
|
|
42
|
-
easing: Easing.inOut(Easing.quad),
|
|
43
|
-
};
|
|
44
|
-
if (userConfig) {
|
|
45
|
-
Object.keys(userConfig).forEach(
|
|
46
|
-
(key) =>
|
|
47
|
-
((config as any)[key] = userConfig[key as keyof typeof userConfig])
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function timing(animation: InnerTimingAnimation, now: Timestamp): boolean {
|
|
52
|
-
const { toValue, startTime, startValue } = animation;
|
|
53
|
-
const runtime = now - startTime;
|
|
54
|
-
|
|
55
|
-
if (runtime >= config.duration) {
|
|
56
|
-
// reset startTime to avoid reusing finished animation config in `start` method
|
|
57
|
-
animation.startTime = 0;
|
|
58
|
-
animation.current = toValue;
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
const progress = animation.easing(runtime / config.duration);
|
|
62
|
-
animation.current =
|
|
63
|
-
(startValue as number) + (toValue - (startValue as number)) * progress;
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function onStart(
|
|
68
|
-
animation: TimingAnimation,
|
|
69
|
-
value: number,
|
|
70
|
-
now: Timestamp,
|
|
71
|
-
previousAnimation: Animation<TimingAnimation>
|
|
72
|
-
): void {
|
|
73
|
-
if (
|
|
74
|
-
previousAnimation &&
|
|
75
|
-
(previousAnimation as TimingAnimation).type === 'timing' &&
|
|
76
|
-
(previousAnimation as TimingAnimation).toValue === toValue &&
|
|
77
|
-
(previousAnimation as TimingAnimation).startTime
|
|
78
|
-
) {
|
|
79
|
-
// to maintain continuity of timing animations we check if we are starting
|
|
80
|
-
// new timing over the old one with the same parameters. If so, we want
|
|
81
|
-
// to copy animation timeline properties
|
|
82
|
-
animation.startTime = (previousAnimation as TimingAnimation).startTime;
|
|
83
|
-
animation.startValue = (
|
|
84
|
-
previousAnimation as TimingAnimation
|
|
85
|
-
).startValue;
|
|
86
|
-
} else {
|
|
87
|
-
animation.startTime = now;
|
|
88
|
-
animation.startValue = value;
|
|
89
|
-
}
|
|
90
|
-
animation.current = value;
|
|
91
|
-
if (typeof config.easing === 'object') {
|
|
92
|
-
animation.easing = config.easing.factory();
|
|
93
|
-
} else {
|
|
94
|
-
animation.easing = config.easing;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return {
|
|
99
|
-
type: 'timing',
|
|
100
|
-
onFrame: timing,
|
|
101
|
-
onStart: onStart as (animation: TimingAnimation, now: number) => boolean,
|
|
102
|
-
progress: 0,
|
|
103
|
-
toValue,
|
|
104
|
-
startValue: 0,
|
|
105
|
-
startTime: 0,
|
|
106
|
-
easing: () => 0,
|
|
107
|
-
current: toValue,
|
|
108
|
-
callback,
|
|
109
|
-
} as TimingAnimation;
|
|
110
|
-
});
|
|
111
|
-
}
|