react-native-macos 0.0.0-dd8ec0d8a → 0.0.0-df7003fd1

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 (447) hide show
  1. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
  2. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
  3. package/Libraries/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +25 -0
  4. package/Libraries/Animated/AnimatedEvent.js +23 -4
  5. package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
  6. package/Libraries/Animated/components/AnimatedImage.js +3 -3
  7. package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
  8. package/Libraries/Animated/components/AnimatedText.js +3 -3
  9. package/Libraries/Animated/components/AnimatedView.js +1 -3
  10. package/Libraries/Animated/createAnimatedComponent.js +3 -34
  11. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -12
  12. package/Libraries/Components/Button.js +3 -6
  13. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
  14. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
  15. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
  16. package/Libraries/Components/ScrollView/ScrollView.js +17 -16
  17. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
  18. package/Libraries/Components/View/View.js +1 -1
  19. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  20. package/Libraries/Core/ExceptionsManager.js +45 -80
  21. package/Libraries/Core/ExtendedError.js +0 -1
  22. package/Libraries/Core/ReactNativeVersion.js +1 -1
  23. package/Libraries/Core/setUpBatchedBridge.js +1 -1
  24. package/Libraries/Core/setUpGlobals.js +2 -4
  25. package/Libraries/Core/setUpTimers.js +2 -2
  26. package/Libraries/Image/Image.ios.js +6 -0
  27. package/Libraries/Image/ImageBackground.js +10 -8
  28. package/Libraries/Image/ImageProps.js +28 -0
  29. package/Libraries/Image/RCTImageView.mm +4 -0
  30. package/Libraries/LogBox/Data/LogBoxData.js +0 -1
  31. package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
  32. package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
  33. package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
  34. package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
  35. package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
  36. package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
  37. package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
  38. package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +1 -2
  39. package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +2 -1
  40. package/Libraries/NewAppScreen/components/logo.png +0 -0
  41. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
  42. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
  43. package/Libraries/Pressability/Pressability.js +13 -13
  44. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  45. package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +0 -1
  46. package/Libraries/ReactNative/AppRegistry.js +4 -2
  47. package/Libraries/Renderer/REVISION +1 -1
  48. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
  49. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
  50. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
  51. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
  52. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
  53. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
  54. package/Libraries/Share/Share.js +1 -1
  55. package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +16 -1
  56. package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +2 -0
  57. package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +8 -1
  58. package/Libraries/StyleSheet/normalizeColor.js +2 -2
  59. package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -0
  60. package/Libraries/Text/Text/RCTTextView.m +7 -9
  61. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +17 -13
  62. package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +2 -0
  63. package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +15 -3
  64. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +12 -13
  65. package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +11 -15
  66. package/Libraries/Text/TextProps.js +1 -7
  67. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  68. package/Libraries/Utilities/HMRClient.js +1 -1
  69. package/Libraries/WebSocket/RCTSRWebSocket.m +23 -0
  70. package/README.md +18 -42
  71. package/React/Base/RCTBridge+Private.h +8 -0
  72. package/React/Base/RCTBridge.h +4 -0
  73. package/React/Base/RCTBridge.m +19 -7
  74. package/React/Base/RCTBridgeModule.h +3 -12
  75. package/React/Base/RCTBundleURLProvider.h +1 -1
  76. package/React/Base/RCTBundleURLProvider.mm +5 -3
  77. package/React/Base/RCTConstants.h +0 -6
  78. package/React/Base/RCTConstants.m +0 -15
  79. package/React/Base/RCTConvert.h +1 -1
  80. package/React/Base/RCTConvert.m +23 -6
  81. package/React/Base/RCTDefines.h +12 -3
  82. package/React/Base/RCTEventDispatcherProtocol.h +2 -0
  83. package/React/Base/RCTImageSource.m +2 -0
  84. package/React/Base/RCTJSStackFrame.m +2 -0
  85. package/React/Base/RCTJSThread.h +29 -0
  86. package/React/Base/RCTJSThread.m +19 -0
  87. package/React/Base/RCTJavaScriptLoader.mm +2 -0
  88. package/React/Base/RCTKeyCommands.m +2 -0
  89. package/React/Base/RCTModuleData.mm +2 -0
  90. package/React/Base/RCTModuleMethod.mm +2 -0
  91. package/React/Base/RCTRootView.h +15 -0
  92. package/React/Base/RCTRootView.m +15 -0
  93. package/React/Base/RCTTouchEvent.m +2 -0
  94. package/React/Base/RCTTouchHandler.m +1 -8
  95. package/React/Base/RCTUtils.h +3 -0
  96. package/React/Base/RCTUtils.m +14 -7
  97. package/React/Base/RCTVersion.m +1 -1
  98. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +11 -0
  99. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +35 -1
  100. package/React/Base/macOS/RCTPlatformDisplayLink.m +4 -1
  101. package/React/CoreModules/RCTAccessibilityManager+Internal.h +24 -0
  102. package/React/CoreModules/RCTAccessibilityManager.mm +18 -3
  103. package/React/CoreModules/RCTActionSheetManager.mm +18 -5
  104. package/React/CoreModules/RCTAddressSanitizerCrashManager.h +12 -0
  105. package/React/CoreModules/RCTAddressSanitizerCrashManager.mm +18 -0
  106. package/React/CoreModules/RCTAppearance.mm +8 -2
  107. package/React/CoreModules/RCTDevLoadingView.mm +19 -19
  108. package/React/CoreModules/RCTDevMenu.mm +4 -4
  109. package/React/CoreModules/RCTDevSettings.mm +6 -6
  110. package/React/CoreModules/RCTDevSplitBundleLoader.mm +1 -1
  111. package/React/CoreModules/RCTDeviceInfo.mm +4 -4
  112. package/React/CoreModules/RCTEventDispatcher.mm +5 -0
  113. package/React/CoreModules/RCTExceptionsManager.mm +11 -24
  114. package/React/CoreModules/RCTPerfMonitor.mm +9 -4
  115. package/React/CoreModules/RCTRedBox.mm +1 -5
  116. package/React/CxxBridge/RCTCxxBridge.mm +18 -1
  117. package/React/CxxModule/RCTCxxMethod.mm +2 -0
  118. package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
  119. package/React/DevSupport/RCTPackagerConnection.h +3 -0
  120. package/React/DevSupport/RCTPackagerConnection.mm +9 -5
  121. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +12 -0
  122. package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +11 -3
  123. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +0 -3
  124. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +16 -0
  125. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
  126. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +3 -5
  127. package/React/Fabric/Mounting/RCTMountingManager.mm +15 -1
  128. package/React/Fabric/RCTScheduler.mm +12 -5
  129. package/React/Fabric/RCTSurfacePresenter.mm +0 -4
  130. package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
  131. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -3
  132. package/React/Modules/RCTLayoutAnimation.m +2 -0
  133. package/React/Modules/RCTLayoutAnimationGroup.m +2 -0
  134. package/React/Modules/RCTUIManager.m +19 -10
  135. package/React/React-RCTFabric.podspec +0 -1
  136. package/React/Views/RCTFont.mm +58 -47
  137. package/React/Views/RCTShadowView.m +3 -1
  138. package/React/Views/RCTView.h +5 -2
  139. package/React/Views/RCTView.m +23 -16
  140. package/React/Views/RCTViewManager.m +12 -10
  141. package/React/Views/SafeAreaView/RCTSafeAreaView.m +3 -5
  142. package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.h +2 -2
  143. package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.m +4 -4
  144. package/React/Views/ScrollView/RCTScrollContentView.m +10 -24
  145. package/React/Views/ScrollView/RCTScrollView.m +10 -20
  146. package/React/Views/ScrollView/RCTScrollViewManager.m +2 -7
  147. package/React/Views/UIView+React.m +7 -10
  148. package/React-Core.podspec +0 -1
  149. package/ReactAndroid/build.gradle +11 -5
  150. package/ReactAndroid/gradle.properties +1 -1
  151. package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -1
  152. package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -7
  153. package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +2 -1
  154. package/ReactAndroid/src/main/java/com/facebook/react/BUCK +0 -1
  155. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +63 -26
  156. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +46 -1
  157. package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +31 -0
  158. package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +17 -1
  159. package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +2 -0
  160. package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +13 -2
  161. package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +1 -0
  162. package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
  163. package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
  164. package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
  165. package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegate.java +40 -0
  166. package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegateFactory.java +24 -0
  167. package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +0 -6
  168. package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +16 -0
  169. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -0
  170. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +5 -2
  171. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +102 -0
  172. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +35 -11
  173. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +5 -72
  174. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +12 -0
  175. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +92 -0
  176. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.java +28 -42
  177. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +14 -0
  178. package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +5 -4
  179. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +3 -7
  180. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +41 -2
  181. package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +8 -3
  182. package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.java +43 -9
  183. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -1
  184. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.cpp +69 -0
  185. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +40 -0
  186. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +2 -6
  187. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +84 -32
  188. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +4 -2
  189. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +20 -2
  190. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +2 -1
  191. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +9 -1
  192. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +19 -4
  193. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +6 -2
  194. package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK +2 -1
  195. package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/BUCK +0 -6
  196. package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK +4 -1
  197. package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java +9 -8
  198. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java +7 -19
  199. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/{JavaScriptTimerManager.java → JavaScriptTimerExecutor.java} +1 -1
  200. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +7 -7
  201. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +2 -2
  202. package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
  203. package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +23 -19
  204. package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
  205. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  206. package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +8 -8
  207. package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +1 -1
  208. package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/BUCK +0 -6
  209. package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -1
  210. package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
  211. package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/BUCK +0 -12
  212. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +1 -1
  213. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +75 -10
  214. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +19 -22
  215. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventCategoryDef.java +42 -0
  216. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcherImpl.java +7 -1
  217. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +2 -2
  218. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java +7 -0
  219. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.java +2 -1
  220. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +17 -9
  221. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +43 -8
  222. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java +15 -16
  223. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +108 -19
  224. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +0 -6
  225. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +79 -4
  226. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +5 -0
  227. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +94 -3
  228. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +21 -1
  229. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +5 -0
  230. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -4
  231. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +16 -0
  232. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +9 -1
  233. package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +20 -1
  234. package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +25 -6
  235. package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +25 -5
  236. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +3 -0
  237. package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
  238. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +19 -0
  239. package/ReactAndroid/src/main/jni/react/jni/Android.mk +3 -2
  240. package/ReactAndroid/src/main/jni/react/jni/BUCK +4 -5
  241. package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +49 -7
  242. package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +15 -2
  243. package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
  244. package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h +25 -0
  245. package/{ReactCommon/react/renderer/core/Constants.cpp → ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp} +6 -8
  246. package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
  247. package/ReactAndroid/src/main/jni/react/perftests/BUCK +0 -4
  248. package/ReactAndroid/src/main/third-party/android/androidx/BUCK +6 -6
  249. package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +43 -0
  250. package/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java +3 -1
  251. package/ReactCommon/React-Fabric.podspec +9 -1
  252. package/ReactCommon/better/BUCK +0 -6
  253. package/ReactCommon/callinvoker/BUCK +2 -8
  254. package/ReactCommon/cxxreact/BUCK +1 -16
  255. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  256. package/ReactCommon/hermes/inspector/tools/msggen/package.json +7 -4
  257. package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +1238 -1491
  258. package/ReactCommon/jsi/BUCK +0 -9
  259. package/ReactCommon/jsinspector/BUCK +0 -5
  260. package/ReactCommon/logger/BUCK +0 -5
  261. package/ReactCommon/react/config/BUCK +0 -6
  262. package/ReactCommon/react/debug/BUCK +0 -6
  263. package/ReactCommon/react/nativemodule/core/BUCK +0 -5
  264. package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +14 -31
  265. package/ReactCommon/react/nativemodule/samples/BUCK +0 -7
  266. package/ReactCommon/react/renderer/animations/BUCK +1 -4
  267. package/ReactCommon/react/renderer/animations/LayoutAnimationCallbackWrapper.h +34 -0
  268. package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +5 -26
  269. package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +8 -14
  270. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +912 -1147
  271. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +80 -245
  272. package/ReactCommon/react/renderer/animations/conversions.h +212 -0
  273. package/ReactCommon/react/renderer/animations/primitives.h +104 -0
  274. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +3 -3
  275. package/ReactCommon/react/renderer/animations/utils.cpp +71 -0
  276. package/ReactCommon/react/renderer/animations/utils.h +80 -0
  277. package/ReactCommon/react/renderer/attributedstring/AttributedString.h +0 -1
  278. package/ReactCommon/react/renderer/attributedstring/BUCK +0 -6
  279. package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +7 -3
  280. package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +12 -2
  281. package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +1 -1
  282. package/ReactCommon/react/renderer/attributedstring/conversions.h +58 -3
  283. package/ReactCommon/react/renderer/attributedstring/primitives.h +18 -1
  284. package/ReactCommon/react/renderer/componentregistry/BUCK +0 -6
  285. package/ReactCommon/react/renderer/componentregistry/native/BUCK +0 -6
  286. package/ReactCommon/react/renderer/components/image/BUCK +0 -6
  287. package/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.h +0 -2
  288. package/ReactCommon/react/renderer/components/inputaccessory/BUCK +0 -6
  289. package/ReactCommon/react/renderer/components/inputaccessory/InputAccessoryComponentDescriptor.h +0 -4
  290. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +0 -6
  291. package/ReactCommon/react/renderer/components/modal/BUCK +0 -6
  292. package/ReactCommon/react/renderer/components/modal/ModalHostViewComponentDescriptor.h +0 -5
  293. package/ReactCommon/react/renderer/components/progressbar/BUCK +0 -6
  294. package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarComponentDescriptor.h +0 -3
  295. package/ReactCommon/react/renderer/components/root/BUCK +0 -6
  296. package/ReactCommon/react/renderer/components/safeareaview/BUCK +0 -6
  297. package/ReactCommon/react/renderer/components/scrollview/BUCK +0 -6
  298. package/ReactCommon/react/renderer/components/slider/BUCK +0 -6
  299. package/ReactCommon/react/renderer/components/slider/SliderComponentDescriptor.h +0 -3
  300. package/ReactCommon/react/renderer/components/switch/BUCK +0 -6
  301. package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchComponentDescriptor.h +0 -3
  302. package/ReactCommon/react/renderer/components/text/BUCK +0 -6
  303. package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -20
  304. package/ReactCommon/react/renderer/components/textinput/BUCK +0 -6
  305. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputComponentDescriptor.h +0 -3
  306. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +2 -0
  307. package/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK +0 -6
  308. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputComponentDescriptor.h +0 -3
  309. package/ReactCommon/react/renderer/components/unimplementedview/BUCK +0 -6
  310. package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +0 -4
  311. package/ReactCommon/react/renderer/components/view/Android.mk +1 -1
  312. package/ReactCommon/react/renderer/components/view/BUCK +0 -6
  313. package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
  314. package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -23
  315. package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +2 -3
  316. package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +3 -3
  317. package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
  318. package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +4 -0
  319. package/ReactCommon/react/renderer/core/BUCK +2 -6
  320. package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +14 -9
  321. package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +1 -10
  322. package/ReactCommon/react/renderer/core/EventEmitter.cpp +9 -4
  323. package/ReactCommon/react/renderer/core/EventEmitter.h +2 -1
  324. package/ReactCommon/react/renderer/core/Props.h +1 -0
  325. package/ReactCommon/react/renderer/core/PropsParserContext.h +3 -2
  326. package/ReactCommon/react/renderer/core/RawEvent.h +7 -5
  327. package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
  328. package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
  329. package/ReactCommon/react/renderer/core/ShadowNode.cpp +7 -10
  330. package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
  331. package/ReactCommon/react/renderer/debug/BUCK +0 -6
  332. package/ReactCommon/react/renderer/element/BUCK +0 -6
  333. package/ReactCommon/react/renderer/graphics/Android.mk +1 -1
  334. package/ReactCommon/react/renderer/graphics/BUCK +0 -6
  335. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -1
  336. package/ReactCommon/react/renderer/graphics/Transform.cpp +1 -1
  337. package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
  338. package/ReactCommon/react/renderer/imagemanager/BUCK +0 -6
  339. package/ReactCommon/react/renderer/leakchecker/BUCK +0 -6
  340. package/ReactCommon/react/renderer/mapbuffer/BUCK +0 -6
  341. package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
  342. package/ReactCommon/react/renderer/mounting/BUCK +0 -6
  343. package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
  344. package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
  345. package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
  346. package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
  347. package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -7
  348. package/ReactCommon/react/renderer/runtimescheduler/ErrorUtils.h +36 -0
  349. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +28 -20
  350. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +4 -2
  351. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +4 -3
  352. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +4 -2
  353. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +32 -0
  354. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +36 -0
  355. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
  356. package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -3
  357. package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +4 -2
  358. package/ReactCommon/react/renderer/runtimescheduler/Task.h +4 -2
  359. package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
  360. package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +26 -1
  361. package/ReactCommon/react/renderer/runtimescheduler/tests/StubErrorUtils.h +72 -0
  362. package/ReactCommon/react/renderer/scheduler/BUCK +0 -6
  363. package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +1 -4
  364. package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -1
  365. package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +4 -4
  366. package/ReactCommon/react/renderer/telemetry/BUCK +0 -6
  367. package/ReactCommon/react/renderer/templateprocessor/BUCK +0 -6
  368. package/ReactCommon/react/renderer/textlayoutmanager/BUCK +0 -6
  369. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
  370. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +19 -0
  371. package/ReactCommon/react/renderer/timeline/BUCK +6 -12
  372. package/ReactCommon/react/renderer/uimanager/BUCK +0 -6
  373. package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
  374. package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +2 -2
  375. package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +1 -1
  376. package/ReactCommon/react/test_utils/BUCK +3 -6
  377. package/ReactCommon/react/{renderer/core/Constants.h → test_utils/MockSurfaceHandler.h} +9 -7
  378. package/ReactCommon/react/utils/BUCK +0 -6
  379. package/ReactCommon/react/utils/ContextContainer.h +0 -27
  380. package/ReactCommon/reactperflogger/BUCK +0 -4
  381. package/ReactCommon/runtimeexecutor/BUCK +0 -6
  382. package/ReactCommon/yoga/BUCK +1 -5
  383. package/flow/global.js +45 -0
  384. package/index.js +15 -10
  385. package/jest/mockModal.js +31 -0
  386. package/jest/setup.js +5 -3
  387. package/package.json +27 -18
  388. package/react.gradle +53 -18
  389. package/scripts/find-node.sh +13 -0
  390. package/scripts/generate-specs-cli.js +18 -0
  391. package/scripts/ios-configure-glog.sh +4 -0
  392. package/scripts/react-native-xcode.sh +6 -6
  393. package/scripts/react_native_pods.rb +202 -43
  394. package/scripts/update-ruby.sh +66 -0
  395. package/template/Gemfile +6 -0
  396. package/template/Gemfile.lock +100 -0
  397. package/template/_bundle/config +2 -0
  398. package/template/_flowconfig +1 -1
  399. package/template/_ruby-version +1 -0
  400. package/template/android/app/build.gradle +1 -1
  401. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  402. package/template/android/app/src/main/res/values/styles.xml +1 -0
  403. package/template/android/build.gradle +7 -3
  404. package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  405. package/template/android/gradle.properties +1 -1
  406. package/template/ios/HelloWorld.xcodeproj/project.pbxproj +0 -2
  407. package/template/ios/Podfile +2 -0
  408. package/template/package.json +2 -2
  409. package/third-party-podspecs/RCT-Folly.podspec +1 -1
  410. package/third-party-podspecs/glog.podspec +0 -1
  411. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
  412. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
  413. package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
  414. package/Libraries/Components/StaticContainer.react.js +0 -51
  415. package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
  416. package/Libraries/Interaction/InteractionMixin.js +0 -54
  417. package/Libraries/ReactNative/queryLayoutByID.js +0 -58
  418. package/React/Base/macOS/RCTDynamicColor.h +0 -28
  419. package/React/Base/macOS/RCTDynamicColor.m +0 -217
  420. package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
  421. package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
  422. package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/BUCK +0 -27
  423. package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +0 -137
  424. package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +0 -153
  425. package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +0 -15
  426. package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +0 -117
  427. package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/BUCK +0 -20
  428. package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/RuntimeSchedulerManager.java +0 -39
  429. package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/Android.mk +0 -34
  430. package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/BUCK +0 -35
  431. package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/OnLoad.cpp +0 -15
  432. package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.cpp +0 -46
  433. package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.h +0 -40
  434. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerDelegate.java +0 -57
  435. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerInterface.java +0 -23
  436. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/BUCK +0 -19
  437. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerDelegate.java +0 -62
  438. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerInterface.java +0 -25
  439. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerDelegate.java +0 -33
  440. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerInterface.java +0 -17
  441. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerDelegate.java +0 -51
  442. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerInterface.java +0 -21
  443. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerDelegate.java +0 -63
  444. package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerInterface.java +0 -24
  445. package/scripts/generate-specs.sh +0 -99
  446. package/template/_editorconfig +0 -3
  447. package/template/_gitattributes +0 -3
@@ -9,6 +9,7 @@
9
9
  #import <React/RCTUIKit.h> // TODO(macOS GH#774)
10
10
 
11
11
  #import <React/RCTDefines.h>
12
+ #import <React/RCTJSThread.h>
12
13
 
13
14
  @class RCTBridge;
14
15
  @protocol RCTBridgeMethod;
@@ -42,16 +43,6 @@ typedef void (^RCTPromiseResolveBlock)(id result);
42
43
  */
43
44
  typedef void (^RCTPromiseRejectBlock)(NSString *code, NSString *message, NSError *error);
44
45
 
45
- /**
46
- * This constant can be returned from +methodQueue to force module
47
- * methods to be called on the JavaScript thread. This can have serious
48
- * implications for performance, so only use this if you're sure it's what
49
- * you need.
50
- *
51
- * NOTE: RCTJSThread is not a real libdispatch queue
52
- */
53
- RCT_EXTERN dispatch_queue_t RCTJSThread;
54
-
55
46
  RCT_EXTERN_C_BEGIN
56
47
 
57
48
  typedef struct RCTMethodInfo {
@@ -124,7 +115,7 @@ RCT_EXTERN_C_END
124
115
  * moduleRegistry = _moduleRegistry;`. If using Swift, add
125
116
  * `@objc var moduleRegistry: RCTModuleRegistry!` to your module.
126
117
  */
127
- @property (nonatomic, weak, readonly) RCTModuleRegistry *moduleRegistry;
118
+ @property (nonatomic, weak, readwrite) RCTModuleRegistry *moduleRegistry;
128
119
 
129
120
  /**
130
121
  * A reference to the RCTViewRegistry. Useful for modules that query UIViews,
@@ -441,7 +432,7 @@ typedef NSURL * (^RCTBridgelessBundleURLGetter)(void);
441
432
  andSetter:(RCTBridgelessBundleURLSetter)setter
442
433
  andDefaultGetter:(RCTBridgelessBundleURLGetter)defaultGetter;
443
434
  - (void)resetBundleURL;
444
- @property NSURL *bundleURL;
435
+ @property (strong) NSURL *bundleURL; // TODO(macOS GH#774)
445
436
  @end
446
437
 
447
438
  typedef RCTPlatformView * (^RCTBridgelessComponentViewProvider)(NSNumber *); // TODO(macOS GH#774)
@@ -12,7 +12,7 @@
12
12
  RCT_EXTERN NSString *const RCTBundleURLProviderUpdatedNotification;
13
13
  RCT_EXTERN const NSUInteger kRCTBundleURLProviderDefaultPort;
14
14
 
15
- #if RCT_DEV_MENU
15
+ #if RCT_DEV_MENU | RCT_PACKAGER_LOADING_FUNCTIONALITY
16
16
  /**
17
17
  * Allow/disallow accessing the packager server for various runtime scenario.
18
18
  * For instance, if a test run should never access the packager, disable it
@@ -21,7 +21,7 @@ NSString *const kRCTPlatformName = @"ios";
21
21
  NSString *const kRCTPlatformName = @"macos";
22
22
  #endif // ]TODO(macOS GH#774)
23
23
 
24
- #if RCT_DEV_MENU
24
+ #if RCT_DEV_MENU | RCT_PACKAGER_LOADING_FUNCTIONALITY
25
25
  static BOOL kRCTAllowPackagerAccess = YES;
26
26
  void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed)
27
27
  {
@@ -96,7 +96,9 @@ static NSURL *serverRootWithHostPort(NSString *hostPort, NSString *scheme)
96
96
  NSURL *url = [serverRootWithHostPort(hostPort, scheme) URLByAppendingPathComponent:@"status"];
97
97
 
98
98
  NSURLSession *session = [NSURLSession sharedSession];
99
- NSURLRequest *request = [NSURLRequest requestWithURL:url];
99
+ NSURLRequest *request = [NSURLRequest requestWithURL:url
100
+ cachePolicy:NSURLRequestUseProtocolCachePolicy
101
+ timeoutInterval:10];
100
102
  __block NSURLResponse *response;
101
103
  __block NSData *data;
102
104
 
@@ -156,7 +158,7 @@ static NSURL *serverRootWithHostPort(NSString *hostPort, NSString *scheme)
156
158
 
157
159
  - (NSString *)packagerServerHostPort
158
160
  {
159
- #if RCT_DEV_MENU
161
+ #if RCT_DEV_MENU | RCT_PACKAGER_LOADING_FUNCTIONALITY
160
162
  if (!kRCTAllowPackagerAccess) {
161
163
  RCTLogInfo(@"Packager server access is disabled in this environment");
162
164
  return nil;
@@ -16,12 +16,6 @@ RCT_EXTERN NSString *const RCTUserInterfaceStyleDidChangeNotificationTraitCollec
16
16
  RCT_EXTERN BOOL RCTExperimentGetPreemptiveViewAllocationDisabled(void);
17
17
  RCT_EXTERN void RCTExperimentSetPreemptiveViewAllocationDisabled(BOOL value);
18
18
 
19
- /*
20
- * Initial maximum surface size
21
- */
22
- RCT_EXTERN BOOL RCTGetInitialMaxSizeEnabled(void);
23
- RCT_EXTERN void RCTSetInitialMaxSizeEnabled(BOOL value);
24
-
25
19
  /*
26
20
  * Remove clipped subviews
27
21
  */
@@ -25,21 +25,6 @@ void RCTExperimentSetPreemptiveViewAllocationDisabled(BOOL value)
25
25
  RCTExperimentPreemptiveViewAllocationDisabled = value;
26
26
  }
27
27
 
28
- /*
29
- * Initial maximum surface size
30
- */
31
- static BOOL RCTInitialMaxSizeEnabled = NO;
32
-
33
- BOOL RCTGetInitialMaxSizeEnabled()
34
- {
35
- return RCTInitialMaxSizeEnabled;
36
- }
37
-
38
- void RCTSetInitialMaxSizeEnabled(BOOL value)
39
- {
40
- RCTInitialMaxSizeEnabled = value;
41
- }
42
-
43
28
  /*
44
29
  * Remove clipped subviews
45
30
  */
@@ -76,7 +76,7 @@ typedef NSURL RCTFileURL;
76
76
  #endif
77
77
 
78
78
  #if TARGET_OS_IPHONE
79
- + (WKDataDetectorTypes)WKDataDetectorTypes:(id)json API_AVAILABLE(ios(10.0));
79
+ + (WKDataDetectorTypes)WKDataDetectorTypes:(id)json;
80
80
  #endif
81
81
 
82
82
  + (UIViewContentMode)UIViewContentMode:(id)json;
@@ -16,10 +16,6 @@
16
16
  #import "RCTParserUtils.h"
17
17
  #import "RCTUtils.h"
18
18
 
19
- #if TARGET_OS_OSX // [TODO(macOS GH#774)
20
- #import "RCTDynamicColor.h"
21
- #endif // ]TODO(macOS GH#774)
22
-
23
19
  @implementation RCTConvert
24
20
 
25
21
  RCT_CONVERTER(id, id, self)
@@ -1043,7 +1039,28 @@ static NSColor *RCTColorWithSystemEffect(NSColor* color, NSString *systemEffectS
1043
1039
  RCTUIColor *highContrastDarkColor = [RCTConvert UIColor:highContrastDark]; // TODO(macOS GH#750)
1044
1040
  if (lightColor != nil && darkColor != nil) {
1045
1041
  #if TARGET_OS_OSX
1046
- RCTDynamicColor *color = [[RCTDynamicColor alloc] initWithAquaColor:lightColor darkAquaColor:darkColor];
1042
+ NSColor *color = [NSColor colorWithName:nil dynamicProvider:^NSColor * _Nonnull(NSAppearance * _Nonnull appearance) {
1043
+ NSMutableArray<NSAppearanceName> *appearances = [NSMutableArray arrayWithArray:@[NSAppearanceNameAqua,NSAppearanceNameDarkAqua]];
1044
+ if (highContrastLightColor != nil) {
1045
+ [appearances addObject:NSAppearanceNameAccessibilityHighContrastAqua];
1046
+ }
1047
+ if (highContrastDarkColor != nil) {
1048
+ [appearances addObject:NSAppearanceNameAccessibilityHighContrastDarkAqua];
1049
+ }
1050
+ NSAppearanceName bestMatchingAppearance = [appearance bestMatchFromAppearancesWithNames:appearances];
1051
+ if (bestMatchingAppearance == NSAppearanceNameAqua) {
1052
+ return lightColor;
1053
+ } else if (bestMatchingAppearance == NSAppearanceNameDarkAqua) {
1054
+ return darkColor;
1055
+ } else if (bestMatchingAppearance == NSAppearanceNameAccessibilityHighContrastAqua) {
1056
+ return highContrastLightColor;
1057
+ } else if (bestMatchingAppearance == NSAppearanceNameAccessibilityHighContrastDarkAqua) {
1058
+ return highContrastDarkColor;
1059
+ } else {
1060
+ RCTLogConvertError(json, @"an NSColorColor. Could not resolve current appearance. Defaulting to light.");
1061
+ return lightColor;
1062
+ }
1063
+ }];
1047
1064
  return color;
1048
1065
  #else
1049
1066
  #if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
@@ -1406,7 +1423,7 @@ RCT_ENUM_CONVERTER(
1406
1423
  @"link": NSAccessibilityLinkRole, // also a legacy iOS accessibilityTraits
1407
1424
  @"menu": NSAccessibilityMenuRole,
1408
1425
  @"menubar": NSAccessibilityMenuBarRole,
1409
- @"menuitem": NSAccessibilityMenuBarItemRole,
1426
+ @"menuitem": NSAccessibilityMenuItemRole,
1410
1427
  @"none": NSAccessibilityUnknownRole,
1411
1428
  @"progressbar": NSAccessibilityProgressIndicatorRole,
1412
1429
  @"radio": NSAccessibilityRadioButtonRole,
@@ -54,6 +54,15 @@
54
54
  #define RCT_DEV_MENU RCT_DEV
55
55
  #endif
56
56
 
57
+ /**
58
+ * Controls for the core packgaer loading functionality
59
+ * By default, this inherits from RCT_DEV_MENU but it also gives the capability to
60
+ * enable the packager functionality without the rest of the dev tools from RCT_DEV_MENU
61
+ */
62
+ #ifndef RCT_ENABLE_LOADING_FROM_PACKAGER
63
+ #define RCT_ENABLE_LOADING_FROM_PACKAGER RCT_DEV_MENU
64
+ #endif
65
+
57
66
  #ifndef RCT_ENABLE_INSPECTOR
58
67
  #if RCT_DEV && __has_include(<React/RCTInspectorDevServerHelper.h>)
59
68
  #define RCT_ENABLE_INSPECTOR 1
@@ -62,11 +71,11 @@
62
71
  #endif
63
72
  #endif
64
73
 
65
- #ifndef ENABLE_PACKAGER_CONNECTION
74
+ #ifndef RCT_DEV_SETTINGS_ENABLE_PACKAGER_CONNECTION
66
75
  #if RCT_DEV && (__has_include("RCTPackagerConnection.h") || __has_include(<React/RCTPackagerConnection.h>))
67
- #define ENABLE_PACKAGER_CONNECTION 1
76
+ #define RCT_DEV_SETTINGS_ENABLE_PACKAGER_CONNECTION 1
68
77
  #else
69
- #define ENABLE_PACKAGER_CONNECTION 0
78
+ #define RCT_DEV_SETTINGS_ENABLE_PACKAGER_CONNECTION 0
70
79
  #endif
71
80
  #endif
72
81
 
@@ -81,6 +81,8 @@ typedef NS_ENUM(NSInteger, RCTTextEventType) {
81
81
  */
82
82
  @protocol RCTEventDispatcherProtocol <RCTBridgeModule, RCTJSDispatcherModule>
83
83
 
84
+ - (void)sendViewEventWithName:(NSString *)name reactTag:(NSNumber *)reactTag;
85
+
84
86
  /**
85
87
  * Deprecated, do not use.
86
88
  */
@@ -42,6 +42,7 @@
42
42
  (CGSizeEqualToSize(_size, object.size) || CGSizeEqualToSize(object.size, CGSizeZero));
43
43
  }
44
44
 
45
+ #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
45
46
  - (NSString *)description
46
47
  {
47
48
  return [NSString stringWithFormat:@"<RCTImageSource: %p URL=%@, size=%@, scale=%0.f>",
@@ -50,6 +51,7 @@
50
51
  NSStringFromCGSize(_size),
51
52
  _scale];
52
53
  }
54
+ #endif // TODO(macOS GH#774)
53
55
 
54
56
  @end
55
57
 
@@ -136,6 +136,7 @@ static NSRegularExpression *RCTJSStackFrameRegex()
136
136
  return stack;
137
137
  }
138
138
 
139
+ #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
139
140
  - (NSString *)description
140
141
  {
141
142
  return [NSString stringWithFormat:@"<%@: %p method name: %@; file name: %@; line: %ld; column: %ld>",
@@ -146,5 +147,6 @@ static NSRegularExpression *RCTJSStackFrameRegex()
146
147
  (long)self.lineNumber,
147
148
  (long)self.column];
148
149
  }
150
+ #endif // TODO(macOS GH#774)
149
151
 
150
152
  @end
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
10
+
11
+ #import <React/RCTDefines.h>
12
+
13
+ /**
14
+ * This constant can be returned from +methodQueue to force module
15
+ * methods to be called on the JavaScript thread. This can have serious
16
+ * implications for performance, so only use this if you're sure it's what
17
+ * you need.
18
+ *
19
+ * NOTE: RCTJSThread is not a real libdispatch queue
20
+ */
21
+ RCT_EXTERN dispatch_queue_t RCTJSThread;
22
+
23
+ /**
24
+ * Initializes the RCTJSThread constant.
25
+ * Exported because the bridgeless initialization layer needs to initialize
26
+ * RCTJSThread. In bridgeless mode, RCTBridge isn't accessed, and RCTJSThread
27
+ * therefore isn't initialized.
28
+ */
29
+ RCT_EXTERN void _RCTInitializeJSThreadConstantInternal(void);
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import "RCTJSThread.h"
9
+
10
+ dispatch_queue_t RCTJSThread;
11
+
12
+ void _RCTInitializeJSThreadConstantInternal(void)
13
+ {
14
+ static dispatch_once_t onceToken;
15
+ dispatch_once(&onceToken, ^{
16
+ // Set up JS thread
17
+ RCTJSThread = (id)kCFNull;
18
+ });
19
+ }
@@ -62,6 +62,7 @@ static RCTSource *RCTSourceCreate(NSURL *url, NSData *data, int64_t length) NS_R
62
62
 
63
63
  @implementation RCTLoadingProgress
64
64
 
65
+ #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
65
66
  - (NSString *)description
66
67
  {
67
68
  NSMutableString *desc = [NSMutableString new];
@@ -77,6 +78,7 @@ static RCTSource *RCTSourceCreate(NSURL *url, NSData *data, int64_t length) NS_R
77
78
  [desc appendString:@"\u2026"];
78
79
  return desc;
79
80
  }
81
+ #endif // TODO(macOS GH#774)
80
82
 
81
83
  @end
82
84
 
@@ -74,6 +74,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init)
74
74
  return [_key isEqual:input] && (_flags == flags || flags == 0);
75
75
  }
76
76
 
77
+ #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
77
78
  - (NSString *)description
78
79
  {
79
80
  return [NSString stringWithFormat:@"<%@:%p input=\"%@\" flags=%lld hasBlock=%@>",
@@ -83,6 +84,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init)
83
84
  (long long)_flags,
84
85
  _block ? @"YES" : @"NO"];
85
86
  }
87
+ #endif // TODO(macOS GH#774)
86
88
 
87
89
  @end
88
90
 
@@ -570,9 +570,11 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init);
570
570
  _methodQueue = nil;
571
571
  }
572
572
 
573
+ #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
573
574
  - (NSString *)description
574
575
  {
575
576
  return [NSString stringWithFormat:@"<%@: %p; name=\"%@\">", [self class], self, self.name];
576
577
  }
578
+ #endif // TODO(macOS GH#774)
577
579
 
578
580
  @end
@@ -602,6 +602,7 @@ RCT_EXTERN_C_END
602
602
  return [NSString stringWithFormat:@"-[%@ %s]", _moduleClass, sel_getName(_selector)];
603
603
  }
604
604
 
605
+ #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
605
606
  - (NSString *)description
606
607
  {
607
608
  return [NSString stringWithFormat:@"<%@: %p; exports %@ as %s(); type: %s>",
@@ -611,5 +612,6 @@ RCT_EXTERN_C_END
611
612
  self.JSMethodName,
612
613
  RCTFunctionDescriptorFromType(self.functionType)];
613
614
  }
615
+ #endif // TODO(macOS GH#774)
614
616
 
615
617
  @end
@@ -8,6 +8,8 @@
8
8
  #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTBridge.h>
11
+ #import <React/RCTBridgeModule.h>
12
+ #import <React/RCTEventDispatcherProtocol.h>
11
13
 
12
14
  @protocol RCTRootViewDelegate;
13
15
 
@@ -75,6 +77,19 @@ extern
75
77
  initialProperties:(nullable NSDictionary *)initialProperties
76
78
  launchOptions:(nullable NSDictionary *)launchOptions;
77
79
 
80
+ /**
81
+ * This API allows RCTRootView users to know if the root view is backed by the bridge.
82
+ */
83
+ @property (nonatomic, readonly) BOOL hasBridge;
84
+
85
+ /**
86
+ * This API allows users of RCTRootView to access other NativeModules, without
87
+ * directly accessing the bridge.
88
+ */
89
+ @property (nonatomic, strong, readonly) RCTModuleRegistry *moduleRegistry;
90
+
91
+ @property (nonatomic, strong, readonly) id<RCTEventDispatcherProtocol> eventDispatcher;
92
+
78
93
  /**
79
94
  * The name of the JavaScript module to execute within the
80
95
  * specified scriptURL (required). Setting this will not have
@@ -136,6 +136,21 @@ NSString *const RCTContentDidAppearNotification = @"RCTContentDidAppearNotificat
136
136
  RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
137
137
  RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : (NSCoder *)aDecoder)
138
138
 
139
+ - (BOOL)hasBridge
140
+ {
141
+ return _bridge != nil;
142
+ }
143
+
144
+ - (RCTModuleRegistry *)moduleRegistry
145
+ {
146
+ return _bridge.moduleRegistry;
147
+ }
148
+
149
+ - (id<RCTEventDispatcherProtocol>)eventDispatcher
150
+ {
151
+ return [self.moduleRegistry moduleForName:"EventDispatcher"];
152
+ }
153
+
139
154
  #pragma mark - passThroughTouches
140
155
 
141
156
  - (BOOL)passThroughTouches
@@ -98,10 +98,12 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init)
98
98
  return _coalescingKey;
99
99
  }
100
100
 
101
+ #if DEBUG // TODO(macOS GH#774) description is a debug-only feature
101
102
  - (NSString *)description
102
103
  {
103
104
  return [NSString
104
105
  stringWithFormat:@"<%@: %p; name = %@; coalescing key = %hu>", [self class], self, _eventName, _coalescingKey];
105
106
  }
107
+ #endif // TODO(macOS GH#774)
106
108
 
107
109
  @end
@@ -41,10 +41,6 @@
41
41
 
42
42
  __weak RCTUIView *_cachedRootView; // TODO(macOS GH#774)
43
43
 
44
- // See Touch.h and usage. This gives us a time-basis for a monotonic
45
- // clock that acts like a timestamp of milliseconds elapsed since UNIX epoch.
46
- NSTimeInterval _unixEpochBasisTime;
47
-
48
44
  uint16_t _coalescingKey;
49
45
  #if TARGET_OS_OSX// [TODO(macOS GH#774)
50
46
  BOOL _shouldSendMouseUpOnSystemBehalf;
@@ -62,9 +58,6 @@
62
58
  _reactTouches = [NSMutableArray new];
63
59
  _touchViews = [NSMutableArray new];
64
60
 
65
- // Get a UNIX epoch basis time:
66
- _unixEpochBasisTime = [[NSDate date] timeIntervalSince1970] - [NSProcessInfo processInfo].systemUptime;
67
-
68
61
  #if !TARGET_OS_OSX // TODO(macOS GH#774)
69
62
  // `cancelsTouchesInView` and `delaysTouches*` are needed in order to be used as a top level
70
63
  // event delegated recognizer. Otherwise, lower-level components not built
@@ -236,7 +229,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
236
229
  reactTouch[@"pageY"] = @(RCTSanitizeNaNValue(rootViewLocation.y, @"touchEvent.pageY"));
237
230
  reactTouch[@"locationX"] = @(RCTSanitizeNaNValue(touchViewLocation.x, @"touchEvent.locationX"));
238
231
  reactTouch[@"locationY"] = @(RCTSanitizeNaNValue(touchViewLocation.y, @"touchEvent.locationY"));
239
- reactTouch[@"timestamp"] = @((_unixEpochBasisTime + nativeTouch.timestamp) * 1000); // in ms, for JS
232
+ reactTouch[@"timestamp"] = @(nativeTouch.timestamp * 1000); // in ms, for JS
240
233
 
241
234
  #if !TARGET_OS_OSX // TODO(macOS GH#774)
242
235
  // TODO: force for a 'normal' touch is usually 1.0;
@@ -40,6 +40,9 @@ RCT_EXTERN void RCTExecuteOnMainQueue(dispatch_block_t block);
40
40
  // Please do not use this unless you know what you're doing.
41
41
  RCT_EXTERN void RCTUnsafeExecuteOnMainQueueSync(dispatch_block_t block);
42
42
 
43
+ // Get screen scale, can be only used on main
44
+ RCT_EXTERN void RCTComputeScreenScale(void);
45
+
43
46
  // Get screen metrics in a thread-safe way
44
47
  RCT_EXTERN CGFloat RCTScreenScale(void);
45
48
  RCT_EXTERN CGFloat RCTFontSizeMultiplier(void);
@@ -297,16 +297,23 @@ static void RCTUnsafeExecuteOnMainQueueOnceSync(dispatch_once_t *onceToken, disp
297
297
  }
298
298
 
299
299
  #if !TARGET_OS_OSX // TODO(macOS GH#774)
300
- CGFloat RCTScreenScale()
300
+ static dispatch_once_t onceTokenScreenScale;
301
+ static CGFloat screenScale;
302
+
303
+ void RCTComputeScreenScale()
301
304
  {
302
- static dispatch_once_t onceToken;
303
- static CGFloat scale;
305
+ dispatch_once(&onceTokenScreenScale, ^{
306
+ screenScale = [UIScreen mainScreen].scale;
307
+ });
308
+ }
304
309
 
305
- RCTUnsafeExecuteOnMainQueueOnceSync(&onceToken, ^{
306
- scale = [UIScreen mainScreen].scale;
310
+ CGFloat RCTScreenScale()
311
+ {
312
+ RCTUnsafeExecuteOnMainQueueOnceSync(&onceTokenScreenScale, ^{
313
+ screenScale = [UIScreen mainScreen].scale;
307
314
  });
308
315
 
309
- return scale;
316
+ return screenScale;
310
317
  }
311
318
 
312
319
  CGFloat RCTFontSizeMultiplier()
@@ -335,7 +342,7 @@ CGFloat RCTFontSizeMultiplier()
335
342
 
336
343
  CGSize RCTScreenSize()
337
344
  {
338
- // FIXME: this caches the bounds at app start, whatever those were, and then
345
+ // FIXME: this caches whatever the bounds were when it was first called, and then
339
346
  // doesn't update when the device is rotated. We need to find another thread-
340
347
  // safe way to get the screen size.
341
348
 
@@ -28,7 +28,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(0),
30
30
  RCTVersionPatch: @(0),
31
- RCTVersionPrerelease: @"dd8ec0d8a",
31
+ RCTVersionPrerelease: @"df7003fd1",
32
32
  };
33
33
  });
34
34
  return __rnVersion;
@@ -7,6 +7,7 @@
7
7
 
8
8
  #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
+ #import <React/RCTBridgeModule.h>
10
11
  #import <React/RCTRootView.h>
11
12
 
12
13
  #import "RCTSurfaceHostingView.h"
@@ -26,6 +27,9 @@ NS_ASSUME_NONNULL_BEGIN
26
27
 
27
28
  @property (nonatomic, copy, readonly) NSString *moduleName;
28
29
  @property (nonatomic, strong, readonly) RCTBridge *bridge;
30
+ @property (nonatomic, readonly) BOOL hasBridge;
31
+ @property (nonatomic, strong, readonly) RCTModuleRegistry *moduleRegistry;
32
+ @property (nonatomic, strong, readonly) id<RCTEventDispatcherProtocol> eventDispatcher;
29
33
  @property (nonatomic, copy, readwrite) NSDictionary *appProperties;
30
34
  @property (nonatomic, assign) RCTRootViewSizeFlexibility sizeFlexibility;
31
35
  @property (nonatomic, weak) id<RCTRootViewDelegate> delegate;
@@ -46,6 +50,13 @@ NS_ASSUME_NONNULL_BEGIN
46
50
  initialProperties:(NSDictionary *)initialProperties
47
51
  launchOptions:(NSDictionary *)launchOptions;
48
52
 
53
+ /**
54
+ * Bridgeless mode initializer
55
+ */
56
+ - (instancetype)initWithSurface:(id<RCTSurfaceProtocol>)surface
57
+ sizeMeasureMode:(RCTSurfaceSizeMeasureMode)sizeMeasureMode
58
+ moduleRegistry:(RCTModuleRegistry *)moduleRegistry;
59
+
49
60
  - (void)cancelTouches;
50
61
 
51
62
  @end
@@ -10,6 +10,7 @@
10
10
  #import <objc/runtime.h>
11
11
 
12
12
  #import "RCTAssert.h"
13
+ #import "RCTBridge+Private.h"
13
14
  #import "RCTBridge.h"
14
15
  #import "RCTLog.h"
15
16
  #import "RCTPerformanceLogger.h"
@@ -48,7 +49,9 @@ static RCTRootViewSizeFlexibility convertToRootViewSizeFlexibility(RCTSurfaceSiz
48
49
  }
49
50
  }
50
51
 
51
- @implementation RCTSurfaceHostingProxyRootView
52
+ @implementation RCTSurfaceHostingProxyRootView {
53
+ RCTModuleRegistry *_moduleRegistry;
54
+ }
52
55
 
53
56
  - (instancetype)initWithBridge:(RCTBridge *)bridge
54
57
  moduleName:(NSString *)moduleName
@@ -94,6 +97,37 @@ static RCTRootViewSizeFlexibility convertToRootViewSizeFlexibility(RCTSurfaceSiz
94
97
  return [self initWithBridge:bridge moduleName:moduleName initialProperties:initialProperties];
95
98
  }
96
99
 
100
+ - (instancetype)initWithSurface:(id<RCTSurfaceProtocol>)surface
101
+ sizeMeasureMode:(RCTSurfaceSizeMeasureMode)sizeMeasureMode
102
+ moduleRegistry:(RCTModuleRegistry *)moduleRegistry
103
+ {
104
+ if (self = [super initWithSurface:surface sizeMeasureMode:sizeMeasureMode]) {
105
+ _moduleRegistry = moduleRegistry;
106
+ }
107
+
108
+ return self;
109
+ }
110
+
111
+ - (BOOL)hasBridge
112
+ {
113
+ return _bridge != nil;
114
+ }
115
+
116
+ - (RCTModuleRegistry *)moduleRegistry
117
+ {
118
+ // In bridgeless mode, RCTSurfaceHostingProxyRootView is created with an RCTModuleRegistry
119
+ if (_moduleRegistry) {
120
+ return _moduleRegistry;
121
+ }
122
+
123
+ return _bridge.moduleRegistry;
124
+ }
125
+
126
+ - (id<RCTEventDispatcherProtocol>)eventDispatcher
127
+ {
128
+ return [self.moduleRegistry moduleForName:"EventDispatcher"];
129
+ }
130
+
97
131
  RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
98
132
  RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : (NSCoder *)aDecoder)
99
133
 
@@ -50,7 +50,7 @@ static CVReturn RCTPlatformDisplayLinkCallBack(__unused CVDisplayLinkRef display
50
50
  os_unfair_lock_lock(&rctDisplayLink->_lock);
51
51
  if (rctDisplayLink->_runLoop != nil) {
52
52
  CFRunLoopRef cfRunLoop = [rctDisplayLink->_runLoop getCFRunLoop];
53
- CFRunLoopPerformBlock(cfRunLoop, kCFRunLoopDefaultMode, ^{
53
+ CFRunLoopPerformBlock(cfRunLoop, (__bridge CFArrayRef)rctDisplayLink->_modes, ^{
54
54
  [rctDisplayLink tick];
55
55
  });
56
56
  CFRunLoopWakeUp(cfRunLoop);
@@ -71,14 +71,17 @@ static CVReturn RCTPlatformDisplayLinkCallBack(__unused CVDisplayLinkRef display
71
71
 
72
72
  - (void)addToRunLoop:(NSRunLoop *)runloop forMode:(NSRunLoopMode)mode
73
73
  {
74
+ os_unfair_lock_lock(&_lock);
74
75
  _runLoop = runloop;
75
76
 
76
77
  if (_displayLink != NULL) {
77
78
  [_modes addObject:mode];
79
+ os_unfair_lock_unlock(&_lock);
78
80
  return;
79
81
  }
80
82
 
81
83
  _modes = @[mode].mutableCopy;
84
+ os_unfair_lock_unlock(&_lock);
82
85
  CVReturn ret = CVDisplayLinkCreateWithActiveCGDisplays(&_displayLink);
83
86
  if (ret != kCVReturnSuccess) {
84
87
  ret = CVDisplayLinkCreateWithCGDisplay(CGMainDisplayID(), &_displayLink);
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import "RCTAccessibilityManager.h"
9
+
10
+ #import <React/RCTDefines.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ RCT_EXTERN_C_BEGIN
15
+
16
+ // Only to be used for testing and internal tooling. Do not use this in
17
+ // production.
18
+ void RCTAccessibilityManagerSetIsVoiceOverEnabled(
19
+ RCTAccessibilityManager *accessibiltyManager,
20
+ BOOL isVoiceOverEnabled);
21
+
22
+ RCT_EXTERN_C_END
23
+
24
+ NS_ASSUME_NONNULL_END