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,371 +0,0 @@
1
- #include "DevMenuNativeReanimatedModule.h"
2
- #include <functional>
3
- #include <memory>
4
- #include <thread>
5
- #include <unordered_map>
6
- #include <utility>
7
-
8
- #include "DevMenuEventHandlerRegistry.h"
9
- #include "DevMenuFeaturesConfig.h"
10
- #include "DevMenuFrozenObject.h"
11
- #include "DevMenuJSIStoreValueUser.h"
12
- #include "DevMenuMapper.h"
13
- #include "DevMenuMapperRegistry.h"
14
- #include "DevMenuMutableValue.h"
15
- #include "DevMenuReanimatedHiddenHeaders.h"
16
- #include "DevMenuRuntimeDecorator.h"
17
- #include "DevMenuShareableValue.h"
18
- #include "DevMenuWorkletEventHandler.h"
19
-
20
- using namespace facebook;
21
-
22
- namespace devmenureanimated {
23
-
24
- void extractMutables(
25
- jsi::Runtime &rt,
26
- std::shared_ptr<ShareableValue> sv,
27
- std::vector<std::shared_ptr<MutableValue>> &res) {
28
- switch (sv->type) {
29
- case ValueType::MutableValueType: {
30
- auto &mutableValue = ValueWrapper::asMutableValue(sv->valueContainer);
31
- res.push_back(mutableValue);
32
- break;
33
- }
34
- case ValueType::FrozenArrayType:
35
- for (auto &it : ValueWrapper::asFrozenArray(sv->valueContainer)) {
36
- extractMutables(rt, it, res);
37
- }
38
- break;
39
- case ValueType::RemoteObjectType:
40
- case ValueType::FrozenObjectType:
41
- for (auto &it : ValueWrapper::asFrozenObject(sv->valueContainer)->map) {
42
- extractMutables(rt, it.second, res);
43
- }
44
- break;
45
- default:
46
- break;
47
- }
48
- }
49
-
50
- std::vector<std::shared_ptr<MutableValue>> extractMutablesFromArray(
51
- jsi::Runtime &rt,
52
- const jsi::Array &array,
53
- NativeReanimatedModule *module) {
54
- std::vector<std::shared_ptr<MutableValue>> res;
55
- for (size_t i = 0, size = array.size(rt); i < size; i++) {
56
- auto shareable =
57
- ShareableValue::adapt(rt, array.getValueAtIndex(rt, i), module);
58
- extractMutables(rt, shareable, res);
59
- }
60
- return res;
61
- }
62
-
63
- NativeReanimatedModule::NativeReanimatedModule(
64
- std::shared_ptr<CallInvoker> jsInvoker,
65
- std::shared_ptr<Scheduler> scheduler,
66
- std::shared_ptr<jsi::Runtime> rt,
67
- std::shared_ptr<ErrorHandler> errorHandler,
68
- std::function<jsi::Value(jsi::Runtime &, const int, const jsi::String &)>
69
- propObtainer,
70
- std::shared_ptr<LayoutAnimationsProxy> layoutAnimationsProxy,
71
- PlatformDepMethodsHolder platformDepMethodsHolder)
72
- : NativeReanimatedModuleSpec(jsInvoker),
73
- RuntimeManager(rt, errorHandler, scheduler, RuntimeType::UI),
74
- mapperRegistry(std::make_shared<MapperRegistry>()),
75
- eventHandlerRegistry(std::make_shared<EventHandlerRegistry>()),
76
- requestRender(platformDepMethodsHolder.requestRender),
77
- propObtainer(propObtainer),
78
- animatedSensorModule(platformDepMethodsHolder, this),
79
- configurePropsPlatformFunction(
80
- platformDepMethodsHolder.configurePropsFunction) {
81
- auto requestAnimationFrame = [=](FrameCallback callback) {
82
- frameCallbacks.push_back(callback);
83
- maybeRequestRender();
84
- };
85
-
86
- this->layoutAnimationsProxy = layoutAnimationsProxy;
87
-
88
- RuntimeDecorator::decorateUIRuntime(
89
- *runtime,
90
- platformDepMethodsHolder.updaterFunction,
91
- requestAnimationFrame,
92
- platformDepMethodsHolder.scrollToFunction,
93
- platformDepMethodsHolder.measuringFunction,
94
- platformDepMethodsHolder.getCurrentTime,
95
- platformDepMethodsHolder.registerSensor,
96
- platformDepMethodsHolder.unregisterSensor,
97
- platformDepMethodsHolder.setGestureStateFunction,
98
- layoutAnimationsProxy);
99
- onRenderCallback = [this](double timestampMs) {
100
- this->renderRequested = false;
101
- this->onRender(timestampMs);
102
- };
103
- updaterFunction = platformDepMethodsHolder.updaterFunction;
104
- subscribeForKeyboardEventsFunction =
105
- platformDepMethodsHolder.subscribeForKeyboardEvents;
106
- unsubscribeFromKeyboardEventsFunction =
107
- platformDepMethodsHolder.unsubscribeFromKeyboardEvents;
108
- }
109
-
110
- void NativeReanimatedModule::installCoreFunctions(
111
- jsi::Runtime &rt,
112
- const jsi::Value &valueSetter) {
113
- this->valueSetter = ShareableValue::adapt(rt, valueSetter, this);
114
- }
115
-
116
- jsi::Value NativeReanimatedModule::makeShareable(
117
- jsi::Runtime &rt,
118
- const jsi::Value &value) {
119
- return ShareableValue::adapt(rt, value, this)->getValue(rt);
120
- }
121
-
122
- jsi::Value NativeReanimatedModule::makeMutable(
123
- jsi::Runtime &rt,
124
- const jsi::Value &value) {
125
- return ShareableValue::adapt(rt, value, this, ValueType::MutableValueType)
126
- ->getValue(rt);
127
- }
128
-
129
- jsi::Value NativeReanimatedModule::makeRemote(
130
- jsi::Runtime &rt,
131
- const jsi::Value &value) {
132
- return ShareableValue::adapt(rt, value, this, ValueType::RemoteObjectType)
133
- ->getValue(rt);
134
- }
135
-
136
- jsi::Value NativeReanimatedModule::startMapper(
137
- jsi::Runtime &rt,
138
- const jsi::Value &worklet,
139
- const jsi::Value &inputs,
140
- const jsi::Value &outputs,
141
- const jsi::Value &updater,
142
- const jsi::Value &viewDescriptors) {
143
- static unsigned long MAPPER_ID = 1;
144
-
145
- unsigned long newMapperId = MAPPER_ID++;
146
- auto mapperShareable = ShareableValue::adapt(rt, worklet, this);
147
- auto inputMutables =
148
- extractMutablesFromArray(rt, inputs.asObject(rt).asArray(rt), this);
149
- auto outputMutables =
150
- extractMutablesFromArray(rt, outputs.asObject(rt).asArray(rt), this);
151
-
152
- int optimalizationLvl = 0;
153
- auto optimalization =
154
- updater.asObject(rt).getProperty(rt, "__optimalization");
155
- if (optimalization.isNumber()) {
156
- optimalizationLvl = optimalization.asNumber();
157
- }
158
- auto updaterSV = ShareableValue::adapt(rt, updater, this);
159
- auto viewDescriptorsSV = ShareableValue::adapt(rt, viewDescriptors, this);
160
-
161
- scheduler->scheduleOnUI([=] {
162
- auto mapperFunction =
163
- mapperShareable->getValue(*runtime).asObject(*runtime).asFunction(
164
- *runtime);
165
- std::shared_ptr<jsi::Function> mapperFunctionPointer =
166
- std::make_shared<jsi::Function>(std::move(mapperFunction));
167
-
168
- std::shared_ptr<Mapper> mapperPointer = std::make_shared<Mapper>(
169
- this,
170
- newMapperId,
171
- mapperFunctionPointer,
172
- inputMutables,
173
- outputMutables);
174
- if (optimalizationLvl > 0) {
175
- mapperPointer->enableFastMode(
176
- optimalizationLvl, updaterSV, viewDescriptorsSV);
177
- }
178
- mapperRegistry->startMapper(mapperPointer);
179
- maybeRequestRender();
180
- });
181
-
182
- return jsi::Value(static_cast<double>(newMapperId));
183
- }
184
-
185
- void NativeReanimatedModule::stopMapper(
186
- jsi::Runtime &rt,
187
- const jsi::Value &mapperId) {
188
- unsigned long id = mapperId.asNumber();
189
- scheduler->scheduleOnUI([=] {
190
- mapperRegistry->stopMapper(id);
191
- maybeRequestRender();
192
- });
193
- }
194
-
195
- jsi::Value NativeReanimatedModule::registerEventHandler(
196
- jsi::Runtime &rt,
197
- const jsi::Value &eventHash,
198
- const jsi::Value &worklet) {
199
- static unsigned long EVENT_HANDLER_ID = 1;
200
-
201
- unsigned long newRegistrationId = EVENT_HANDLER_ID++;
202
- auto eventName = eventHash.asString(rt).utf8(rt);
203
- auto handlerShareable = ShareableValue::adapt(rt, worklet, this);
204
-
205
- scheduler->scheduleOnUI([=] {
206
- auto handlerFunction =
207
- handlerShareable->getValue(*runtime).asObject(*runtime).asFunction(
208
- *runtime);
209
- auto handler = std::make_shared<WorkletEventHandler>(
210
- newRegistrationId, eventName, std::move(handlerFunction));
211
- eventHandlerRegistry->registerEventHandler(handler);
212
- });
213
-
214
- return jsi::Value(static_cast<double>(newRegistrationId));
215
- }
216
-
217
- void NativeReanimatedModule::unregisterEventHandler(
218
- jsi::Runtime &rt,
219
- const jsi::Value &registrationId) {
220
- unsigned long id = registrationId.asNumber();
221
- scheduler->scheduleOnUI(
222
- [=] { eventHandlerRegistry->unregisterEventHandler(id); });
223
- }
224
-
225
- jsi::Value NativeReanimatedModule::getViewProp(
226
- jsi::Runtime &rt,
227
- const jsi::Value &viewTag,
228
- const jsi::Value &propName,
229
- const jsi::Value &callback) {
230
- const int viewTagInt = static_cast<int>(viewTag.asNumber());
231
- std::string propNameStr = propName.asString(rt).utf8(rt);
232
- jsi::Function fun = callback.getObject(rt).asFunction(rt);
233
- std::shared_ptr<jsi::Function> funPtr =
234
- std::make_shared<jsi::Function>(std::move(fun));
235
-
236
- scheduler->scheduleOnUI([&rt, viewTagInt, funPtr, this, propNameStr]() {
237
- const jsi::String propNameValue =
238
- jsi::String::createFromUtf8(rt, propNameStr);
239
- jsi::Value result = propObtainer(rt, viewTagInt, propNameValue);
240
- std::string resultStr = result.asString(rt).utf8(rt);
241
-
242
- scheduler->scheduleOnJS([&rt, resultStr, funPtr]() {
243
- const jsi::String resultValue =
244
- jsi::String::createFromUtf8(rt, resultStr);
245
- funPtr->call(rt, resultValue);
246
- });
247
- });
248
-
249
- return jsi::Value::undefined();
250
- }
251
-
252
- jsi::Value NativeReanimatedModule::enableLayoutAnimations(
253
- jsi::Runtime &rt,
254
- const jsi::Value &config) {
255
- FeaturesConfig::setLayoutAnimationEnabled(config.getBool());
256
- return jsi::Value::undefined();
257
- }
258
-
259
- jsi::Value NativeReanimatedModule::configureProps(
260
- jsi::Runtime &rt,
261
- const jsi::Value &uiProps,
262
- const jsi::Value &nativeProps) {
263
- configurePropsPlatformFunction(rt, uiProps, nativeProps);
264
- return jsi::Value::undefined();
265
- }
266
-
267
- void NativeReanimatedModule::onEvent(
268
- std::string eventName,
269
- std::string eventAsString) {
270
- try {
271
- eventHandlerRegistry->processEvent(*runtime, eventName, eventAsString);
272
- mapperRegistry->execute(*runtime);
273
- if (mapperRegistry->needRunOnRender()) {
274
- maybeRequestRender();
275
- }
276
- } catch (std::exception &e) {
277
- std::string str = e.what();
278
- this->errorHandler->setError(str);
279
- this->errorHandler->raise();
280
- } catch (...) {
281
- std::string str = "OnEvent error";
282
- this->errorHandler->setError(str);
283
- this->errorHandler->raise();
284
- }
285
- }
286
-
287
- bool NativeReanimatedModule::isAnyHandlerWaitingForEvent(
288
- std::string eventName) {
289
- return eventHandlerRegistry->isAnyHandlerWaitingForEvent(eventName);
290
- }
291
-
292
- void NativeReanimatedModule::maybeRequestRender() {
293
- if (!renderRequested) {
294
- renderRequested = true;
295
- requestRender(onRenderCallback, *this->runtime);
296
- }
297
- }
298
-
299
- void NativeReanimatedModule::onRender(double timestampMs) {
300
- try {
301
- std::vector<FrameCallback> callbacks = frameCallbacks;
302
- frameCallbacks.clear();
303
- for (auto &callback : callbacks) {
304
- callback(timestampMs);
305
- }
306
- mapperRegistry->execute(*runtime);
307
-
308
- if (mapperRegistry->needRunOnRender()) {
309
- maybeRequestRender();
310
- }
311
- } catch (std::exception &e) {
312
- std::string str = e.what();
313
- this->errorHandler->setError(str);
314
- this->errorHandler->raise();
315
- } catch (...) {
316
- std::string str = "OnRender error";
317
- this->errorHandler->setError(str);
318
- this->errorHandler->raise();
319
- }
320
- }
321
-
322
- jsi::Value NativeReanimatedModule::registerSensor(
323
- jsi::Runtime &rt,
324
- const jsi::Value &sensorType,
325
- const jsi::Value &interval,
326
- const jsi::Value &sensorDataContainer) {
327
- return animatedSensorModule.registerSensor(
328
- rt, sensorType, interval, sensorDataContainer);
329
- }
330
-
331
- void NativeReanimatedModule::unregisterSensor(
332
- jsi::Runtime &rt,
333
- const jsi::Value &sensorId) {
334
- animatedSensorModule.unregisterSensor(sensorId);
335
- }
336
-
337
- jsi::Value NativeReanimatedModule::subscribeForKeyboardEvents(
338
- jsi::Runtime &rt,
339
- const jsi::Value &keyboardEventContainer) {
340
- jsi::Object keyboardEventObj = keyboardEventContainer.getObject(rt);
341
- std::unordered_map<std::string, std::shared_ptr<ShareableValue>>
342
- sharedProperties;
343
- std::shared_ptr<ShareableValue> keyboardStateShared = ShareableValue::adapt(
344
- rt, keyboardEventObj.getProperty(rt, "state"), this);
345
- std::shared_ptr<ShareableValue> heightShared = ShareableValue::adapt(
346
- rt, keyboardEventObj.getProperty(rt, "height"), this);
347
-
348
- auto keyboardEventDataUpdater =
349
- [this, &rt, keyboardStateShared, heightShared](
350
- int keyboardState, int height) {
351
- auto &keyboardStateValue =
352
- ValueWrapper::asMutableValue(keyboardStateShared->valueContainer);
353
- keyboardStateValue->setValue(rt, jsi::Value(keyboardState));
354
-
355
- auto &heightMutableValue =
356
- ValueWrapper::asMutableValue(heightShared->valueContainer);
357
- heightMutableValue->setValue(rt, jsi::Value(height));
358
-
359
- this->mapperRegistry->execute(*this->runtime);
360
- };
361
-
362
- return subscribeForKeyboardEventsFunction(keyboardEventDataUpdater);
363
- }
364
-
365
- void NativeReanimatedModule::unsubscribeFromKeyboardEvents(
366
- jsi::Runtime &rt,
367
- const jsi::Value &listenerId) {
368
- unsubscribeFromKeyboardEventsFunction(listenerId.asNumber());
369
- }
370
-
371
- } // namespace devmenureanimated
@@ -1,192 +0,0 @@
1
- #include "DevMenuNativeReanimatedModuleSpec.h"
2
-
3
- #include <utility>
4
-
5
- #define SPEC_PREFIX(FN_NAME) __hostFunction_NativeReanimatedModuleSpec_##FN_NAME
6
-
7
- namespace devmenureanimated {
8
-
9
- static jsi::Value SPEC_PREFIX(installCoreFunctions)(
10
- jsi::Runtime &rt,
11
- TurboModule &turboModule,
12
- const jsi::Value *args,
13
- size_t count) {
14
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
15
- ->installCoreFunctions(rt, std::move(args[0]));
16
- return jsi::Value::undefined();
17
- }
18
-
19
- // SharedValue
20
-
21
- static jsi::Value SPEC_PREFIX(makeShareable)(
22
- jsi::Runtime &rt,
23
- TurboModule &turboModule,
24
- const jsi::Value *args,
25
- size_t count) {
26
- return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
27
- ->makeShareable(rt, std::move(args[0]));
28
- }
29
-
30
- static jsi::Value SPEC_PREFIX(makeMutable)(
31
- jsi::Runtime &rt,
32
- TurboModule &turboModule,
33
- const jsi::Value *args,
34
- size_t count) {
35
- return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
36
- ->makeMutable(rt, std::move(args[0]));
37
- }
38
-
39
- static jsi::Value SPEC_PREFIX(makeRemote)(
40
- jsi::Runtime &rt,
41
- TurboModule &turboModule,
42
- const jsi::Value *args,
43
- size_t count) {
44
- return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
45
- ->makeRemote(rt, std::move(args[0]));
46
- }
47
-
48
- static jsi::Value SPEC_PREFIX(startMapper)(
49
- jsi::Runtime &rt,
50
- TurboModule &turboModule,
51
- const jsi::Value *args,
52
- size_t count) {
53
- return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
54
- ->startMapper(
55
- rt,
56
- std::move(args[0]),
57
- std::move(args[1]),
58
- std::move(args[2]),
59
- std::move(args[3]),
60
- std::move(args[4]));
61
- }
62
-
63
- static jsi::Value SPEC_PREFIX(stopMapper)(
64
- jsi::Runtime &rt,
65
- TurboModule &turboModule,
66
- const jsi::Value *args,
67
- size_t count) {
68
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
69
- ->stopMapper(rt, std::move(args[0]));
70
- return jsi::Value::undefined();
71
- }
72
-
73
- static jsi::Value SPEC_PREFIX(registerEventHandler)(
74
- jsi::Runtime &rt,
75
- TurboModule &turboModule,
76
- const jsi::Value *args,
77
- size_t count) {
78
- return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
79
- ->registerEventHandler(rt, std::move(args[0]), std::move(args[1]));
80
- }
81
-
82
- static jsi::Value SPEC_PREFIX(unregisterEventHandler)(
83
- jsi::Runtime &rt,
84
- TurboModule &turboModule,
85
- const jsi::Value *args,
86
- size_t count) {
87
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
88
- ->unregisterEventHandler(rt, std::move(args[0]));
89
- return jsi::Value::undefined();
90
- }
91
-
92
- static jsi::Value SPEC_PREFIX(getViewProp)(
93
- jsi::Runtime &rt,
94
- TurboModule &turboModule,
95
- const jsi::Value *args,
96
- size_t count) {
97
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
98
- ->getViewProp(
99
- rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
100
- return jsi::Value::undefined();
101
- }
102
-
103
- static jsi::Value SPEC_PREFIX(enableLayoutAnimations)(
104
- jsi::Runtime &rt,
105
- TurboModule &turboModule,
106
- const jsi::Value *args,
107
- size_t count) {
108
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
109
- ->enableLayoutAnimations(rt, std::move(args[0]));
110
- return jsi::Value::undefined();
111
- }
112
-
113
- static jsi::Value SPEC_PREFIX(registerSensor)(
114
- jsi::Runtime &rt,
115
- TurboModule &turboModule,
116
- const jsi::Value *args,
117
- size_t count) {
118
- return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
119
- ->registerSensor(
120
- rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
121
- }
122
-
123
- static jsi::Value SPEC_PREFIX(unregisterSensor)(
124
- jsi::Runtime &rt,
125
- TurboModule &turboModule,
126
- const jsi::Value *args,
127
- size_t count) {
128
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
129
- ->unregisterSensor(rt, std::move(args[0]));
130
- return jsi::Value::undefined();
131
- }
132
-
133
- static jsi::Value SPEC_PREFIX(configureProps)(
134
- jsi::Runtime &rt,
135
- TurboModule &turboModule,
136
- const jsi::Value *args,
137
- size_t count) {
138
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
139
- ->configureProps(rt, std::move(args[0]), std::move(args[1]));
140
- return jsi::Value::undefined();
141
- }
142
-
143
- static jsi::Value SPEC_PREFIX(subscribeForKeyboardEvents)(
144
- jsi::Runtime &rt,
145
- TurboModule &turboModule,
146
- const jsi::Value *args,
147
- size_t count) {
148
- return static_cast<NativeReanimatedModuleSpec *>(&turboModule)
149
- ->subscribeForKeyboardEvents(rt, std::move(args[0]));
150
- }
151
-
152
- static jsi::Value SPEC_PREFIX(unsubscribeFromKeyboardEvents)(
153
- jsi::Runtime &rt,
154
- TurboModule &turboModule,
155
- const jsi::Value *args,
156
- size_t count) {
157
- static_cast<NativeReanimatedModuleSpec *>(&turboModule)
158
- ->unsubscribeFromKeyboardEvents(rt, std::move(args[0]));
159
- return jsi::Value::undefined();
160
- }
161
-
162
- NativeReanimatedModuleSpec::NativeReanimatedModuleSpec(
163
- std::shared_ptr<CallInvoker> jsInvoker)
164
- : TurboModule("NativeReanimated", jsInvoker) {
165
- methodMap_["installCoreFunctions"] =
166
- MethodMetadata{1, SPEC_PREFIX(installCoreFunctions)};
167
-
168
- methodMap_["makeShareable"] = MethodMetadata{1, SPEC_PREFIX(makeShareable)};
169
- methodMap_["makeMutable"] = MethodMetadata{1, SPEC_PREFIX(makeMutable)};
170
- methodMap_["makeRemote"] = MethodMetadata{1, SPEC_PREFIX(makeRemote)};
171
-
172
- methodMap_["startMapper"] = MethodMetadata{5, SPEC_PREFIX(startMapper)};
173
- methodMap_["stopMapper"] = MethodMetadata{1, SPEC_PREFIX(stopMapper)};
174
-
175
- methodMap_["registerEventHandler"] =
176
- MethodMetadata{2, SPEC_PREFIX(registerEventHandler)};
177
- methodMap_["unregisterEventHandler"] =
178
- MethodMetadata{1, SPEC_PREFIX(unregisterEventHandler)};
179
-
180
- methodMap_["getViewProp"] = MethodMetadata{3, SPEC_PREFIX(getViewProp)};
181
- methodMap_["enableLayoutAnimations"] =
182
- MethodMetadata{2, SPEC_PREFIX(enableLayoutAnimations)};
183
- methodMap_["registerSensor"] = MethodMetadata{3, SPEC_PREFIX(registerSensor)};
184
- methodMap_["unregisterSensor"] =
185
- MethodMetadata{1, SPEC_PREFIX(unregisterSensor)};
186
- methodMap_["configureProps"] = MethodMetadata{2, SPEC_PREFIX(configureProps)};
187
- methodMap_["subscribeForKeyboardEvents"] =
188
- MethodMetadata{1, SPEC_PREFIX(subscribeForKeyboardEvents)};
189
- methodMap_["unsubscribeFromKeyboardEvents"] =
190
- MethodMetadata{1, SPEC_PREFIX(unsubscribeFromKeyboardEvents)};
191
- }
192
- } // namespace devmenureanimated
@@ -1,37 +0,0 @@
1
- #pragma once
2
-
3
- #include <jsi/jsi.h>
4
- #include <map>
5
- #include <memory>
6
- #include <mutex>
7
- #include <set>
8
- #include <string>
9
- #include <unordered_map>
10
- #include <vector>
11
-
12
- using namespace facebook;
13
-
14
- namespace devmenureanimated {
15
-
16
- class WorkletEventHandler;
17
-
18
- class EventHandlerRegistry {
19
- std::map<
20
- std::string,
21
- std::unordered_map<unsigned long, std::shared_ptr<WorkletEventHandler>>>
22
- eventMappings;
23
- std::map<unsigned long, std::shared_ptr<WorkletEventHandler>> eventHandlers;
24
- std::mutex instanceMutex;
25
-
26
- public:
27
- void registerEventHandler(std::shared_ptr<WorkletEventHandler> eventHandler);
28
- void unregisterEventHandler(unsigned long id);
29
-
30
- void processEvent(
31
- jsi::Runtime &rt,
32
- std::string eventName,
33
- std::string eventPayload);
34
- bool isAnyHandlerWaitingForEvent(std::string eventName);
35
- };
36
-
37
- } // namespace devmenureanimated
@@ -1,29 +0,0 @@
1
- #pragma once
2
-
3
- #include <jsi/jsi.h>
4
- #include <memory>
5
- #include <unordered_map>
6
- #include <vector>
7
-
8
- using namespace facebook;
9
-
10
- namespace devmenureanimated {
11
-
12
- class Mapper;
13
-
14
- class MapperRegistry {
15
- std::unordered_map<unsigned long, std::shared_ptr<Mapper>> mappers;
16
- std::vector<std::shared_ptr<Mapper>> sortedMappers;
17
- void updateOrder();
18
- bool updatedSinceLastExecute = false;
19
-
20
- public:
21
- void startMapper(std::shared_ptr<Mapper> mapper);
22
- void stopMapper(unsigned long id);
23
-
24
- void execute(jsi::Runtime &rt);
25
-
26
- bool needRunOnRender();
27
- };
28
-
29
- } // namespace devmenureanimated
@@ -1,24 +0,0 @@
1
- #pragma once
2
-
3
- #include <jsi/jsi.h>
4
- #include <stdio.h>
5
- #include <memory>
6
- #include <unordered_map>
7
-
8
- namespace devmenureanimated {
9
-
10
- using namespace facebook;
11
-
12
- class FrozenObject;
13
-
14
- class WorkletsCache {
15
- private:
16
- std::unordered_map<long long, std::shared_ptr<jsi::Function>> worklets;
17
-
18
- public:
19
- std::shared_ptr<jsi::Function> getFunction(
20
- jsi::Runtime &rt,
21
- std::shared_ptr<devmenureanimated::FrozenObject> frozenObj);
22
- };
23
-
24
- } // namespace devmenureanimated