react-native-macos 0.0.0-b21a49507 → 0.0.0-b7b5308ae

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 (279) hide show
  1. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
  2. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
  3. package/Libraries/Animated/NativeAnimatedHelper.js +1 -1
  4. package/Libraries/Animated/components/AnimatedImage.js +3 -3
  5. package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
  6. package/Libraries/Animated/components/AnimatedText.js +3 -3
  7. package/Libraries/Animated/components/AnimatedView.js +1 -3
  8. package/Libraries/Animated/createAnimatedComponent.js +3 -34
  9. package/Libraries/Components/Button.js +3 -6
  10. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
  11. package/Libraries/Components/ScrollView/ScrollView.js +9 -11
  12. package/Libraries/Components/View/View.js +1 -1
  13. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  14. package/Libraries/Core/ExceptionsManager.js +45 -82
  15. package/Libraries/Core/ExtendedError.js +0 -1
  16. package/Libraries/Core/ReactNativeVersion.js +1 -1
  17. package/Libraries/Core/setUpGlobals.js +0 -4
  18. package/Libraries/Image/ImageBackground.js +10 -8
  19. package/Libraries/Image/ImageProps.js +28 -0
  20. package/Libraries/Image/RCTImageView.mm +4 -0
  21. package/Libraries/LogBox/Data/LogBoxData.js +0 -1
  22. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
  23. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
  24. package/Libraries/Pressability/Pressability.js +13 -14
  25. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +0 -1
  26. package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +0 -1
  27. package/Libraries/ReactNative/AppRegistry.js +4 -2
  28. package/Libraries/Renderer/REVISION +1 -1
  29. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1359 -856
  30. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +511 -367
  31. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +552 -410
  32. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1384 -874
  33. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +496 -352
  34. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +537 -395
  35. package/Libraries/Share/Share.js +1 -1
  36. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +7 -5
  37. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +2 -12
  38. package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +11 -15
  39. package/React/Base/RCTBridge.m +2 -7
  40. package/React/Base/RCTBridgeModule.h +1 -10
  41. package/React/Base/RCTBundleURLProvider.mm +3 -1
  42. package/React/Base/RCTConstants.h +0 -6
  43. package/React/Base/RCTConstants.m +0 -15
  44. package/React/Base/RCTConvert.h +1 -1
  45. package/React/Base/RCTJSThread.h +29 -0
  46. package/React/Base/RCTJSThread.m +19 -0
  47. package/React/Base/RCTTouchHandler.m +1 -8
  48. package/React/Base/RCTUtils.h +3 -0
  49. package/React/Base/RCTUtils.m +14 -7
  50. package/React/Base/RCTVersion.m +1 -1
  51. package/React/CoreModules/RCTAccessibilityManager+Internal.h +24 -0
  52. package/React/CoreModules/RCTAccessibilityManager.mm +18 -3
  53. package/React/CoreModules/RCTActionSheetManager.mm +14 -5
  54. package/React/CoreModules/RCTAppearance.mm +6 -7
  55. package/React/CoreModules/RCTDevLoadingView.mm +5 -10
  56. package/React/CoreModules/RCTExceptionsManager.mm +11 -24
  57. package/React/CoreModules/RCTRedBox.mm +1 -5
  58. package/React/DevSupport/RCTPackagerConnection.h +3 -0
  59. package/React/DevSupport/RCTPackagerConnection.mm +9 -5
  60. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +12 -0
  61. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +0 -3
  62. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +16 -9
  63. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
  64. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +3 -5
  65. package/React/Fabric/RCTScheduler.mm +2 -2
  66. package/React/Fabric/RCTSurfacePresenter.mm +0 -4
  67. package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
  68. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -3
  69. package/React/React-RCTFabric.podspec +0 -1
  70. package/React/Views/RCTView.m +1 -6
  71. package/React/Views/SafeAreaView/RCTSafeAreaView.m +1 -5
  72. package/React/Views/ScrollView/RCTScrollView.m +9 -15
  73. package/React/Views/ScrollView/RCTScrollViewManager.m +2 -7
  74. package/React/Views/UIView+React.m +7 -10
  75. package/React-Core.podspec +0 -1
  76. package/ReactAndroid/build.gradle +1 -1
  77. package/ReactAndroid/gradle.properties +1 -1
  78. package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +2 -1
  79. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +16 -9
  80. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +34 -1
  81. package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +25 -0
  82. package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +17 -1
  83. package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +0 -2
  84. package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +11 -4
  85. package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +1 -0
  86. package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
  87. package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegate.java +40 -0
  88. package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegateFactory.java +24 -0
  89. package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +0 -6
  90. package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +10 -0
  91. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -0
  92. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +5 -2
  93. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +102 -0
  94. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +35 -11
  95. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +5 -72
  96. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +12 -0
  97. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +92 -0
  98. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.java +28 -42
  99. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +14 -0
  100. package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +0 -4
  101. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +2 -7
  102. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +41 -2
  103. package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +8 -3
  104. package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.java +43 -9
  105. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.cpp +69 -0
  106. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +40 -0
  107. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +2 -6
  108. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +71 -33
  109. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +2 -2
  110. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +20 -2
  111. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +2 -1
  112. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +0 -4
  113. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +6 -2
  114. package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK +2 -1
  115. package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/BUCK +0 -6
  116. package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK +4 -1
  117. package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java +9 -8
  118. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java +7 -19
  119. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  120. package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +8 -8
  121. package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +1 -1
  122. package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/BUCK +0 -6
  123. package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/BUCK +0 -12
  124. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +1 -1
  125. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +75 -10
  126. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +19 -22
  127. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventCategoryDef.java +42 -0
  128. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcherImpl.java +7 -1
  129. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +2 -2
  130. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java +7 -0
  131. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.java +2 -1
  132. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +17 -9
  133. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +43 -8
  134. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java +15 -16
  135. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +108 -19
  136. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +0 -6
  137. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +79 -4
  138. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +5 -0
  139. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +94 -3
  140. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +21 -1
  141. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +5 -0
  142. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +1 -1
  143. package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
  144. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +19 -0
  145. package/ReactAndroid/src/main/jni/react/jni/BUCK +2 -5
  146. package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +28 -15
  147. package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +12 -3
  148. package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp +2 -2
  149. package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +3 -3
  150. package/ReactAndroid/src/main/jni/react/perftests/BUCK +0 -4
  151. package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +43 -0
  152. package/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java +3 -1
  153. package/ReactCommon/React-Fabric.podspec +0 -1
  154. package/ReactCommon/better/BUCK +0 -6
  155. package/ReactCommon/callinvoker/BUCK +2 -8
  156. package/ReactCommon/cxxreact/BUCK +1 -16
  157. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  158. package/ReactCommon/jsi/BUCK +0 -9
  159. package/ReactCommon/jsinspector/BUCK +0 -5
  160. package/ReactCommon/logger/BUCK +0 -5
  161. package/ReactCommon/react/config/BUCK +0 -6
  162. package/ReactCommon/react/debug/BUCK +0 -6
  163. package/ReactCommon/react/nativemodule/core/BUCK +0 -5
  164. package/ReactCommon/react/nativemodule/samples/BUCK +0 -7
  165. package/ReactCommon/react/renderer/animations/BUCK +0 -4
  166. package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +5 -1
  167. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -18
  168. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -1
  169. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +3 -3
  170. package/ReactCommon/react/renderer/attributedstring/BUCK +0 -6
  171. package/ReactCommon/react/renderer/componentregistry/BUCK +0 -6
  172. package/ReactCommon/react/renderer/componentregistry/native/BUCK +0 -6
  173. package/ReactCommon/react/renderer/components/image/BUCK +0 -6
  174. package/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.h +0 -2
  175. package/ReactCommon/react/renderer/components/inputaccessory/BUCK +0 -6
  176. package/ReactCommon/react/renderer/components/inputaccessory/InputAccessoryComponentDescriptor.h +0 -4
  177. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +0 -6
  178. package/ReactCommon/react/renderer/components/modal/BUCK +0 -6
  179. package/ReactCommon/react/renderer/components/modal/ModalHostViewComponentDescriptor.h +0 -5
  180. package/ReactCommon/react/renderer/components/progressbar/BUCK +0 -6
  181. package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarComponentDescriptor.h +0 -3
  182. package/ReactCommon/react/renderer/components/root/BUCK +0 -6
  183. package/ReactCommon/react/renderer/components/safeareaview/BUCK +0 -6
  184. package/ReactCommon/react/renderer/components/scrollview/BUCK +0 -6
  185. package/ReactCommon/react/renderer/components/slider/BUCK +0 -6
  186. package/ReactCommon/react/renderer/components/slider/SliderComponentDescriptor.h +0 -3
  187. package/ReactCommon/react/renderer/components/switch/BUCK +0 -6
  188. package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchComponentDescriptor.h +0 -3
  189. package/ReactCommon/react/renderer/components/text/BUCK +0 -6
  190. package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +0 -3
  191. package/ReactCommon/react/renderer/components/textinput/BUCK +0 -6
  192. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputComponentDescriptor.h +0 -3
  193. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +2 -0
  194. package/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK +0 -6
  195. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputComponentDescriptor.h +0 -3
  196. package/ReactCommon/react/renderer/components/unimplementedview/BUCK +0 -6
  197. package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +0 -4
  198. package/ReactCommon/react/renderer/components/view/BUCK +0 -6
  199. package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
  200. package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +2 -3
  201. package/ReactCommon/react/renderer/core/BUCK +2 -6
  202. package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +0 -3
  203. package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +0 -10
  204. package/ReactCommon/react/renderer/core/EventEmitter.cpp +9 -4
  205. package/ReactCommon/react/renderer/core/EventEmitter.h +2 -1
  206. package/ReactCommon/react/renderer/core/RawEvent.h +7 -5
  207. package/ReactCommon/react/renderer/core/ShadowNode.cpp +7 -10
  208. package/ReactCommon/react/renderer/debug/BUCK +0 -6
  209. package/ReactCommon/react/renderer/element/BUCK +0 -6
  210. package/ReactCommon/react/renderer/graphics/BUCK +0 -6
  211. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -1
  212. package/ReactCommon/react/renderer/imagemanager/BUCK +0 -6
  213. package/ReactCommon/react/renderer/leakchecker/BUCK +0 -6
  214. package/ReactCommon/react/renderer/mapbuffer/BUCK +0 -6
  215. package/ReactCommon/react/renderer/mounting/BUCK +0 -6
  216. package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
  217. package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -6
  218. package/ReactCommon/react/renderer/runtimescheduler/ErrorUtils.h +36 -0
  219. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +24 -18
  220. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +32 -0
  221. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +36 -0
  222. package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +26 -1
  223. package/ReactCommon/react/renderer/runtimescheduler/tests/StubErrorUtils.h +72 -0
  224. package/ReactCommon/react/renderer/scheduler/BUCK +0 -6
  225. package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +1 -4
  226. package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -1
  227. package/ReactCommon/react/renderer/telemetry/BUCK +0 -6
  228. package/ReactCommon/react/renderer/templateprocessor/BUCK +0 -6
  229. package/ReactCommon/react/renderer/textlayoutmanager/BUCK +0 -6
  230. package/ReactCommon/react/renderer/timeline/BUCK +0 -6
  231. package/ReactCommon/react/renderer/uimanager/BUCK +0 -6
  232. package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +2 -2
  233. package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +1 -1
  234. package/ReactCommon/react/test_utils/BUCK +0 -6
  235. package/ReactCommon/react/utils/BUCK +0 -6
  236. package/ReactCommon/reactperflogger/BUCK +0 -4
  237. package/ReactCommon/runtimeexecutor/BUCK +0 -6
  238. package/ReactCommon/yoga/BUCK +1 -5
  239. package/jest/mockModal.js +31 -0
  240. package/jest/setup.js +5 -3
  241. package/package.json +8 -7
  242. package/react.gradle +52 -17
  243. package/scripts/find-node.sh +13 -0
  244. package/scripts/react-native-xcode.sh +6 -6
  245. package/scripts/react_native_pods.rb +47 -7
  246. package/scripts/update-ruby.sh +66 -0
  247. package/template/Gemfile +6 -0
  248. package/template/Gemfile.lock +100 -0
  249. package/template/_bundle/config +2 -0
  250. package/template/_flowconfig +1 -1
  251. package/template/_ruby-version +1 -0
  252. package/template/android/app/build.gradle +1 -1
  253. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  254. package/template/android/app/src/main/res/values/styles.xml +1 -0
  255. package/template/android/build.gradle +7 -3
  256. package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  257. package/template/android/gradle.properties +1 -1
  258. package/template/ios/HelloWorld.xcodeproj/project.pbxproj +0 -2
  259. package/template/ios/Podfile +2 -0
  260. package/template/package.json +1 -1
  261. package/third-party-podspecs/RCT-Folly.podspec +1 -1
  262. package/third-party-podspecs/glog.podspec +0 -1
  263. package/Libraries/Components/StaticContainer.react.js +0 -51
  264. package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
  265. package/Libraries/Interaction/InteractionMixin.js +0 -54
  266. package/Libraries/ReactNative/queryLayoutByID.js +0 -58
  267. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerDelegate.java +0 -57
  268. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerInterface.java +0 -23
  269. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/BUCK +0 -19
  270. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerDelegate.java +0 -62
  271. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerInterface.java +0 -25
  272. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerDelegate.java +0 -33
  273. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerInterface.java +0 -17
  274. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerDelegate.java +0 -51
  275. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerInterface.java +0 -21
  276. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerDelegate.java +0 -63
  277. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerInterface.java +0 -24
  278. package/ReactCommon/react/renderer/core/Constants.cpp +0 -24
  279. package/ReactCommon/react/renderer/core/Constants.h +0 -23
@@ -47,6 +47,7 @@ const ActionSheetIOS = {
47
47
  +cancelButtonIndex?: ?number,
48
48
  +anchor?: ?number,
49
49
  +tintColor?: ColorValue | ProcessedColorValue,
50
+ +cancelButtonTintColor?: ColorValue | ProcessedColorValue,
50
51
  +userInterfaceStyle?: string,
51
52
  +disabledButtonIndices?: Array<number>,
52
53
  |},
@@ -59,7 +60,12 @@ const ActionSheetIOS = {
59
60
  invariant(typeof callback === 'function', 'Must provide a valid callback');
60
61
  invariant(RCTActionSheetManager, "ActionSheetManager doesn't exist");
61
62
 
62
- const {tintColor, destructiveButtonIndex, ...remainingOptions} = options;
63
+ const {
64
+ tintColor,
65
+ cancelButtonTintColor,
66
+ destructiveButtonIndex,
67
+ ...remainingOptions
68
+ } = options;
63
69
  let destructiveButtonIndices = null;
64
70
 
65
71
  if (Array.isArray(destructiveButtonIndex)) {
@@ -69,14 +75,21 @@ const ActionSheetIOS = {
69
75
  }
70
76
 
71
77
  const processedTintColor = processColor(tintColor);
78
+ const processedCancelButtonTintColor = processColor(cancelButtonTintColor);
72
79
  invariant(
73
80
  processedTintColor == null || typeof processedTintColor === 'number',
74
81
  'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor',
75
82
  );
83
+ invariant(
84
+ processedCancelButtonTintColor == null ||
85
+ typeof processedCancelButtonTintColor === 'number',
86
+ 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor',
87
+ );
76
88
  RCTActionSheetManager.showActionSheetWithOptions(
77
89
  {
78
90
  ...remainingOptions,
79
91
  tintColor: processedTintColor,
92
+ cancelButtonTintColor: processedCancelButtonTintColor,
80
93
  destructiveButtonIndices,
81
94
  },
82
95
  callback,
@@ -22,6 +22,7 @@ export interface Spec extends TurboModule {
22
22
  +cancelButtonIndex?: ?number,
23
23
  +anchor?: ?number,
24
24
  +tintColor?: ?number,
25
+ +cancelButtonTintColor?: ?number,
25
26
  +userInterfaceStyle?: ?string,
26
27
  +disabledButtonIndices?: Array<number>,
27
28
  |},
@@ -34,6 +35,7 @@ export interface Spec extends TurboModule {
34
35
  +subject?: ?string,
35
36
  +anchor?: ?number,
36
37
  +tintColor?: ?number,
38
+ +cancelButtonTintColor?: ?number,
37
39
  +excludedActivityTypes?: ?Array<string>,
38
40
  +userInterfaceStyle?: ?string,
39
41
  |},
@@ -355,7 +355,7 @@ function shouldUseNativeDriver(
355
355
  'animated module is missing. Falling back to JS-based animation. To ' +
356
356
  'resolve this, add `RCTAnimation` module to this app, or remove ' +
357
357
  '`useNativeDriver`. ' +
358
- 'Make sure to run `pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md',
358
+ 'Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md',
359
359
  );
360
360
  _warnedMissingNativeAnimated = true;
361
361
  }
@@ -15,9 +15,9 @@ const createAnimatedComponent = require('../createAnimatedComponent');
15
15
 
16
16
  import type {AnimatedComponentType} from '../createAnimatedComponent';
17
17
 
18
- module.exports = (createAnimatedComponent((Image: $FlowFixMe), {
19
- collapsable: false,
20
- }): AnimatedComponentType<
18
+ module.exports = (createAnimatedComponent(
19
+ (Image: $FlowFixMe),
20
+ ): AnimatedComponentType<
21
21
  React.ElementConfig<typeof Image>,
22
22
  React.ElementRef<typeof Image>,
23
23
  >);
@@ -22,9 +22,9 @@ const ScrollViewWithEventThrottle = React.forwardRef((props, ref) => (
22
22
  <ScrollView scrollEventThrottle={0.0001} {...props} ref={ref} />
23
23
  ));
24
24
 
25
- module.exports = (createAnimatedComponent(ScrollViewWithEventThrottle, {
26
- collapsable: false,
27
- }): AnimatedComponentType<
25
+ module.exports = (createAnimatedComponent(
26
+ ScrollViewWithEventThrottle,
27
+ ): AnimatedComponentType<
28
28
  React.ElementConfig<typeof ScrollView>,
29
29
  React.ElementRef<typeof ScrollView>,
30
30
  >);
@@ -15,9 +15,9 @@ const createAnimatedComponent = require('../createAnimatedComponent');
15
15
 
16
16
  import type {AnimatedComponentType} from '../createAnimatedComponent';
17
17
 
18
- module.exports = (createAnimatedComponent((Text: $FlowFixMe), {
19
- collapsable: false,
20
- }): AnimatedComponentType<
18
+ module.exports = (createAnimatedComponent(
19
+ (Text: $FlowFixMe),
20
+ ): AnimatedComponentType<
21
21
  React.ElementConfig<typeof Text>,
22
22
  React.ElementRef<typeof Text>,
23
23
  >);
@@ -15,9 +15,7 @@ const createAnimatedComponent = require('../createAnimatedComponent');
15
15
 
16
16
  import type {AnimatedComponentType} from '../createAnimatedComponent';
17
17
 
18
- module.exports = (createAnimatedComponent(View, {
19
- collapsable: true,
20
- }): AnimatedComponentType<
18
+ module.exports = (createAnimatedComponent(View): AnimatedComponentType<
21
19
  React.ElementConfig<typeof View>,
22
20
  React.ElementRef<typeof View>,
23
21
  >);
@@ -39,13 +39,8 @@ export type AnimatedComponentType<
39
39
  Instance,
40
40
  >;
41
41
 
42
- type AnimatedComponentOptions = {
43
- collapsable?: boolean,
44
- };
45
-
46
42
  function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
47
43
  Component: React.AbstractComponent<Props, Instance>,
48
- options?: AnimatedComponentOptions,
49
44
  ): AnimatedComponentType<Props, Instance> {
50
45
  invariant(
51
46
  typeof Component !== 'function' ||
@@ -210,39 +205,13 @@ function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
210
205
  this.props.passthroughAnimatedPropExplicitValues || {};
211
206
  const mergedStyle = {...style, ...passthruStyle};
212
207
 
213
- // On Fabric, we always want to ensure the container Animated View is *not*
214
- // flattened.
215
- // Because we do not get a host component ref immediately and thus cannot
216
- // do a proper Fabric vs non-Fabric detection immediately, we default to assuming
217
- // that Fabric *is* enabled until we know otherwise.
218
- // Thus, in Fabric, this view will never be flattened. In non-Fabric, the view will
219
- // not be flattened during the initial render but may be flattened in the second render
220
- // and onwards.
221
- const forceNativeIdFabric =
222
- (this._component == null &&
223
- (options?.collapsable === false || props.collapsable !== true)) ||
224
- this._isFabric();
225
-
226
- const forceNativeId =
227
- props.collapsable ??
228
- (this._propsAnimated.__isNative ||
229
- forceNativeIdFabric ||
230
- options?.collapsable === false);
231
- // The native driver updates views directly through the UI thread so we
232
- // have to make sure the view doesn't get optimized away because it cannot
233
- // go through the NativeViewHierarchyManager since it operates on the shadow
234
- // thread. TODO: T68258846
235
- const collapsableProps = forceNativeId
236
- ? {
237
- nativeID: props.nativeID ?? 'animatedComponent',
238
- collapsable: false,
239
- }
240
- : {};
208
+ // Force `collapsable` to be false so that native view is not flattened.
209
+ // Flattened views cannot be accurately referenced by a native driver.
241
210
  return (
242
211
  <Component
243
212
  {...props}
244
213
  {...passthruProps}
245
- {...collapsableProps}
214
+ collapsable={false}
246
215
  style={mergedStyle}
247
216
  ref={this._setComponentRef}
248
217
  />
@@ -128,10 +128,6 @@ type ButtonProps = $ReadOnly<{|
128
128
  Text to display for blindness accessibility features.
129
129
  */
130
130
  accessibilityLabel?: ?string,
131
- /**
132
- * Hint text to display blindness accessibility features
133
- */
134
- accessibilityHint?: ?string, // TODO(OSS Candidate ISS#2710739)
135
131
 
136
132
  // TODO(OSS Candidate ISS#2710739)
137
133
  /**
@@ -203,6 +199,7 @@ type ButtonProps = $ReadOnly<{|
203
199
  accessibilityActions?: ?$ReadOnlyArray<AccessibilityActionInfo>,
204
200
  onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,
205
201
  accessibilityState?: ?AccessibilityState,
202
+ accessibilityHint?: ?string,
206
203
  |}>;
207
204
 
208
205
  /**
@@ -340,7 +337,7 @@ class Button extends React.Component<ButtonProps> {
340
337
  tooltip,
341
338
  accessible,
342
339
  accessibilityActions,
343
- accessibilityHint, // TODO(OSS Candidate ISS#2710739)
340
+ accessibilityHint,
344
341
  accessibilityRole, // TODO(OSS Candidate ISS#2710739)
345
342
  onAccessibilityAction,
346
343
  } = this.props;
@@ -387,7 +384,7 @@ class Button extends React.Component<ButtonProps> {
387
384
  accessibilityActions={accessibilityActions}
388
385
  onAccessibilityAction={onAccessibilityAction}
389
386
  accessibilityLabel={accessibilityLabel}
390
- accessibilityHint={accessibilityHint} // TODO(OSS Candidate ISS#2710739)
387
+ accessibilityHint={accessibilityHint}
391
388
  accessibilityRole={accessibilityRole || 'button'} // TODO(OSS Candidate ISS#2710739)
392
389
  accessibilityState={accessibilityState}
393
390
  hasTVPreferredFocus={hasTVPreferredFocus}
@@ -31,6 +31,7 @@ const AndroidHorizontalScrollViewNativeComponent: HostComponent<Props> = NativeC
31
31
  scrollPerfTag: true,
32
32
  sendMomentumEvents: true,
33
33
  showsHorizontalScrollIndicator: true,
34
+ snapToAlignment: true,
34
35
  snapToEnd: true,
35
36
  snapToInterval: true,
36
37
  snapToStart: true,
@@ -346,17 +346,6 @@ type IOSProps = $ReadOnly<{|
346
346
  * The default value is true.
347
347
  */
348
348
  showsHorizontalScrollIndicator?: ?boolean,
349
- /**
350
- * When `snapToInterval` is set, `snapToAlignment` will define the relationship
351
- * of the snapping to the scroll view.
352
- *
353
- * - `'start'` (the default) will align the snap at the left (horizontal) or top (vertical)
354
- * - `'center'` will align the snap in the center
355
- * - `'end'` will align the snap at the right (horizontal) or bottom (vertical)
356
- *
357
- * @platform ios
358
- */
359
- snapToAlignment?: ?('start' | 'center' | 'end'),
360
349
  /**
361
350
  * The current scale of the scroll view content. The default value is 1.0.
362
351
  * @platform ios
@@ -611,6 +600,15 @@ export type Props = $ReadOnly<{|
611
600
  * for example when you want your list to have an animated hidable header.
612
601
  */
613
602
  StickyHeaderComponent?: StickyHeaderComponentType,
603
+ /**
604
+ * When `snapToInterval` is set, `snapToAlignment` will define the relationship
605
+ * of the snapping to the scroll view.
606
+ *
607
+ * - `'start'` (the default) will align the snap at the left (horizontal) or top (vertical)
608
+ * - `'center'` will align the snap in the center
609
+ * - `'end'` will align the snap at the right (horizontal) or bottom (vertical)
610
+ */
611
+ snapToAlignment?: ?('start' | 'center' | 'end'),
614
612
  /**
615
613
  * When set, causes the scroll view to stop at multiples of the value of
616
614
  * `snapToInterval`. This can be used for paginating through children
@@ -22,7 +22,7 @@ export type Props = ViewProps;
22
22
  * supports layout with flexbox, style, some touch handling, and accessibility
23
23
  * controls.
24
24
  *
25
- * @see https://reactnative.dev/docs/view.html
25
+ * @see https://reactnative.dev/docs/view
26
26
  */
27
27
  const View: React.AbstractComponent<
28
28
  ViewProps,
@@ -91,5 +91,5 @@ export type AccessibilityValue = $ReadOnly<{|
91
91
  /**
92
92
  * A textual description of this component's value. (will override minimum, current, and maximum if set)
93
93
  */
94
- text?: string,
94
+ text?: Stringish,
95
95
  |}>;
@@ -56,94 +56,57 @@ function reportException(
56
56
  isFatal: boolean,
57
57
  reportToConsole: boolean, // only true when coming from handleException; the error has not yet been logged
58
58
  ) {
59
- const NativeExceptionsManager = require('./NativeExceptionsManager').default;
60
- if (NativeExceptionsManager) {
61
- const parseErrorStack = require('./Devtools/parseErrorStack');
62
- const stack = parseErrorStack(e?.stack);
63
- const currentExceptionID = ++exceptionID;
64
- const originalMessage = e.message || '';
65
- let message = originalMessage;
66
- if (e.componentStack != null) {
67
- message += `\n\nThis error is located at:${e.componentStack}`;
68
- }
69
- const namePrefix = e.name == null || e.name === '' ? '' : `${e.name}: `;
70
-
71
- if (!message.startsWith(namePrefix)) {
72
- message = namePrefix + message;
73
- }
74
-
75
- message =
76
- e.jsEngine == null ? message : `${message}, js engine: ${e.jsEngine}`;
59
+ const parseErrorStack = require('./Devtools/parseErrorStack');
60
+ const stack = parseErrorStack(e?.stack);
61
+ const currentExceptionID = ++exceptionID;
62
+ const originalMessage = e.message || '';
63
+ let message = originalMessage;
64
+ if (e.componentStack != null) {
65
+ message += `\n\nThis error is located at:${e.componentStack}`;
66
+ }
67
+ const namePrefix = e.name == null || e.name === '' ? '' : `${e.name}: `;
77
68
 
78
- const isHandledByLogBox =
79
- e.forceRedbox !== true &&
80
- global.RN$Bridgeless !== true &&
81
- !global.RN$Express;
69
+ if (!message.startsWith(namePrefix)) {
70
+ message = namePrefix + message;
71
+ }
82
72
 
83
- const data = preprocessException({
84
- message,
85
- originalMessage: message === originalMessage ? null : originalMessage,
86
- name: e.name == null || e.name === '' ? null : e.name,
87
- componentStack:
88
- typeof e.componentStack === 'string' ? e.componentStack : null,
89
- stack,
90
- id: currentExceptionID,
91
- isFatal,
92
- extraData: {
93
- jsEngine: e.jsEngine,
94
- rawStack: e.stack,
73
+ message =
74
+ e.jsEngine == null ? message : `${message}, js engine: ${e.jsEngine}`;
75
+
76
+ const data = preprocessException({
77
+ message,
78
+ originalMessage: message === originalMessage ? null : originalMessage,
79
+ name: e.name == null || e.name === '' ? null : e.name,
80
+ componentStack:
81
+ typeof e.componentStack === 'string' ? e.componentStack : null,
82
+ stack,
83
+ id: currentExceptionID,
84
+ isFatal,
85
+ extraData: {
86
+ jsEngine: e.jsEngine,
87
+ rawStack: e.stack,
88
+ },
89
+ });
90
+
91
+ if (reportToConsole) {
92
+ // we feed back into console.error, to make sure any methods that are
93
+ // monkey patched on top of console.error are called when coming from
94
+ // handleException
95
+ console.error(data.message);
96
+ }
95
97
 
96
- // Hack to hide native redboxes when in the LogBox experiment.
97
- // This is intentionally untyped and stuffed here, because it is temporary.
98
- suppressRedBox: isHandledByLogBox,
99
- },
98
+ if (__DEV__) {
99
+ const LogBox = require('../LogBox/LogBox');
100
+ LogBox.addException({
101
+ ...data,
102
+ isComponentError: !!e.isComponentError,
100
103
  });
101
-
102
- if (reportToConsole) {
103
- // we feed back into console.error, to make sure any methods that are
104
- // monkey patched on top of console.error are called when coming from
105
- // handleException
106
- console.error(data.message);
107
- }
108
-
109
- if (__DEV__ && isHandledByLogBox) {
110
- const LogBox = require('../LogBox/LogBox');
111
- LogBox.addException({
112
- ...data,
113
- isComponentError: !!e.isComponentError,
114
- });
115
- }
116
-
117
- if (isFatal || e.type !== 'warn') {
104
+ } else if (isFatal || e.type !== 'warn') {
105
+ const NativeExceptionsManager = require('./NativeExceptionsManager')
106
+ .default;
107
+ if (NativeExceptionsManager) {
118
108
  NativeExceptionsManager.reportException(data);
119
-
120
- if (__DEV__ && !global.RN$Express) {
121
- if (e.preventSymbolication === true) {
122
- return;
123
- }
124
- const symbolicateStackTrace = require('./Devtools/symbolicateStackTrace');
125
- symbolicateStackTrace(stack)
126
- .then(({stack: prettyStack}) => {
127
- if (prettyStack) {
128
- NativeExceptionsManager.updateExceptionMessage(
129
- data.message,
130
- prettyStack,
131
- currentExceptionID,
132
- );
133
- } else {
134
- throw new Error('The stack is null');
135
- }
136
- })
137
- .catch(error => {
138
- console.log('Unable to symbolicate stack trace: ' + error.message);
139
- });
140
- }
141
109
  }
142
- } else if (reportToConsole) {
143
- // we feed back into console.error, to make sure any methods that are
144
- // monkey patched on top of console.error are called when coming from
145
- // handleException
146
- console.error(e);
147
110
  }
148
111
  }
149
112
 
@@ -12,7 +12,6 @@ export type ExtendedError = Error & {
12
12
  jsEngine?: string,
13
13
  preventSymbolication?: boolean,
14
14
  componentStack?: string,
15
- forceRedbox?: boolean,
16
15
  isComponentError?: boolean,
17
16
  type?: string,
18
17
  ...
@@ -17,5 +17,5 @@ exports.version = {
17
17
  major: 0,
18
18
  minor: 0,
19
19
  patch: 0,
20
- prerelease: 'b21a49507',
20
+ prerelease: 'b7b5308ae',
21
21
  };
@@ -14,10 +14,6 @@
14
14
  * Sets up global variables for React Native.
15
15
  * You can use this module directly, or just require InitializeCore.
16
16
  */
17
- if (global.GLOBAL === undefined) {
18
- global.GLOBAL = global;
19
- }
20
-
21
17
  if (global.window === undefined) {
22
18
  // $FlowFixMe[cannot-write]
23
19
  global.window = global;
@@ -10,10 +10,12 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- const Image = require('./Image');
14
- const React = require('react');
15
- const StyleSheet = require('../StyleSheet/StyleSheet');
16
- const View = require('../Components/View/View');
13
+ import Image from './Image';
14
+ import * as React from 'react';
15
+ import StyleSheet from '../StyleSheet/StyleSheet';
16
+ import flattenStyle from '../StyleSheet/flattenStyle';
17
+ import View from '../Components/View/View';
18
+ import type {ImageBackgroundProps} from './ImageProps';
17
19
 
18
20
  /**
19
21
  * Very simple drop-in replacement for <Image> which supports nesting views.
@@ -39,7 +41,7 @@ const View = require('../Components/View/View');
39
41
  * AppRegistry.registerComponent('DisplayAnImageBackground', () => DisplayAnImageBackground);
40
42
  * ```
41
43
  */
42
- class ImageBackground extends React.Component<$FlowFixMeProps> {
44
+ class ImageBackground extends React.Component<ImageBackgroundProps> {
43
45
  setNativeProps(props: Object) {
44
46
  // Work-around flow
45
47
  const viewRef = this._viewRef;
@@ -56,7 +58,7 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
56
58
 
57
59
  render(): React.Node {
58
60
  const {children, style, imageStyle, imageRef, ...props} = this.props;
59
-
61
+ const flattenedStyle = flattenStyle(style);
60
62
  return (
61
63
  <View
62
64
  accessibilityIgnoresInvertColors={true}
@@ -74,8 +76,8 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
74
76
  // So, we have to proxy/reapply these styles explicitly for actual <Image> component.
75
77
  // This workaround should be removed after implementing proper support of
76
78
  // intrinsic content size of the <Image>.
77
- width: style?.width,
78
- height: style?.height,
79
+ width: flattenedStyle?.width,
80
+ height: flattenedStyle?.height,
79
81
  },
80
82
  imageStyle,
81
83
  ]}
@@ -15,6 +15,8 @@ import type {EdgeInsetsProp} from '../StyleSheet/EdgeInsetsPropType';
15
15
  import type {ImageSource} from './ImageSource';
16
16
  import type {ViewStyleProp, ImageStyleProp} from '../StyleSheet/StyleSheet';
17
17
  import type {ViewProps} from '../Components/View/ViewPropTypes';
18
+ import type {Node, Ref} from 'react';
19
+ import typeof Image from './Image';
18
20
 
19
21
  export type ImageLoadEvent = SyntheticEvent<
20
22
  $ReadOnly<{|
@@ -176,3 +178,29 @@ export type ImageProps = {|
176
178
  */
177
179
  tooltip?: ?string,
178
180
  |};
181
+
182
+ export type ImageBackgroundProps = $ReadOnly<{|
183
+ ...ImageProps,
184
+ children?: Node,
185
+
186
+ /**
187
+ * Style applied to the outer View component
188
+ *
189
+ * See https://reactnative.dev/docs/imagebackground#style
190
+ */
191
+ style?: ?ViewStyleProp,
192
+
193
+ /**
194
+ * Style applied to the inner Image component
195
+ *
196
+ * See https://reactnative.dev/docs/imagebackground#imagestyle
197
+ */
198
+ imageStyle?: ?ImageStyleProp,
199
+
200
+ /**
201
+ * Allows to set a reference to the inner Image component
202
+ *
203
+ * See https://reactnative.dev/docs/imagebackground#imageref
204
+ */
205
+ imageRef?: Ref<Image>,
206
+ |}>;
@@ -335,6 +335,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
335
335
 
336
336
  [_imageLoader trackURLImageRequestDidDestroy:_loaderRequest];
337
337
  _loaderRequest = nil;
338
+
339
+ if (!self.image) {
340
+ self.image = _defaultImage;
341
+ }
338
342
  }
339
343
 
340
344
  #if !TARGET_OS_OSX // TODO(macOS GH#774)
@@ -100,7 +100,6 @@ export function reportLogBoxError(
100
100
  ): void {
101
101
  const ExceptionsManager = require('../../Core/ExceptionsManager');
102
102
 
103
- error.forceRedbox = true;
104
103
  error.message = `${LOGBOX_ERROR_MESSAGE}\n\n${error.message}`;
105
104
  if (componentStack != null) {
106
105
  error.componentStack = componentStack;
@@ -44,7 +44,8 @@ export type PermissionType =
44
44
  | 'android.permission.WRITE_EXTERNAL_STORAGE'
45
45
  | 'android.permission.BLUETOOTH_CONNECT'
46
46
  | 'android.permission.BLUETOOTH_SCAN'
47
- | 'android.permission.BLUETOOTH_ADVERTISE';
47
+ | 'android.permission.BLUETOOTH_ADVERTISE'
48
+ | 'android.permission.ACCESS_MEDIA_LOCATION';
48
49
  */
49
50
 
50
51
  export interface Spec extends TurboModule {
@@ -62,6 +62,7 @@ const PERMISSIONS = Object.freeze({
62
62
  BLUETOOTH_CONNECT: 'android.permission.BLUETOOTH_CONNECT',
63
63
  BLUETOOTH_SCAN: 'android.permission.BLUETOOTH_SCAN',
64
64
  BLUETOOTH_ADVERTISE: 'android.permission.BLUETOOTH_ADVERTISE',
65
+ ACCESS_MEDIA_LOCATION: 'android.permission.ACCESS_MEDIA_LOCATION',
65
66
  });
66
67
 
67
68
  /**
@@ -75,6 +76,7 @@ class PermissionsAndroid {
75
76
  ACCESS_BACKGROUND_LOCATION: string,
76
77
  ACCESS_COARSE_LOCATION: string,
77
78
  ACCESS_FINE_LOCATION: string,
79
+ ACCESS_MEDIA_LOCATION: string,
78
80
  ADD_VOICEMAIL: string,
79
81
  BLUETOOTH_ADVERTISE: string,
80
82
  BLUETOOTH_CONNECT: string,
@@ -651,6 +651,19 @@ export default class Pressability {
651
651
  * and stores the new state. Validates the transition as well.
652
652
  */
653
653
  _receiveSignal(signal: TouchSignal, event: PressEvent): void {
654
+ // Especially on iOS, not all events have timestamps associated.
655
+ // For telemetry purposes, this doesn't matter too much, as long as *some* do.
656
+ // Since the native timestamp is integral for logging telemetry, just skip
657
+ // events if they don't have a timestamp attached.
658
+ if (event.nativeEvent.timestamp != null) {
659
+ PressabilityPerformanceEventEmitter.emitEvent(() => {
660
+ return {
661
+ signal,
662
+ nativeTimestamp: event.nativeEvent.timestamp,
663
+ };
664
+ });
665
+ }
666
+
654
667
  const prevState = this._touchState;
655
668
  const nextState = Transitions[prevState]?.[signal];
656
669
  if (this._responderID == null && signal === 'RESPONDER_RELEASE') {
@@ -666,20 +679,6 @@ export default class Pressability {
666
679
  : '<<host component>>',
667
680
  );
668
681
  if (prevState !== nextState) {
669
- // Especially on iOS, not all events have timestamps associated.
670
- // For telemetry purposes, this doesn't matter too much, as long as *some* do.
671
- // Since the native timestamp is integral for logging telemetry, just skip
672
- // events if they don't have a timestamp attached.
673
- if (event.nativeEvent.timestamp != null) {
674
- PressabilityPerformanceEventEmitter.emitEvent(() => {
675
- return {
676
- signal,
677
- nativeTimestamp: event.nativeEvent.timestamp,
678
- touchDelayMs: Date.now() - event.nativeEvent.timestamp,
679
- };
680
- });
681
- }
682
-
683
682
  this._performTransitionSideEffects(prevState, nextState, signal, event);
684
683
  this._touchState = nextState;
685
684
  }
@@ -13,7 +13,6 @@ import {type PressabilityTouchSignal as TouchSignal} from './PressabilityTypes.j
13
13
  export type PressabilityPerformanceEvent = $ReadOnly<{|
14
14
  signal: TouchSignal,
15
15
  nativeTimestamp: number,
16
- touchDelayMs: number,
17
16
  |}>;
18
17
  export type PressabilityPerformanceEventListener = PressabilityPerformanceEvent => void;
19
18
 
@@ -142,7 +142,6 @@ static NSDictionary *RCTFormatLocalNotification(UILocalNotification *notificatio
142
142
  return formattedLocalNotification;
143
143
  }
144
144
 
145
- API_AVAILABLE(ios(10.0))
146
145
  static NSDictionary *RCTFormatUNNotification(UNNotification *notification)
147
146
  {
148
147
  NSMutableDictionary *formattedNotification = [NSMutableDictionary dictionary];
@@ -189,8 +189,10 @@ const AppRegistry = {
189
189
  displayMode?: number,
190
190
  ): void {
191
191
  if (appKey !== 'LogBox') {
192
- const msg =
193
- 'Running "' + appKey + '" with ' + JSON.stringify(appParameters);
192
+ const logParams = __DEV__
193
+ ? '" with ' + JSON.stringify(appParameters)
194
+ : '';
195
+ const msg = 'Running "' + appKey + logParams;
194
196
  infoLog(msg);
195
197
  BugReporting.addSource(
196
198
  'AppRegistry.runApplication' + runCount++,