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.
Files changed (580) hide show
  1. package/CHANGELOG.md +28 -8
  2. package/README.md +2 -2
  3. package/android/build.gradle +4 -63
  4. package/android/src/debug/java/expo/modules/devmenu/DevMenuActivity.kt +39 -1
  5. package/android/src/debug/java/expo/modules/devmenu/DevMenuHost.kt +0 -7
  6. package/android/src/debug/java/expo/modules/devmenu/DevMenuManager.kt +9 -10
  7. package/android/src/main/java/expo/modules/devmenu/DevMenuPackage.kt +62 -5
  8. package/android/src/main/java/expo/modules/devmenu/modules/DevMenuInternalModule.kt +3 -0
  9. package/android/src/main/java/expo/modules/devmenu/modules/DevMenuModule.kt +23 -7
  10. package/android/src/main/java/expo/modules/devmenu/modules/internals/DevMenuInternalMenuControllerModule.kt +9 -4
  11. package/android/src/main/res/layout/bottom_sheet.xml +24 -0
  12. package/android/src/release/java/expo/modules/devmenu/DevMenuManager.kt +3 -1
  13. package/app/App.tsx +3 -3
  14. package/app/components/AppProviders.tsx +1 -4
  15. package/app/components/Main.tsx +197 -184
  16. package/app/components/Onboarding.tsx +7 -10
  17. package/app/hooks/useDevSettings.tsx +8 -9
  18. package/app/native-modules/DevMenu.ts +10 -2
  19. package/assets/EXDevMenuApp.android.js +455 -701
  20. package/assets/EXDevMenuApp.ios.js +455 -702
  21. package/build/DevMenu.d.ts +2 -0
  22. package/build/DevMenu.d.ts.map +1 -1
  23. package/build/DevMenu.js +7 -1
  24. package/build/DevMenu.js.map +1 -1
  25. package/build/ExpoDevMenu.types.d.ts +7 -1
  26. package/build/ExpoDevMenu.types.d.ts.map +1 -1
  27. package/build/ExpoDevMenu.types.js.map +1 -1
  28. package/build/ExpoDevMenu.web.d.ts.map +1 -1
  29. package/build/ExpoDevMenu.web.js +6 -0
  30. package/build/ExpoDevMenu.web.js.map +1 -1
  31. package/expo-dev-menu.podspec +21 -103
  32. package/expo-module.config.json +6 -0
  33. package/ios/DevMenuAppInstance.swift +8 -6
  34. package/ios/DevMenuManager.swift +36 -19
  35. package/ios/DevMenuRCTBridge.h +4 -0
  36. package/ios/{DevMenuRCTBridge.m → DevMenuRCTBridge.mm} +45 -6
  37. package/ios/DevMenuViewController.swift +1 -1
  38. package/ios/DevMenuWindow.swift +97 -4
  39. package/ios/EXDevMenuAppInfo.m +12 -10
  40. package/ios/Headers/EXDevMenu-Bridging-Header.h +0 -1
  41. package/ios/Modules/DevMenuInternalModule.swift +59 -85
  42. package/ios/Modules/DevMenuModule.swift +34 -15
  43. package/ios/Modules/DevMenuPreferences.swift +15 -26
  44. package/ios/OverlayContainer/Internal/ConcreteOverlayContainerContextTargetNotchPolicy.swift +25 -0
  45. package/ios/OverlayContainer/Internal/ConcreteOverlayContainerContextTransitioning.swift +36 -0
  46. package/ios/OverlayContainer/Internal/ConcreteOverlayContainerDimissingPolicyContext.swift +41 -0
  47. package/ios/OverlayContainer/Internal/ConcreteOverlayTranslationParameters.swift +14 -0
  48. package/ios/OverlayContainer/Internal/DraggingOverlayContainerTransitionCoordinator.swift +76 -0
  49. package/ios/OverlayContainer/Internal/Extensions/CGFloat+Round.swift +16 -0
  50. package/ios/OverlayContainer/Internal/Extensions/CGGeometry+Utils.swift +26 -0
  51. package/ios/OverlayContainer/Internal/Extensions/OverlayContainerViewControllerDelegate+Defaults.swift +58 -0
  52. package/ios/OverlayContainer/Internal/Extensions/UIPanGesture+Utils.swift +28 -0
  53. package/ios/OverlayContainer/Internal/Extensions/UIScrollViiew+Utils.swift +40 -0
  54. package/ios/OverlayContainer/Internal/Extensions/UIView+Constraints.swift +28 -0
  55. package/ios/OverlayContainer/Internal/Extensions/UIView+Subviews.swift +14 -0
  56. package/ios/OverlayContainer/Internal/Extensions/UIViewController+Children.swift +40 -0
  57. package/ios/OverlayContainer/Internal/HeightContraintOverlayTranslationController.swift +296 -0
  58. package/ios/OverlayContainer/Internal/InterruptibleAnimatorOverlayContainerTransitionCoordinator.swift +75 -0
  59. package/ios/OverlayContainer/Internal/OverlayContainerConfiguration.swift +63 -0
  60. package/ios/OverlayContainer/Internal/OverlayContainerConfigurationImplementation.swift +130 -0
  61. package/ios/OverlayContainer/Internal/OverlayScrollViewDelegate.swift +16 -0
  62. package/ios/OverlayContainer/Internal/OverlayScrollViewDelegateProxy.swift +96 -0
  63. package/ios/OverlayContainer/Internal/OverlayTranslationController.swift +26 -0
  64. package/ios/OverlayContainer/Internal/OverlayTranslationDriver.swift +12 -0
  65. package/ios/OverlayContainer/Internal/OverlayTranslationGestureRecognizer.swift +40 -0
  66. package/ios/OverlayContainer/Internal/PanGestureOverlayTranslationDriver.swift +68 -0
  67. package/ios/OverlayContainer/Internal/ScrollViewOverlayTranslationDriver.swift +135 -0
  68. package/ios/OverlayContainer/Internal/Views/GroundView.swift +10 -0
  69. package/ios/OverlayContainer/Internal/Views/OverlayContainerView.swift +10 -0
  70. package/ios/OverlayContainer/Internal/Views/OverlayTranslationContainerView.swift +10 -0
  71. package/ios/OverlayContainer/Internal/Views/OverlayTranslationView.swift +10 -0
  72. package/ios/OverlayContainer/OverlayContainerPresentationController.swift +88 -0
  73. package/ios/OverlayContainer/OverlayContainerSheetDimmingView.swift +81 -0
  74. package/ios/OverlayContainer/OverlayContainerSheetDismissalPolicy.swift +91 -0
  75. package/ios/OverlayContainer/OverlayContainerSheetPresentationController.swift +156 -0
  76. package/ios/OverlayContainer/OverlayContainerSheetPresentationControllerDelegate.swift +26 -0
  77. package/ios/OverlayContainer/OverlayContainerTransitionCoordinator.swift +80 -0
  78. package/ios/OverlayContainer/OverlayContainerViewController.swift +412 -0
  79. package/ios/OverlayContainer/OverlayContainerViewControllerDelegate.swift +155 -0
  80. package/ios/OverlayContainer/OverlayTransitioningDelegate.swift +67 -0
  81. package/ios/OverlayContainer/OverlayTranslationFunction.swift +29 -0
  82. package/ios/OverlayContainer/PassThroughView.swift +24 -0
  83. package/ios/OverlayContainer/RubberBandOverlayTranslationFunction.swift +44 -0
  84. package/ios/OverlayContainer/RushingForwardTargetNotchPolicy.swift +52 -0
  85. package/ios/OverlayContainer/SpringOverlayTranslationAnimationController.swift +70 -0
  86. package/ios/Tests/DevMenuAppInstanceTest.swift +2 -4
  87. package/ios/Tests/DevMenuInternalModuleTest.swift +7 -6
  88. package/mocks/react-native-gesture-handler/src/index.tsx +39 -0
  89. package/package.json +6 -6
  90. package/scripts/start.sh +1 -1
  91. package/setupTests.ts +0 -11
  92. package/src/DevMenu.ts +10 -2
  93. package/src/ExpoDevMenu.types.ts +4 -1
  94. package/src/ExpoDevMenu.web.ts +6 -0
  95. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProvider.swift +52 -0
  96. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProviderManager.swift +54 -0
  97. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewEdges.swift +9 -0
  98. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewMode.swift +7 -0
  99. package/vendored/react-native-safe-area-context/ios/SafeAreaView/RCTView+DevMenuSafeAreaCompat.swift +47 -0
  100. package/vendored/react-native-safe-area-context/src/InitialWindow.native.ts +7 -8
  101. package/vendored/react-native-safe-area-context/src/NativeSafeAreaProvider.native.tsx +5 -4
  102. package/android/src/expo-44/java/expo/modules/devmenu/DevMenuPackageDelegate.kt +0 -13
  103. package/android/src/expo-45/java/expo/modules/devmenu/DevMenuPackageDelegate.kt +0 -65
  104. package/android/src/release/java/expo/modules/devmenu/DevMenuPackageDelegate.kt +0 -13
  105. package/app/components/BottomSheet.tsx +0 -705
  106. package/app/components/GestureHandlerTouchableWrapper.tsx +0 -15
  107. package/app/hooks/useBottomSheet.tsx +0 -95
  108. package/ios/DevMenuBaseAppInstance+Reanimated.mm +0 -52
  109. package/ios/DevMenuBaseAppInstance.h +0 -6
  110. package/ios/DevMenuVendoredModulesUtils.h +0 -13
  111. package/ios/DevMenuVendoredModulesUtils.m +0 -56
  112. package/ios/Modules/DevMenuInternalModule.m +0 -34
  113. package/ios/Modules/DevMenuModule.m +0 -15
  114. package/ios/Modules/DevMenuPreferences.m +0 -10
  115. package/ios/Tests/DevMenuVendoredModulesUtilsTests.swift +0 -17
  116. package/scripts/reanimated_utils.rb +0 -91
  117. package/vendored/react-native-gesture-handler/RNGestureHandler.podspec.json +0 -21
  118. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/common/GestureHandlerStateManager.kt +0 -5
  119. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.kt +0 -18
  120. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/Extensions.kt +0 -11
  121. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/FlingGestureHandler.kt +0 -96
  122. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandler.kt +0 -713
  123. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerInteractionController.kt +0 -8
  124. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerOrchestrator.kt +0 -562
  125. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerRegistry.kt +0 -8
  126. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.kt +0 -21
  127. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/GestureUtils.kt +0 -49
  128. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/LongPressGestureHandler.kt +0 -97
  129. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/ManualGestureHandler.kt +0 -11
  130. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/NativeViewGestureHandler.kt +0 -129
  131. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/OnTouchEventListener.kt +0 -9
  132. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/PanGestureHandler.kt +0 -289
  133. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/PinchGestureHandler.kt +0 -88
  134. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/PointerEventsConfig.kt +0 -23
  135. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/RotationGestureDetector.kt +0 -125
  136. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/RotationGestureHandler.kt +0 -79
  137. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/TapGestureHandler.kt +0 -167
  138. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/ViewConfigurationHelper.kt +0 -10
  139. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +0 -349
  140. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt +0 -57
  141. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.kt +0 -59
  142. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerEventDataExtractor.kt +0 -8
  143. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +0 -61
  144. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +0 -686
  145. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerPackage.kt +0 -17
  146. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt +0 -95
  147. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +0 -132
  148. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootInterface.kt +0 -5
  149. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +0 -68
  150. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt +0 -34
  151. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.kt +0 -66
  152. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt +0 -69
  153. package/vendored/react-native-gesture-handler/android/devmenu/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +0 -51
  154. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandler.h +0 -87
  155. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandler.m +0 -454
  156. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerButton.h +0 -18
  157. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerButton.m +0 -70
  158. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerDirection.h +0 -8
  159. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerEvents.h +0 -65
  160. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerEvents.m +0 -255
  161. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerManager.h +0 -36
  162. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerManager.m +0 -221
  163. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerModule.h +0 -10
  164. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerModule.m +0 -235
  165. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerPointerTracker.h +0 -26
  166. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerPointerTracker.m +0 -237
  167. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerRegistry.h +0 -19
  168. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerRegistry.m +0 -60
  169. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerState.h +0 -10
  170. package/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerStateManager.h +0 -5
  171. package/vendored/react-native-gesture-handler/ios/DevMenuRNManualActivationRecognizer.h +0 -10
  172. package/vendored/react-native-gesture-handler/ios/DevMenuRNManualActivationRecognizer.m +0 -80
  173. package/vendored/react-native-gesture-handler/ios/DevMenuRNRootViewGestureRecognizer.h +0 -17
  174. package/vendored/react-native-gesture-handler/ios/DevMenuRNRootViewGestureRecognizer.m +0 -93
  175. package/vendored/react-native-gesture-handler/ios/DevMenuRNTouchEventType.h +0 -9
  176. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNFlingHandler.h +0 -4
  177. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNFlingHandler.m +0 -106
  178. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNForceTouchHandler.h +0 -4
  179. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNForceTouchHandler.m +0 -173
  180. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNLongPressHandler.h +0 -12
  181. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNLongPressHandler.m +0 -185
  182. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNManualHandler.h +0 -4
  183. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNManualHandler.m +0 -73
  184. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNNativeViewHandler.h +0 -15
  185. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNNativeViewHandler.m +0 -177
  186. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPanHandler.h +0 -12
  187. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPanHandler.m +0 -306
  188. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPinchHandler.h +0 -12
  189. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNPinchHandler.m +0 -94
  190. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNRotationHandler.h +0 -12
  191. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNRotationHandler.m +0 -94
  192. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNTapHandler.h +0 -12
  193. package/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNTapHandler.m +0 -265
  194. package/vendored/react-native-gesture-handler/jestSetup.js +0 -7
  195. package/vendored/react-native-gesture-handler/src/Directions.ts +0 -9
  196. package/vendored/react-native-gesture-handler/src/EventType.ts +0 -10
  197. package/vendored/react-native-gesture-handler/src/GestureHandlerRootView.android.tsx +0 -18
  198. package/vendored/react-native-gesture-handler/src/GestureHandlerRootView.tsx +0 -12
  199. package/vendored/react-native-gesture-handler/src/PlatformConstants.ts +0 -8
  200. package/vendored/react-native-gesture-handler/src/PlatformConstants.web.ts +0 -5
  201. package/vendored/react-native-gesture-handler/src/RNGestureHandlerModule.ts +0 -35
  202. package/vendored/react-native-gesture-handler/src/RNGestureHandlerModule.web.ts +0 -61
  203. package/vendored/react-native-gesture-handler/src/State.ts +0 -13
  204. package/vendored/react-native-gesture-handler/src/components/DrawerLayout.tsx +0 -695
  205. package/vendored/react-native-gesture-handler/src/components/GestureButtons.tsx +0 -254
  206. package/vendored/react-native-gesture-handler/src/components/GestureComponents.tsx +0 -92
  207. package/vendored/react-native-gesture-handler/src/components/GestureComponents.web.tsx +0 -37
  208. package/vendored/react-native-gesture-handler/src/components/GestureHandlerButton.tsx +0 -7
  209. package/vendored/react-native-gesture-handler/src/components/GestureHandlerButton.web.tsx +0 -6
  210. package/vendored/react-native-gesture-handler/src/components/Swipeable.tsx +0 -510
  211. package/vendored/react-native-gesture-handler/src/components/touchables/GenericTouchable.tsx +0 -285
  212. package/vendored/react-native-gesture-handler/src/components/touchables/TouchableHighlight.tsx +0 -112
  213. package/vendored/react-native-gesture-handler/src/components/touchables/TouchableNativeFeedback.android.tsx +0 -89
  214. package/vendored/react-native-gesture-handler/src/components/touchables/TouchableNativeFeedback.tsx +0 -3
  215. package/vendored/react-native-gesture-handler/src/components/touchables/TouchableOpacity.tsx +0 -70
  216. package/vendored/react-native-gesture-handler/src/components/touchables/TouchableWithoutFeedback.tsx +0 -12
  217. package/vendored/react-native-gesture-handler/src/components/touchables/index.ts +0 -4
  218. package/vendored/react-native-gesture-handler/src/gestureHandlerRootHOC.tsx +0 -29
  219. package/vendored/react-native-gesture-handler/src/handlers/FlingGestureHandler.ts +0 -57
  220. package/vendored/react-native-gesture-handler/src/handlers/ForceTouchGestureHandler.ts +0 -83
  221. package/vendored/react-native-gesture-handler/src/handlers/LongPressGestureHandler.ts +0 -84
  222. package/vendored/react-native-gesture-handler/src/handlers/NativeViewGestureHandler.ts +0 -53
  223. package/vendored/react-native-gesture-handler/src/handlers/PanGestureHandler.ts +0 -321
  224. package/vendored/react-native-gesture-handler/src/handlers/PinchGestureHandler.ts +0 -46
  225. package/vendored/react-native-gesture-handler/src/handlers/RotationGestureHandler.ts +0 -46
  226. package/vendored/react-native-gesture-handler/src/handlers/TapGestureHandler.ts +0 -90
  227. package/vendored/react-native-gesture-handler/src/handlers/createHandler.ts +0 -430
  228. package/vendored/react-native-gesture-handler/src/handlers/createNativeWrapper.tsx +0 -74
  229. package/vendored/react-native-gesture-handler/src/handlers/gestureHandlerCommon.ts +0 -185
  230. package/vendored/react-native-gesture-handler/src/handlers/gestureHandlerTypesCompat.ts +0 -89
  231. package/vendored/react-native-gesture-handler/src/handlers/gestures/GestureDetector.tsx +0 -519
  232. package/vendored/react-native-gesture-handler/src/handlers/gestures/eventReceiver.ts +0 -151
  233. package/vendored/react-native-gesture-handler/src/handlers/gestures/flingGesture.ts +0 -27
  234. package/vendored/react-native-gesture-handler/src/handlers/gestures/forceTouchGesture.ts +0 -74
  235. package/vendored/react-native-gesture-handler/src/handlers/gestures/gesture.ts +0 -292
  236. package/vendored/react-native-gesture-handler/src/handlers/gestures/gestureComposition.ts +0 -109
  237. package/vendored/react-native-gesture-handler/src/handlers/gestures/gestureObjects.ts +0 -79
  238. package/vendored/react-native-gesture-handler/src/handlers/gestures/gestureStateManager.ts +0 -60
  239. package/vendored/react-native-gesture-handler/src/handlers/gestures/longPressGesture.ts +0 -27
  240. package/vendored/react-native-gesture-handler/src/handlers/gestures/manualGesture.ts +0 -31
  241. package/vendored/react-native-gesture-handler/src/handlers/gestures/nativeGesture.ts +0 -27
  242. package/vendored/react-native-gesture-handler/src/handlers/gestures/panGesture.ts +0 -147
  243. package/vendored/react-native-gesture-handler/src/handlers/gestures/pinchGesture.ts +0 -51
  244. package/vendored/react-native-gesture-handler/src/handlers/gestures/reanimatedWrapper.ts +0 -45
  245. package/vendored/react-native-gesture-handler/src/handlers/gestures/rotationGesture.ts +0 -51
  246. package/vendored/react-native-gesture-handler/src/handlers/gestures/tapGesture.ts +0 -52
  247. package/vendored/react-native-gesture-handler/src/handlers/handlersRegistry.ts +0 -22
  248. package/vendored/react-native-gesture-handler/src/index.ts +0 -156
  249. package/vendored/react-native-gesture-handler/src/init.ts +0 -5
  250. package/vendored/react-native-gesture-handler/src/mocks.ts +0 -65
  251. package/vendored/react-native-gesture-handler/src/typeUtils.ts +0 -1
  252. package/vendored/react-native-gesture-handler/src/utils.ts +0 -7
  253. package/vendored/react-native-gesture-handler/src/web/DiscreteGestureHandler.ts +0 -82
  254. package/vendored/react-native-gesture-handler/src/web/DraggingGestureHandler.ts +0 -34
  255. package/vendored/react-native-gesture-handler/src/web/Errors.ts +0 -7
  256. package/vendored/react-native-gesture-handler/src/web/FlingGestureHandler.ts +0 -134
  257. package/vendored/react-native-gesture-handler/src/web/GestureHandler.ts +0 -547
  258. package/vendored/react-native-gesture-handler/src/web/IndiscreteGestureHandler.ts +0 -33
  259. package/vendored/react-native-gesture-handler/src/web/LongPressGestureHandler.ts +0 -56
  260. package/vendored/react-native-gesture-handler/src/web/NativeViewGestureHandler.ts +0 -43
  261. package/vendored/react-native-gesture-handler/src/web/NodeManager.ts +0 -37
  262. package/vendored/react-native-gesture-handler/src/web/PanGestureHandler.ts +0 -220
  263. package/vendored/react-native-gesture-handler/src/web/PinchGestureHandler.ts +0 -25
  264. package/vendored/react-native-gesture-handler/src/web/PressGestureHandler.ts +0 -167
  265. package/vendored/react-native-gesture-handler/src/web/RotationGestureHandler.ts +0 -25
  266. package/vendored/react-native-gesture-handler/src/web/TapGestureHandler.ts +0 -172
  267. package/vendored/react-native-gesture-handler/src/web/constants.ts +0 -48
  268. package/vendored/react-native-gesture-handler/src/web/utils.ts +0 -24
  269. package/vendored/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp +0 -75
  270. package/vendored/react-native-reanimated/Common/cpp/AnimatedSensor/DevMenuAnimatedSensorModule.h +0 -41
  271. package/vendored/react-native-reanimated/Common/cpp/LayoutAnimations/DevMenuLayoutAnimationsProxy.h +0 -32
  272. package/vendored/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsProxy.cpp +0 -45
  273. package/vendored/react-native-reanimated/Common/cpp/NativeModules/DevMenuNativeReanimatedModule.h +0 -121
  274. package/vendored/react-native-reanimated/Common/cpp/NativeModules/DevMenuNativeReanimatedModuleSpec.h +0 -90
  275. package/vendored/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp +0 -371
  276. package/vendored/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +0 -192
  277. package/vendored/react-native-reanimated/Common/cpp/Registries/DevMenuEventHandlerRegistry.h +0 -37
  278. package/vendored/react-native-reanimated/Common/cpp/Registries/DevMenuMapperRegistry.h +0 -29
  279. package/vendored/react-native-reanimated/Common/cpp/Registries/DevMenuWorkletsCache.h +0 -24
  280. package/vendored/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp +0 -68
  281. package/vendored/react-native-reanimated/Common/cpp/Registries/MapperRegistry.cpp +0 -147
  282. package/vendored/react-native-reanimated/Common/cpp/Registries/WorkletsCache.cpp +0 -41
  283. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuFrozenObject.h +0 -36
  284. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuHostFunctionHandler.h +0 -28
  285. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuMutableValue.h +0 -54
  286. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuMutableValueSetterProxy.h +0 -25
  287. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuRemoteObject.h +0 -35
  288. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuRuntimeManager.h +0 -75
  289. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuShareableValue.h +0 -63
  290. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuSharedParent.h +0 -27
  291. package/vendored/react-native-reanimated/Common/cpp/SharedItems/DevMenuValueWrapper.h +0 -158
  292. package/vendored/react-native-reanimated/Common/cpp/SharedItems/FrozenObject.cpp +0 -35
  293. package/vendored/react-native-reanimated/Common/cpp/SharedItems/MutableValue.cpp +0 -134
  294. package/vendored/react-native-reanimated/Common/cpp/SharedItems/MutableValueSetterProxy.cpp +0 -47
  295. package/vendored/react-native-reanimated/Common/cpp/SharedItems/RemoteObject.cpp +0 -45
  296. package/vendored/react-native-reanimated/Common/cpp/SharedItems/ShareableValue.cpp +0 -512
  297. package/vendored/react-native-reanimated/Common/cpp/SpecTools/DevMenuErrorHandler.h +0 -32
  298. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuFeaturesConfig.h +0 -19
  299. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuJSIStoreValueUser.h +0 -37
  300. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuMapper.h +0 -51
  301. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuPlatformDepMethodsHolder.h +0 -51
  302. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuReanimatedHiddenHeaders.h +0 -11
  303. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuReanimatedVersion.h +0 -11
  304. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuRuntimeDecorator.h +0 -89
  305. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuScheduler.h +0 -89
  306. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuSingleInstanceChecker.h +0 -58
  307. package/vendored/react-native-reanimated/Common/cpp/Tools/DevMenuWorkletEventHandler.h +0 -30
  308. package/vendored/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp +0 -5
  309. package/vendored/react-native-reanimated/Common/cpp/Tools/JSIStoreValueUser.cpp +0 -55
  310. package/vendored/react-native-reanimated/Common/cpp/Tools/Mapper.cpp +0 -67
  311. package/vendored/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp +0 -17
  312. package/vendored/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp +0 -242
  313. package/vendored/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp +0 -37
  314. package/vendored/react-native-reanimated/Common/cpp/Tools/WorkletEventHandler.cpp +0 -11
  315. package/vendored/react-native-reanimated/Common/cpp/hidden_headers/DevMenuLogger.h +0 -22
  316. package/vendored/react-native-reanimated/Common/cpp/hidden_headers/DevMenuLoggerInterface.h +0 -14
  317. package/vendored/react-native-reanimated/Common/cpp/hidden_headers/DevMenuSpeedChecker.h +0 -29
  318. package/vendored/react-native-reanimated/android/71-hermes/classes.jar +0 -0
  319. package/vendored/react-native-reanimated/android/71-hermes/jni/arm64-v8a/libdevmenureanimated.so +0 -0
  320. package/vendored/react-native-reanimated/android/71-hermes/jni/armeabi-v7a/libdevmenureanimated.so +0 -0
  321. package/vendored/react-native-reanimated/android/71-hermes/jni/x86/libdevmenureanimated.so +0 -0
  322. package/vendored/react-native-reanimated/android/71-hermes/jni/x86_64/libdevmenureanimated.so +0 -0
  323. package/vendored/react-native-reanimated/android/71-jsc/classes.jar +0 -0
  324. package/vendored/react-native-reanimated/android/71-jsc/jni/arm64-v8a/libdevmenureanimated.so +0 -0
  325. package/vendored/react-native-reanimated/android/71-jsc/jni/armeabi-v7a/libdevmenureanimated.so +0 -0
  326. package/vendored/react-native-reanimated/android/71-jsc/jni/x86/libdevmenureanimated.so +0 -0
  327. package/vendored/react-native-reanimated/android/71-jsc/jni/x86_64/libdevmenureanimated.so +0 -0
  328. package/vendored/react-native-reanimated/ios/DevMenuREAEventDispatcher.h +0 -10
  329. package/vendored/react-native-reanimated/ios/DevMenuREAEventDispatcher.m +0 -19
  330. package/vendored/react-native-reanimated/ios/DevMenuREAModule.h +0 -17
  331. package/vendored/react-native-reanimated/ios/DevMenuREAModule.mm +0 -221
  332. package/vendored/react-native-reanimated/ios/DevMenuREANodesManager.h +0 -83
  333. package/vendored/react-native-reanimated/ios/DevMenuREANodesManager.m +0 -649
  334. package/vendored/react-native-reanimated/ios/DevMenuREAUtils.h +0 -7
  335. package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAAnimationsManager.h +0 -32
  336. package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAAnimationsManager.m +0 -360
  337. package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREASnapshot.h +0 -13
  338. package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREASnapshot.m +0 -29
  339. package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAUIManager.h +0 -16
  340. package/vendored/react-native-reanimated/ios/LayoutReanimation/DevMenuREAUIManager.mm +0 -388
  341. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAAlwaysNode.h +0 -4
  342. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAAlwaysNode.m +0 -35
  343. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABezierNode.h +0 -5
  344. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABezierNode.m +0 -103
  345. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABlockNode.h +0 -5
  346. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREABlockNode.m +0 -25
  347. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACallFuncNode.h +0 -6
  348. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACallFuncNode.m +0 -71
  349. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAClockNodes.h +0 -19
  350. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAClockNodes.m +0 -118
  351. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAConcatNode.h +0 -5
  352. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAConcatNode.m +0 -32
  353. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACondNode.h +0 -5
  354. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREACondNode.m +0 -36
  355. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREADebugNode.h +0 -5
  356. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREADebugNode.m +0 -30
  357. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAEventNode.h +0 -8
  358. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAEventNode.m +0 -35
  359. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAFunctionNode.h +0 -6
  360. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAFunctionNode.m +0 -24
  361. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAJSCallNode.h +0 -5
  362. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAJSCallNode.m +0 -30
  363. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREANode.h +0 -40
  364. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREANode.m +0 -155
  365. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAOperatorNode.h +0 -5
  366. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAOperatorNode.m +0 -114
  367. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAParamNode.h +0 -10
  368. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAParamNode.m +0 -79
  369. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAPropsNode.h +0 -9
  370. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAPropsNode.m +0 -96
  371. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREASetNode.h +0 -5
  372. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREASetNode.m +0 -34
  373. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAStyleNode.h +0 -5
  374. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAStyleNode.m +0 -27
  375. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREATransformNode.h +0 -5
  376. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREATransformNode.m +0 -36
  377. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAValueNode.h +0 -9
  378. package/vendored/react-native-reanimated/ios/Nodes/DevMenuREAValueNode.m +0 -26
  379. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREAAllTransitions.h +0 -26
  380. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREAAllTransitions.m +0 -296
  381. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransition.h +0 -64
  382. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransition.m +0 -210
  383. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionAnimation.h +0 -17
  384. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionAnimation.m +0 -79
  385. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionManager.h +0 -9
  386. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionManager.m +0 -60
  387. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionValues.h +0 -15
  388. package/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionValues.m +0 -25
  389. package/vendored/react-native-reanimated/ios/Transitioning/RCTConvert+DevMenuREATransition.h +0 -11
  390. package/vendored/react-native-reanimated/ios/Transitioning/RCTConvert+DevMenuREATransition.m +0 -53
  391. package/vendored/react-native-reanimated/ios/keyboardObserver/DevMenuREAKeyboardEventObserver.h +0 -17
  392. package/vendored/react-native-reanimated/ios/keyboardObserver/DevMenuREAKeyboardEventObserver.m +0 -198
  393. package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSErrorHandler.h +0 -21
  394. package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSErrorHandler.mm +0 -40
  395. package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSLogger.h +0 -15
  396. package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSLogger.mm +0 -29
  397. package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSScheduler.h +0 -19
  398. package/vendored/react-native-reanimated/ios/native/DevMenuREAIOSScheduler.mm +0 -48
  399. package/vendored/react-native-reanimated/ios/native/DevMenuREAInitializer.h +0 -30
  400. package/vendored/react-native-reanimated/ios/native/DevMenuREAInitializer.mm +0 -79
  401. package/vendored/react-native-reanimated/ios/native/NativeMethods.h +0 -24
  402. package/vendored/react-native-reanimated/ios/native/NativeMethods.mm +0 -54
  403. package/vendored/react-native-reanimated/ios/native/NativeProxy.h +0 -15
  404. package/vendored/react-native-reanimated/ios/native/NativeProxy.mm +0 -370
  405. package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensor.h +0 -26
  406. package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensor.m +0 -226
  407. package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensorContainer.h +0 -12
  408. package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensorContainer.m +0 -40
  409. package/vendored/react-native-reanimated/ios/sensor/DevMenuReanimatedSensorType.h +0 -7
  410. package/vendored/react-native-reanimated/plugin.js +0 -789
  411. package/vendored/react-native-reanimated/react-native-reanimated.d.ts +0 -1248
  412. package/vendored/react-native-reanimated/src/Animated.ts +0 -13
  413. package/vendored/react-native-reanimated/src/ConfigHelper.ts +0 -170
  414. package/vendored/react-native-reanimated/src/ReanimatedEventEmitter.ts +0 -4
  415. package/vendored/react-native-reanimated/src/ReanimatedModule.macos.ts +0 -3
  416. package/vendored/react-native-reanimated/src/ReanimatedModule.native.ts +0 -13
  417. package/vendored/react-native-reanimated/src/ReanimatedModule.ts +0 -3
  418. package/vendored/react-native-reanimated/src/ReanimatedModule.windows.ts +0 -3
  419. package/vendored/react-native-reanimated/src/ReanimatedModuleCompat.ts +0 -51
  420. package/vendored/react-native-reanimated/src/createAnimatedComponent.tsx +0 -705
  421. package/vendored/react-native-reanimated/src/index.ts +0 -15
  422. package/vendored/react-native-reanimated/src/index.web.ts +0 -7
  423. package/vendored/react-native-reanimated/src/reanimated1/Easing.js +0 -231
  424. package/vendored/react-native-reanimated/src/reanimated1/SpringConfig.js +0 -79
  425. package/vendored/react-native-reanimated/src/reanimated1/Transitioning.js +0 -158
  426. package/vendored/react-native-reanimated/src/reanimated1/animations/Animation.js +0 -32
  427. package/vendored/react-native-reanimated/src/reanimated1/animations/SpringUtils.js +0 -199
  428. package/vendored/react-native-reanimated/src/reanimated1/animations/backwardCompatibleAnimWrapper.js +0 -117
  429. package/vendored/react-native-reanimated/src/reanimated1/animations/decay.js +0 -54
  430. package/vendored/react-native-reanimated/src/reanimated1/animations/spring.js +0 -198
  431. package/vendored/react-native-reanimated/src/reanimated1/animations/timing.js +0 -74
  432. package/vendored/react-native-reanimated/src/reanimated1/base.js +0 -13
  433. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedAlways.js +0 -33
  434. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedBezier.js +0 -150
  435. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedBlock.js +0 -52
  436. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCall.js +0 -55
  437. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCallFunc.js +0 -72
  438. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedClock.js +0 -90
  439. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedClockTest.js +0 -22
  440. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCode.js +0 -32
  441. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedConcat.js +0 -32
  442. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedCond.js +0 -57
  443. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedDebug.js +0 -62
  444. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedEvent.js +0 -126
  445. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedFunction.js +0 -55
  446. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedNode.js +0 -223
  447. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedOperator.js +0 -103
  448. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedParam.js +0 -88
  449. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedProps.js +0 -108
  450. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedSet.js +0 -38
  451. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedStartClock.js +0 -30
  452. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedStopClock.js +0 -30
  453. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedStyle.js +0 -78
  454. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedTransform.js +0 -78
  455. package/vendored/react-native-reanimated/src/reanimated1/core/AnimatedValue.js +0 -38
  456. package/vendored/react-native-reanimated/src/reanimated1/core/Core.test.js +0 -30
  457. package/vendored/react-native-reanimated/src/reanimated1/core/InternalAnimatedValue.js +0 -87
  458. package/vendored/react-native-reanimated/src/reanimated1/core/createEventObjectProxyPolyfill.js +0 -44
  459. package/vendored/react-native-reanimated/src/reanimated1/derived/acc.js +0 -11
  460. package/vendored/react-native-reanimated/src/reanimated1/derived/color.js +0 -47
  461. package/vendored/react-native-reanimated/src/reanimated1/derived/diff.js +0 -16
  462. package/vendored/react-native-reanimated/src/reanimated1/derived/diffClamp.js +0 -11
  463. package/vendored/react-native-reanimated/src/reanimated1/derived/evaluateOnce.js +0 -35
  464. package/vendored/react-native-reanimated/src/reanimated1/derived/index.js +0 -8
  465. package/vendored/react-native-reanimated/src/reanimated1/derived/interpolate.js +0 -152
  466. package/vendored/react-native-reanimated/src/reanimated1/derived/interpolateColors.js +0 -62
  467. package/vendored/react-native-reanimated/src/reanimated1/derived/onChange.js +0 -14
  468. package/vendored/react-native-reanimated/src/reanimated1/derived/useCode.js +0 -41
  469. package/vendored/react-native-reanimated/src/reanimated1/index.js +0 -53
  470. package/vendored/react-native-reanimated/src/reanimated1/operators.js +0 -35
  471. package/vendored/react-native-reanimated/src/reanimated1/useValue.js +0 -10
  472. package/vendored/react-native-reanimated/src/reanimated1/val.js +0 -3
  473. package/vendored/react-native-reanimated/src/reanimated2/Bezier.ts +0 -172
  474. package/vendored/react-native-reanimated/src/reanimated2/Colors.ts +0 -679
  475. package/vendored/react-native-reanimated/src/reanimated2/Easing.ts +0 -339
  476. package/vendored/react-native-reanimated/src/reanimated2/NativeMethods.ts +0 -135
  477. package/vendored/react-native-reanimated/src/reanimated2/NativeReanimated/NativeReanimated.ts +0 -113
  478. package/vendored/react-native-reanimated/src/reanimated2/NativeReanimated/index.ts +0 -12
  479. package/vendored/react-native-reanimated/src/reanimated2/PlatformChecker.ts +0 -21
  480. package/vendored/react-native-reanimated/src/reanimated2/PropAdapters.ts +0 -68
  481. package/vendored/react-native-reanimated/src/reanimated2/UpdateProps.ts +0 -93
  482. package/vendored/react-native-reanimated/src/reanimated2/ViewDescriptorsSet.ts +0 -111
  483. package/vendored/react-native-reanimated/src/reanimated2/WorkletEventHandler.ts +0 -68
  484. package/vendored/react-native-reanimated/src/reanimated2/animation/commonTypes.ts +0 -52
  485. package/vendored/react-native-reanimated/src/reanimated2/animation/decay.ts +0 -141
  486. package/vendored/react-native-reanimated/src/reanimated2/animation/delay.ts +0 -89
  487. package/vendored/react-native-reanimated/src/reanimated2/animation/index.ts +0 -16
  488. package/vendored/react-native-reanimated/src/reanimated2/animation/repeat.ts +0 -118
  489. package/vendored/react-native-reanimated/src/reanimated2/animation/sequence.ts +0 -98
  490. package/vendored/react-native-reanimated/src/reanimated2/animation/spring.ts +0 -166
  491. package/vendored/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts +0 -258
  492. package/vendored/react-native-reanimated/src/reanimated2/animation/timing.ts +0 -111
  493. package/vendored/react-native-reanimated/src/reanimated2/animation/util.ts +0 -301
  494. package/vendored/react-native-reanimated/src/reanimated2/commonTypes.ts +0 -171
  495. package/vendored/react-native-reanimated/src/reanimated2/component/FlatList.tsx +0 -52
  496. package/vendored/react-native-reanimated/src/reanimated2/component/Image.ts +0 -6
  497. package/vendored/react-native-reanimated/src/reanimated2/component/ScrollView.ts +0 -6
  498. package/vendored/react-native-reanimated/src/reanimated2/component/Text.ts +0 -6
  499. package/vendored/react-native-reanimated/src/reanimated2/component/View.ts +0 -6
  500. package/vendored/react-native-reanimated/src/reanimated2/core.ts +0 -376
  501. package/vendored/react-native-reanimated/src/reanimated2/frameCallback/FrameCallbackRegistryJS.ts +0 -40
  502. package/vendored/react-native-reanimated/src/reanimated2/frameCallback/FrameCallbackRegistryUI.ts +0 -115
  503. package/vendored/react-native-reanimated/src/reanimated2/globals.d.ts +0 -91
  504. package/vendored/react-native-reanimated/src/reanimated2/hook/Hooks.ts +0 -16
  505. package/vendored/react-native-reanimated/src/reanimated2/hook/commonTypes.ts +0 -17
  506. package/vendored/react-native-reanimated/src/reanimated2/hook/index.ts +0 -30
  507. package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedGestureHandler.ts +0 -109
  508. package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedKeyboard.ts +0 -35
  509. package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedReaction.ts +0 -49
  510. package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedRef.ts +0 -30
  511. package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedScrollHandler.ts +0 -85
  512. package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedSensor.ts +0 -89
  513. package/vendored/react-native-reanimated/src/reanimated2/hook/useAnimatedStyle.ts +0 -557
  514. package/vendored/react-native-reanimated/src/reanimated2/hook/useDerivedValue.ts +0 -48
  515. package/vendored/react-native-reanimated/src/reanimated2/hook/useFrameCallback.ts +0 -40
  516. package/vendored/react-native-reanimated/src/reanimated2/hook/useScrollViewOffset.ts +0 -37
  517. package/vendored/react-native-reanimated/src/reanimated2/hook/useSharedValue.ts +0 -22
  518. package/vendored/react-native-reanimated/src/reanimated2/hook/utils.ts +0 -245
  519. package/vendored/react-native-reanimated/src/reanimated2/index.ts +0 -12
  520. package/vendored/react-native-reanimated/src/reanimated2/interpolateColor.ts +0 -262
  521. package/vendored/react-native-reanimated/src/reanimated2/interpolation.ts +0 -212
  522. package/vendored/react-native-reanimated/src/reanimated2/jestUtils.ts +0 -225
  523. package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/JSReanimated.ts +0 -144
  524. package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/Mapper.ts +0 -62
  525. package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/MapperRegistry.ts +0 -133
  526. package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/MutableValue.ts +0 -38
  527. package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/commonTypes.ts +0 -51
  528. package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/global.ts +0 -45
  529. package/vendored/react-native-reanimated/src/reanimated2/js-reanimated/index.ts +0 -57
  530. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts +0 -75
  531. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/BaseAnimationBuilder.ts +0 -91
  532. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts +0 -182
  533. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/Keyframe.ts +0 -262
  534. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/commonTypes.ts +0 -101
  535. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/animationBuilder/index.ts +0 -20
  536. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Bounce.ts +0 -528
  537. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Default.ts +0 -49
  538. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Fade.ts +0 -347
  539. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Flip.ts +0 -478
  540. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Lightspeed.ts +0 -194
  541. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Pinwheel.ts +0 -99
  542. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Roll.ts +0 -154
  543. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Rotate.ts +0 -384
  544. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Slide.ts +0 -298
  545. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Stretch.ts +0 -129
  546. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/Zoom.ts +0 -580
  547. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultAnimations/index.ts +0 -10
  548. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.ts +0 -117
  549. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.ts +0 -224
  550. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.ts +0 -61
  551. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.ts +0 -65
  552. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.ts +0 -48
  553. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.ts +0 -91
  554. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/defaultTransitions/index.ts +0 -6
  555. package/vendored/react-native-reanimated/src/reanimated2/layoutReanimation/index.ts +0 -4
  556. package/vendored/react-native-reanimated/src/reanimated2/mock.ts +0 -80
  557. package/vendored/react-native-reanimated/src/reanimated2/platform-specific/RNRenderer.ts +0 -3
  558. package/vendored/react-native-reanimated/src/reanimated2/platform-specific/RNRenderer.web.ts +0 -2
  559. package/vendored/react-native-reanimated/src/reanimated2/platform-specific/checkVersion.ts +0 -35
  560. package/vendored/react-native-reanimated/src/reanimated2/platform-specific/checkVersion.web.ts +0 -6
  561. package/vendored/react-native-reanimated/src/reanimated2/utils.ts +0 -28
  562. package/vendored/react-native-reanimated/src/setAndForwardRef.ts +0 -63
  563. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProvider.h +0 -13
  564. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProvider.m +0 -65
  565. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProviderManager.h +0 -9
  566. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaProviderManager.m +0 -109
  567. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaShadowView.h +0 -9
  568. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaShadowView.m +0 -180
  569. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaView.h +0 -21
  570. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaView.m +0 -118
  571. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewEdges.h +0 -9
  572. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewEdges.m +0 -13
  573. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewLocalData.h +0 -18
  574. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewLocalData.m +0 -16
  575. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewManager.h +0 -9
  576. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewManager.m +0 -25
  577. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewMode.h +0 -7
  578. package/vendored/react-native-safe-area-context/ios/SafeAreaView/DevMenuRNCSafeAreaViewMode.m +0 -11
  579. package/vendored/react-native-safe-area-context/ios/SafeAreaView/RCTView+DevMenuSafeAreaCompat.h +0 -16
  580. 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
- }