react-native-macos 0.0.0-4a3b4bf8e → 0.0.0-4b32d87eb

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 (444) hide show
  1. package/Libraries/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +2 -3
  2. package/Libraries/Alert/Alert.js +117 -8
  3. package/Libraries/Alert/NativeAlertManager.js +1 -19
  4. package/Libraries/Alert/RCTAlertManager.android.js +1 -1
  5. package/Libraries/Animated/AnimatedImplementation.js +53 -53
  6. package/Libraries/Animated/AnimatedMock.js +8 -8
  7. package/Libraries/Animated/NativeAnimatedHelper.js +23 -20
  8. package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
  9. package/Libraries/Animated/nodes/AnimatedNode.js +10 -9
  10. package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
  11. package/Libraries/AppState/AppState.js +8 -7
  12. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +2 -2
  13. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  14. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -20
  15. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -2
  16. package/Libraries/Components/Button.js +1 -2
  17. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +6 -7
  18. package/Libraries/Components/Keyboard/Keyboard.js +8 -7
  19. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +5 -10
  20. package/Libraries/Components/Pressable/Pressable.js +1 -2
  21. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +2 -1
  22. package/Libraries/Components/RefreshControl/RefreshControl.js +2 -7
  23. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
  24. package/Libraries/Components/SafeAreaView/SafeAreaView.js +2 -2
  25. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +3 -5
  26. package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +3 -5
  27. package/Libraries/Components/ScrollView/ScrollView.js +29 -67
  28. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +5 -4
  29. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -2
  30. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +2 -8
  31. package/Libraries/Components/Sound/SoundManager.js +1 -1
  32. package/Libraries/Components/TextInput/InputAccessoryView.js +1 -2
  33. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +3 -5
  34. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +3 -5
  35. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
  36. package/Libraries/Components/TextInput/TextInput.js +130 -12
  37. package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +3 -3
  38. package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +3 -3
  39. package/Libraries/Components/Touchable/BoundingDimensions.js +2 -2
  40. package/Libraries/Components/Touchable/PooledClass.js +6 -6
  41. package/Libraries/Components/Touchable/Position.js +1 -1
  42. package/Libraries/Components/Touchable/Touchable.js +26 -25
  43. package/Libraries/Components/Touchable/TouchableBounce.js +1 -2
  44. package/Libraries/Components/Touchable/TouchableHighlight.js +1 -2
  45. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +4 -11
  46. package/Libraries/Components/Touchable/TouchableOpacity.js +1 -2
  47. package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -0
  48. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
  49. package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -0
  50. package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +3 -3
  51. package/Libraries/Components/View/View.js +0 -7
  52. package/Libraries/Components/View/ViewAccessibility.js +0 -5
  53. package/Libraries/Components/View/ViewNativeComponent.js +3 -4
  54. package/Libraries/Components/View/ViewPropTypes.js +10 -33
  55. package/Libraries/Core/Devtools/parseHermesStack.js +2 -1
  56. package/Libraries/Core/ExceptionsManager.js +2 -2
  57. package/Libraries/Core/NativeExceptionsManager.js +2 -3
  58. package/Libraries/Core/ReactNativeVersion.js +1 -1
  59. package/Libraries/Core/Timers/JSTimers.js +17 -13
  60. package/Libraries/Core/setUpAlert.js +1 -1
  61. package/Libraries/Core/setUpDeveloperTools.js +1 -1
  62. package/Libraries/Core/setUpPerformance.js +1 -1
  63. package/Libraries/Core/setUpRegeneratorRuntime.js +1 -1
  64. package/Libraries/Core/setUpSegmentFetcher.js +4 -4
  65. package/Libraries/EventEmitter/NativeEventEmitter.js +2 -1
  66. package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +2 -1
  67. package/Libraries/HeapCapture/HeapCapture.js +1 -1
  68. package/Libraries/Image/AssetSourceResolver.js +2 -4
  69. package/Libraries/Image/Image.android.js +4 -4
  70. package/Libraries/Image/Image.ios.js +3 -3
  71. package/Libraries/Image/ImageAnalyticsTagContext.js +2 -3
  72. package/Libraries/Image/ImageBackground.js +1 -2
  73. package/Libraries/Image/ImagePickerIOS.js +6 -6
  74. package/Libraries/Image/ImageViewNativeComponent.js +2 -4
  75. package/Libraries/Image/NativeImageLoaderAndroid.js +1 -3
  76. package/Libraries/Image/RCTImageCache.m +1 -1
  77. package/Libraries/Image/RCTImageView.mm +14 -10
  78. package/Libraries/Image/React-RCTImage.podspec +1 -1
  79. package/Libraries/Image/TextInlineImageNativeComponent.js +3 -5
  80. package/Libraries/Inspector/ElementProperties.js +2 -4
  81. package/Libraries/Inspector/InspectorOverlay.js +1 -2
  82. package/Libraries/Inspector/InspectorPanel.js +1 -2
  83. package/Libraries/Inspector/NetworkOverlay.js +5 -11
  84. package/Libraries/Interaction/BridgeSpyStallHandler.js +1 -1
  85. package/Libraries/Interaction/FrameRateLogger.js +2 -2
  86. package/Libraries/Interaction/InteractionManager.js +2 -4
  87. package/Libraries/Interaction/JSEventLoopWatchdog.js +4 -4
  88. package/Libraries/Interaction/PanResponder.js +3 -4
  89. package/Libraries/Interaction/TouchHistoryMath.js +7 -7
  90. package/Libraries/JSInspector/NetworkAgent.js +1 -6
  91. package/Libraries/LayoutAnimation/LayoutAnimation.js +3 -3
  92. package/Libraries/LinkingIOS/RCTLinkingManager.h +1 -0
  93. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  94. package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +12 -5
  95. package/Libraries/Lists/FillRateHelper.js +1 -3
  96. package/Libraries/Lists/FlatList.js +28 -5
  97. package/Libraries/Lists/ViewabilityHelper.js +4 -10
  98. package/Libraries/Lists/VirtualizeUtils.js +2 -6
  99. package/Libraries/Lists/VirtualizedList.js +136 -148
  100. package/Libraries/Lists/VirtualizedListContext.js +3 -5
  101. package/Libraries/Lists/VirtualizedSectionList.js +63 -68
  102. package/Libraries/LogBox/Data/LogBoxData.js +1 -1
  103. package/Libraries/LogBox/Data/parseLogBoxLog.js +12 -23
  104. package/Libraries/LogBox/UI/LogBoxButton.js +2 -4
  105. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +2 -4
  106. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -2
  107. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -2
  108. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +3 -6
  109. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -2
  110. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -4
  111. package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +2 -4
  112. package/Libraries/LogBox/UI/LogBoxNotification.js +2 -4
  113. package/Libraries/Modal/Modal.js +2 -4
  114. package/{ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp → Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h} +6 -4
  115. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
  116. package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
  117. package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
  118. package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +2 -0
  119. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
  120. package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -4
  121. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  122. package/Libraries/Network/XHRInterceptor.js +5 -6
  123. package/Libraries/NewAppScreen/components/Header.js +2 -4
  124. package/Libraries/NewAppScreen/components/HermesBadge.js +1 -2
  125. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +2 -4
  126. package/Libraries/Performance/SamplingProfiler.js +3 -3
  127. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -3
  128. package/Libraries/Pressability/Pressability.js +2 -2
  129. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +4 -2
  130. package/Libraries/PushNotificationIOS/PushNotificationIOS.js +8 -7
  131. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  132. package/Libraries/ReactNative/AppContainer.js +4 -6
  133. package/Libraries/ReactNative/AppRegistry.js +2 -3
  134. package/Libraries/ReactNative/I18nManager.js +2 -5
  135. package/Libraries/ReactNative/PaperUIManager.js +2 -3
  136. package/Libraries/ReactNative/RootTag.js +2 -3
  137. package/Libraries/ReactNative/renderApplication.js +1 -2
  138. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  139. package/Libraries/Storage/AsyncStorage.js +21 -21
  140. package/Libraries/StyleSheet/StyleSheet.js +2 -1
  141. package/Libraries/StyleSheet/StyleSheetTypes.js +26 -1
  142. package/Libraries/StyleSheet/processColor.js +2 -2
  143. package/Libraries/StyleSheet/splitLayoutProps.js +1 -3
  144. package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +8 -0
  145. package/Libraries/Text/RCTTextAttributes.h +11 -3
  146. package/Libraries/Text/RCTTextAttributes.m +31 -5
  147. package/Libraries/Text/Text/RCTDynamicTypeRamp.h +40 -0
  148. package/Libraries/Text/Text/RCTDynamicTypeRamp.m +77 -0
  149. package/Libraries/Text/Text/RCTTextView.m +123 -58
  150. package/Libraries/Text/Text.js +2 -15
  151. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +8 -0
  152. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +57 -2
  153. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +13 -0
  154. package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +2 -1
  155. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +89 -5
  156. package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +13 -1
  157. package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +12 -3
  158. package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +3 -2
  159. package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +12 -0
  160. package/Libraries/Text/TextInput/RCTBaseTextInputView.h +9 -1
  161. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +120 -2
  162. package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +12 -1
  163. package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +40 -1
  164. package/Libraries/Text/TextNativeComponent.js +5 -5
  165. package/Libraries/Text/TextProps.js +29 -0
  166. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  167. package/Libraries/Types/CoreEventTypes.js +0 -1
  168. package/Libraries/Utilities/Appearance.js +8 -5
  169. package/Libraries/Utilities/BackHandler.android.js +4 -4
  170. package/Libraries/Utilities/HMRClient.js +2 -2
  171. package/Libraries/Utilities/JSDevSupportModule.js +3 -4
  172. package/Libraries/Utilities/MatrixMath.js +19 -19
  173. package/Libraries/Utilities/PerformanceLoggerContext.js +2 -3
  174. package/Libraries/Utilities/ReactNativeTestTools.js +2 -4
  175. package/Libraries/Utilities/SceneTracker.js +1 -3
  176. package/Libraries/Utilities/__mocks__/BackHandler.js +3 -3
  177. package/Libraries/Utilities/buildStyleInterpolator.js +9 -9
  178. package/Libraries/Utilities/codegenNativeComponent.js +4 -2
  179. package/Libraries/Utilities/differ/deepDiffer.js +1 -1
  180. package/Libraries/Utilities/differ/insetsDiffer.js +1 -1
  181. package/Libraries/Utilities/differ/matricesDiffer.js +1 -1
  182. package/Libraries/Utilities/differ/pointsDiffer.js +1 -1
  183. package/Libraries/Utilities/differ/sizesDiffer.js +1 -1
  184. package/Libraries/Utilities/logError.js +1 -1
  185. package/Libraries/Utilities/mergeIntoFast.js +1 -1
  186. package/Libraries/Utilities/truncate.js +1 -1
  187. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  188. package/Libraries/Vibration/Vibration.js +2 -2
  189. package/Libraries/WebSocket/WebSocketInterceptor.js +4 -4
  190. package/Libraries/promiseRejectionTrackingOptions.js +1 -1
  191. package/Libraries/vendor/emitter/_EmitterSubscription.js +2 -1
  192. package/Libraries/vendor/emitter/_EventEmitter.js +2 -1
  193. package/Libraries/vendor/emitter/_EventSubscription.js +2 -1
  194. package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
  195. package/React/Base/RCTAssert.h +30 -15
  196. package/React/Base/RCTAssert.m +59 -19
  197. package/React/Base/RCTBridge.m +5 -3
  198. package/React/Base/RCTConstants.h +6 -0
  199. package/React/Base/RCTConstants.m +15 -0
  200. package/React/Base/RCTConvert.m +8 -4
  201. package/React/Base/RCTEventDispatcherProtocol.h +5 -0
  202. package/React/Base/RCTRootView.m +0 -51
  203. package/React/Base/RCTTouchHandler.m +4 -0
  204. package/React/Base/RCTUIKit.h +62 -13
  205. package/React/Base/RCTUtils.m +33 -3
  206. package/React/Base/RCTVersion.m +1 -1
  207. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
  208. package/React/Base/macOS/RCTUIKit.m +78 -0
  209. package/React/CoreModules/RCTAlertManager.mm +1 -1
  210. package/React/CoreModules/RCTAppearance.mm +21 -5
  211. package/React/CoreModules/RCTEventDispatcher.mm +6 -1
  212. package/React/CoreModules/RCTLogBox.h +1 -1
  213. package/React/CoreModules/RCTLogBox.mm +35 -19
  214. package/React/CoreModules/RCTLogBoxView.h +8 -5
  215. package/React/CoreModules/RCTLogBoxView.mm +64 -23
  216. package/React/CoreModules/RCTPerfMonitor.mm +1 -1
  217. package/React/CoreModules/React-CoreModules.podspec +1 -1
  218. package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
  219. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
  220. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.mm +3 -2
  221. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
  222. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +8 -8
  223. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
  224. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
  225. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +2 -1
  226. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +75 -25
  227. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
  228. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
  229. package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +1 -1
  230. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
  231. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +10 -5
  232. package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
  233. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
  234. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +0 -1
  235. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +3 -3
  236. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +4 -4
  237. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
  238. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
  239. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +4 -4
  240. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +56 -30
  241. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
  242. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +5 -5
  243. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
  244. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +3 -3
  245. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +1 -1
  246. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +1 -1
  247. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +2 -2
  248. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +2 -2
  249. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
  250. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +3 -0
  251. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
  252. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +39 -5
  253. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +9 -6
  254. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +16 -4
  255. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
  256. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +6 -4
  257. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
  258. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +14 -4
  259. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
  260. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +31 -23
  261. package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
  262. package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
  263. package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
  264. package/React/Fabric/Mounting/RCTComponentViewFactory.mm +12 -3
  265. package/React/Fabric/Mounting/RCTComponentViewProtocol.h +4 -4
  266. package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
  267. package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
  268. package/React/Fabric/Mounting/RCTMountingManager.h +4 -4
  269. package/React/Fabric/Mounting/RCTMountingManager.mm +28 -19
  270. package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
  271. package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.h +5 -3
  272. package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.mm +10 -8
  273. package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +6 -4
  274. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +6 -6
  275. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +6 -6
  276. package/React/Fabric/RCTConversions.h +15 -7
  277. package/React/Fabric/RCTImageResponseDelegate.h +1 -1
  278. package/React/Fabric/RCTImageResponseObserverProxy.h +1 -0
  279. package/React/Fabric/RCTLocalizationProvider.h +1 -1
  280. package/React/Fabric/RCTLocalizationProvider.mm +10 -4
  281. package/React/Fabric/RCTScheduler.h +8 -1
  282. package/React/Fabric/RCTScheduler.mm +15 -0
  283. package/React/Fabric/RCTSurfacePresenter.h +10 -2
  284. package/React/Fabric/RCTSurfacePresenter.mm +59 -27
  285. package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
  286. package/React/Fabric/RCTSurfaceRegistry.h +1 -1
  287. package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
  288. package/React/Fabric/RCTSurfaceTouchHandler.mm +8 -9
  289. package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
  290. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
  291. package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
  292. package/React/Modules/RCTSurfacePresenterStub.h +4 -0
  293. package/React/Modules/RCTUIManager.m +29 -14
  294. package/React/React-RCTFabric.podspec +2 -2
  295. package/React/Views/RCTActivityIndicatorView.m +2 -1
  296. package/React/Views/RCTCursor.h +39 -0
  297. package/React/Views/RCTCursor.m +105 -0
  298. package/React/Views/RCTMaskedView.h +1 -1
  299. package/React/Views/RCTModalHostView.h +2 -2
  300. package/React/Views/RCTModalHostViewController.h +1 -1
  301. package/React/Views/RCTModalManager.h +1 -1
  302. package/React/Views/RCTSwitch.h +1 -10
  303. package/React/Views/RCTSwitch.m +0 -20
  304. package/React/Views/RCTSwitchManager.m +0 -4
  305. package/React/Views/RCTView.h +16 -0
  306. package/React/Views/RCTView.m +142 -192
  307. package/React/Views/RCTViewKeyboardEvent.h +6 -28
  308. package/React/Views/RCTViewKeyboardEvent.m +66 -61
  309. package/React/Views/RCTViewManager.m +19 -13
  310. package/React/Views/RCTWeakViewHolder.h +1 -1
  311. package/React/Views/RCTWrapperViewController.h +2 -2
  312. package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
  313. package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
  314. package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
  315. package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
  316. package/React/Views/ScrollView/RCTScrollContentView.h +4 -0
  317. package/React/Views/ScrollView/RCTScrollContentView.m +18 -0
  318. package/React/Views/ScrollView/RCTScrollContentViewManager.m +2 -0
  319. package/React/Views/ScrollView/RCTScrollView.h +2 -1
  320. package/React/Views/ScrollView/RCTScrollView.m +66 -89
  321. package/React/Views/ScrollView/RCTScrollViewManager.m +1 -1
  322. package/React/Views/ScrollView/RCTScrollableProtocol.h +1 -1
  323. package/React/Views/UIView+React.h +2 -0
  324. package/React/Views/UIView+React.m +23 -14
  325. package/ReactAndroid/gradle.properties +1 -1
  326. package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +1 -2
  327. package/ReactAndroid/src/androidTest/js/Asserts.js +2 -2
  328. package/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js +1 -1
  329. package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +1 -2
  330. package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +1 -2
  331. package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +54 -54
  332. package/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js +1 -1
  333. package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +6 -7
  334. package/ReactAndroid/src/androidTest/js/ShareTestModule.js +1 -1
  335. package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +12 -19
  336. package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +2 -3
  337. package/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js +2 -2
  338. package/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js +17 -17
  339. package/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js +10 -10
  340. package/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js +2 -2
  341. package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +2 -3
  342. package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +3 -6
  343. package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +3 -6
  344. package/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js +5 -5
  345. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
  346. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  347. package/ReactAndroid/src/main/jni/Application.mk +1 -1
  348. package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
  349. package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
  350. package/ReactCommon/React-Fabric.podspec +1 -1
  351. package/ReactCommon/React-rncore.podspec +1 -1
  352. package/ReactCommon/ReactCommon.podspec +1 -1
  353. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  354. package/ReactCommon/cxxreact/tests/BUCK +1 -1
  355. package/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js +1 -1
  356. package/ReactCommon/hermes/inspector/tools/msggen/src/index.js +1 -1
  357. package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +3 -3
  358. package/ReactCommon/microprofiler/BUCK +1 -1
  359. package/ReactCommon/react/debug/react_native_assert.h +1 -1
  360. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
  361. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
  362. package/ReactCommon/react/renderer/animations/conversions.h +11 -11
  363. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
  364. package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
  365. package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
  366. package/ReactCommon/react/renderer/attributedstring/conversions.h +1 -1
  367. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
  368. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
  369. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +7 -5
  370. package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
  371. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
  372. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
  373. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
  374. package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
  375. package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
  376. package/ReactCommon/react/renderer/components/view/ViewProps.h +3 -1
  377. package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
  378. package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +16 -16
  379. package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
  380. package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
  381. package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
  382. package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
  383. package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -7
  384. package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
  385. package/ReactCommon/react/renderer/core/EventDispatcher.cpp +21 -0
  386. package/ReactCommon/react/renderer/core/EventDispatcher.h +15 -0
  387. package/ReactCommon/react/renderer/core/EventListener.cpp +39 -0
  388. package/ReactCommon/react/renderer/core/EventListener.h +44 -0
  389. package/ReactCommon/react/renderer/core/Props.h +0 -4
  390. package/ReactCommon/react/renderer/core/RawProps.h +1 -1
  391. package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
  392. package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
  393. package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
  394. package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
  395. package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
  396. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
  397. package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
  398. package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
  399. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
  400. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
  401. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
  402. package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
  403. package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
  404. package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
  405. package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
  406. package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
  407. package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
  408. package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +6 -9
  409. package/ReactCommon/react/renderer/mounting/TelemetryController.h +7 -7
  410. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +3 -2
  411. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +7 -1
  412. package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
  413. package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +19 -2
  414. package/ReactCommon/react/renderer/scheduler/Scheduler.h +10 -1
  415. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
  416. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
  417. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +15 -15
  418. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
  419. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
  420. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
  421. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
  422. package/ReactCommon/react/utils/ContextContainer.h +2 -2
  423. package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
  424. package/ReactCommon/react/utils/ManagedObjectWrapper.mm +1 -3
  425. package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
  426. package/ReactCommon/yoga/Yoga.podspec +1 -1
  427. package/index.js +0 -11
  428. package/jest/assetFileTransformer.js +2 -2
  429. package/jest/preprocessor.js +2 -2
  430. package/jest/setup.js +3 -3
  431. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.m +1 -1
  432. package/package.json +25 -25
  433. package/scripts/generate-artifacts.js +21 -17
  434. package/scripts/react_native_pods.rb +1 -4
  435. package/template/App.js +4 -8
  436. package/template/Gemfile.lock +8 -8
  437. package/template/android/gradlew.bat +89 -89
  438. package/template/ios/HelloWorldTests/HelloWorldTests.m +1 -0
  439. package/template/package.json +1 -1
  440. package/Libraries/Alert/AlertMacOS.js +0 -211
  441. package/Libraries/Types/RootTagTypes.js~merged +0 -23
  442. package/ReactCommon/butter/optional.h +0 -38
  443. package/ReactCommon/react/renderer/mounting/MountingTransactionMetadata.h +0 -32
  444. package/third-party-podspecs/boost-for-react-native.podspec +0 -20
@@ -5,19 +5,21 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
+
10
+ #import <optional>
9
11
 
10
12
  #import <React/RCTBackedTextInputViewProtocol.h>
11
- #import <butter/optional.h>
12
13
  #import <react/renderer/components/iostextinput/primitives.h>
13
14
 
14
15
  NS_ASSUME_NONNULL_BEGIN
15
16
 
16
17
  void RCTCopyBackedTextInput(
17
- UIView<RCTBackedTextInputViewProtocol> *fromTextInput,
18
- UIView<RCTBackedTextInputViewProtocol> *toTextInput);
18
+ RCTUIView<RCTBackedTextInputViewProtocol> *fromTextInput,
19
+ RCTUIView<RCTBackedTextInputViewProtocol> *toTextInput); // TODO(macOS GH#774)
19
20
 
20
- UITextAutocorrectionType RCTUITextAutocorrectionTypeFromOptionalBool(facebook::butter::optional<bool> autoCorrect);
21
+ #if !TARGET_OS_OSX // TODO(macOS GH#774)
22
+ UITextAutocorrectionType RCTUITextAutocorrectionTypeFromOptionalBool(std::optional<bool> autoCorrect);
21
23
 
22
24
  UITextAutocapitalizationType RCTUITextAutocapitalizationTypeFromAutocapitalizationType(
23
25
  facebook::react::AutocapitalizationType autocapitalizationType);
@@ -25,7 +27,7 @@ UITextAutocapitalizationType RCTUITextAutocapitalizationTypeFromAutocapitalizati
25
27
  UIKeyboardAppearance RCTUIKeyboardAppearanceFromKeyboardAppearance(
26
28
  facebook::react::KeyboardAppearance keyboardAppearance);
27
29
 
28
- UITextSpellCheckingType RCTUITextSpellCheckingTypeFromOptionalBool(facebook::butter::optional<bool> spellCheck);
30
+ UITextSpellCheckingType RCTUITextSpellCheckingTypeFromOptionalBool(std::optional<bool> spellCheck);
29
31
 
30
32
  UITextFieldViewMode RCTUITextFieldViewModeFromTextInputAccessoryVisibilityMode(
31
33
  facebook::react::TextInputAccessoryVisibilityMode mode);
@@ -39,5 +41,6 @@ UITextContentType RCTUITextContentTypeFromString(std::string const &contentType)
39
41
 
40
42
  API_AVAILABLE(ios(12.0))
41
43
  UITextInputPasswordRules *RCTUITextInputPasswordRulesFromString(std::string const &passwordRules);
44
+ #endif // ]TODO(macOS GH#774)
42
45
 
43
46
  NS_ASSUME_NONNULL_END
@@ -19,27 +19,36 @@ static NSAttributedString *RCTSanitizeAttributedString(NSAttributedString *attri
19
19
  }
20
20
 
21
21
  void RCTCopyBackedTextInput(
22
- UIView<RCTBackedTextInputViewProtocol> *fromTextInput,
23
- UIView<RCTBackedTextInputViewProtocol> *toTextInput)
22
+ RCTUIView<RCTBackedTextInputViewProtocol> *fromTextInput,
23
+ RCTUIView<RCTBackedTextInputViewProtocol> *toTextInput) // TODO(macOS GH#774)
24
24
  {
25
25
  toTextInput.attributedText = RCTSanitizeAttributedString(fromTextInput.attributedText);
26
26
  toTextInput.placeholder = fromTextInput.placeholder;
27
27
  toTextInput.placeholderColor = fromTextInput.placeholderColor;
28
28
  toTextInput.textContainerInset = fromTextInput.textContainerInset;
29
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
29
30
  toTextInput.inputAccessoryView = fromTextInput.inputAccessoryView;
31
+ #endif // ]TODO(macOS GH#774)
30
32
  toTextInput.textInputDelegate = fromTextInput.textInputDelegate;
31
33
  toTextInput.placeholderColor = fromTextInput.placeholderColor;
32
34
  toTextInput.defaultTextAttributes = fromTextInput.defaultTextAttributes;
35
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
33
36
  toTextInput.autocapitalizationType = fromTextInput.autocapitalizationType;
34
37
  toTextInput.autocorrectionType = fromTextInput.autocorrectionType;
38
+ #endif // ]TODO(macOS GH#774)
35
39
  toTextInput.contextMenuHidden = fromTextInput.contextMenuHidden;
36
40
  toTextInput.editable = fromTextInput.editable;
37
41
  toTextInput.enablesReturnKeyAutomatically = fromTextInput.enablesReturnKeyAutomatically;
42
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
38
43
  toTextInput.keyboardAppearance = fromTextInput.keyboardAppearance;
39
44
  toTextInput.spellCheckingType = fromTextInput.spellCheckingType;
45
+ #endif // ]TODO(macOS GH#774)
40
46
  toTextInput.caretHidden = fromTextInput.caretHidden;
47
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
41
48
  toTextInput.clearButtonMode = fromTextInput.clearButtonMode;
49
+ #endif // ]TODO(macOS GH#774)
42
50
  toTextInput.scrollEnabled = fromTextInput.scrollEnabled;
51
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
43
52
  toTextInput.secureTextEntry = fromTextInput.secureTextEntry;
44
53
  toTextInput.keyboardType = fromTextInput.keyboardType;
45
54
  toTextInput.textContentType = fromTextInput.textContentType;
@@ -49,9 +58,11 @@ void RCTCopyBackedTextInput(
49
58
  }
50
59
 
51
60
  [toTextInput setSelectedTextRange:fromTextInput.selectedTextRange notifyDelegate:NO];
61
+ #endif // ]TODO(macOS GH#774)
52
62
  }
53
63
 
54
- UITextAutocorrectionType RCTUITextAutocorrectionTypeFromOptionalBool(facebook::butter::optional<bool> autoCorrect)
64
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
65
+ UITextAutocorrectionType RCTUITextAutocorrectionTypeFromOptionalBool(std::optional<bool> autoCorrect)
55
66
  {
56
67
  return autoCorrect.has_value() ? (*autoCorrect ? UITextAutocorrectionTypeYes : UITextAutocorrectionTypeNo)
57
68
  : UITextAutocorrectionTypeDefault;
@@ -84,7 +95,7 @@ UIKeyboardAppearance RCTUIKeyboardAppearanceFromKeyboardAppearance(KeyboardAppea
84
95
  }
85
96
  }
86
97
 
87
- UITextSpellCheckingType RCTUITextSpellCheckingTypeFromOptionalBool(facebook::butter::optional<bool> spellCheck)
98
+ UITextSpellCheckingType RCTUITextSpellCheckingTypeFromOptionalBool(std::optional<bool> spellCheck)
88
99
  {
89
100
  return spellCheck.has_value() ? (*spellCheck ? UITextSpellCheckingTypeYes : UITextSpellCheckingTypeNo)
90
101
  : UITextSpellCheckingTypeDefault;
@@ -232,3 +243,4 @@ UITextInputPasswordRules *RCTUITextInputPasswordRulesFromString(std::string cons
232
243
  {
233
244
  return [UITextInputPasswordRules passwordRulesWithDescriptor:RCTNSStringFromStringNilIfEmpty(passwordRules)];
234
245
  }
246
+ #endif // ]TODO(macOS GH#774)
@@ -5,7 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
+ #import "React/RCTUITextView.h"
9
10
 
10
11
  #import <React/RCTViewComponentView.h>
11
12
 
@@ -14,7 +14,7 @@
14
14
  using namespace facebook::react;
15
15
 
16
16
  @implementation RCTUnimplementedNativeComponentView {
17
- UILabel *_label;
17
+ RCTUILabel *_label; // TODO(macOS GH#774)
18
18
  }
19
19
 
20
20
  - (instancetype)initWithFrame:(CGRect)frame
@@ -24,13 +24,15 @@ using namespace facebook::react;
24
24
  _props = defaultProps;
25
25
 
26
26
  CGRect bounds = self.bounds;
27
- _label = [[UILabel alloc] initWithFrame:bounds];
28
- _label.backgroundColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:0.3];
27
+ _label = [[RCTUILabel alloc] initWithFrame:bounds]; // TODO(macOS GH#774)
28
+ _label.backgroundColor = [RCTUIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:0.3];
29
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
29
30
  _label.layoutMargins = UIEdgeInsetsMake(12, 12, 12, 12);
31
+ #endif // ]TODO(macOS GH#774)
30
32
  _label.lineBreakMode = NSLineBreakByWordWrapping;
31
33
  _label.numberOfLines = 0;
32
34
  _label.textAlignment = NSTextAlignmentCenter;
33
- _label.textColor = [UIColor whiteColor];
35
+ _label.textColor = [RCTUIColor whiteColor]; // TODO(macOS GH#774)
34
36
 
35
37
  self.contentView = _label;
36
38
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTViewComponentView.h>
11
11
 
@@ -21,7 +21,7 @@
21
21
  using namespace facebook::react;
22
22
 
23
23
  @implementation RCTUnimplementedViewComponentView {
24
- UILabel *_label;
24
+ RCTUILabel *_label; // TODO(macOS GH#774)
25
25
  }
26
26
 
27
27
  - (instancetype)initWithFrame:(CGRect)frame
@@ -30,16 +30,26 @@ using namespace facebook::react;
30
30
  static auto const defaultProps = std::make_shared<UnimplementedViewProps const>();
31
31
  _props = defaultProps;
32
32
 
33
- _label = [[UILabel alloc] initWithFrame:self.bounds];
34
- _label.backgroundColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:0.3];
33
+ _label = [[RCTUILabel alloc] initWithFrame:self.bounds]; // TODO(macOS GH#774)
34
+ _label.backgroundColor = [RCTUIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:0.3]; // TODO(macOS GH#774)
35
35
  _label.lineBreakMode = NSLineBreakByCharWrapping;
36
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
36
37
  _label.numberOfLines = 0;
37
38
  _label.textAlignment = NSTextAlignmentCenter;
38
- _label.textColor = [UIColor whiteColor];
39
+ #else
40
+ _label.alignment = NSTextAlignmentCenter;
41
+ #endif // ]TODO(macOS GH#774)
42
+ _label.textColor = [RCTUIColor whiteColor]; // TODO(macOS GH#774)
39
43
  _label.allowsDefaultTighteningForTruncation = YES;
44
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
40
45
  _label.adjustsFontSizeToFitWidth = YES;
46
+ #endif // ]TODO(macOS GH#774)
41
47
 
48
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
42
49
  self.contentView = _label;
50
+ #else
51
+ [self.contentView addSubview:_label];
52
+ #endif // ]TODO(macOS GH#774)
43
53
  }
44
54
 
45
55
  return self;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTComponentViewProtocol.h>
11
11
  #import <React/RCTConstants.h>
@@ -22,12 +22,12 @@ NS_ASSUME_NONNULL_BEGIN
22
22
  /**
23
23
  * UIView class for <View> component.
24
24
  */
25
- @interface RCTViewComponentView : UIView <RCTComponentViewProtocol, RCTTouchableComponentViewProtocol> {
25
+ @interface RCTViewComponentView : RCTUIView <RCTComponentViewProtocol, RCTTouchableComponentViewProtocol> {
26
26
  @protected
27
27
  facebook::react::LayoutMetrics _layoutMetrics;
28
28
  facebook::react::SharedViewProps _props;
29
29
  facebook::react::SharedViewEventEmitter _eventEmitter;
30
- }
30
+ } // TODO(macOS GH#774)
31
31
 
32
32
  /**
33
33
  * Represents the `UIView` instance that is being automatically attached to
@@ -37,7 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
37
37
  * to embed/bridge pure native views as component views.
38
38
  * Defaults to `nil`. Assign `nil` to remove view as subview.
39
39
  */
40
- @property (nonatomic, strong, nullable) UIView *contentView;
40
+ @property (nonatomic, strong, nullable) RCTUIView *contentView; // TODO(macOS GH#774)
41
41
 
42
42
  /**
43
43
  * Provides access to `nativeId` prop of the component.
@@ -52,7 +52,7 @@ NS_ASSUME_NONNULL_BEGIN
52
52
  * Provides access to `foregroundColor` prop of the component.
53
53
  * Must be used by subclasses only.
54
54
  */
55
- @property (nonatomic, strong, nullable) UIColor *foregroundColor;
55
+ @property (nonatomic, strong, nullable) RCTUIColor *foregroundColor; // TODO(macOS GH#774)
56
56
 
57
57
  /**
58
58
  * Returns the object - usually (sub)view - which represents this
@@ -8,6 +8,7 @@
8
8
  #import "RCTViewComponentView.h"
9
9
 
10
10
  #import <CoreGraphics/CoreGraphics.h>
11
+ #import <QuartzCore/QuartzCore.h>
11
12
  #import <objc/runtime.h>
12
13
 
13
14
  #import <React/RCTAssert.h>
@@ -20,12 +21,12 @@
20
21
  using namespace facebook::react;
21
22
 
22
23
  @implementation RCTViewComponentView {
23
- UIColor *_backgroundColor;
24
+ RCTUIColor *_backgroundColor; // TODO(macOS GH#774)
24
25
  CALayer *_borderLayer;
25
26
  BOOL _needsInvalidateLayer;
26
27
  BOOL _isJSResponder;
27
28
  BOOL _removeClippedSubviews;
28
- NSMutableArray<UIView *> *_reactSubviews;
29
+ NSMutableArray<RCTUIView *> *_reactSubviews; // TODO(macOS GH#774)
29
30
  NSSet<NSString *> *_Nullable _propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN;
30
31
  }
31
32
 
@@ -42,12 +43,12 @@ using namespace facebook::react;
42
43
  return self;
43
44
  }
44
45
 
45
- - (facebook::react::SharedProps)props
46
+ - (facebook::react::Props::Shared)props
46
47
  {
47
48
  return _props;
48
49
  }
49
50
 
50
- - (void)setContentView:(UIView *)contentView
51
+ - (void)setContentView:(RCTUIView *)contentView // TODO(macOS GH#774)
51
52
  {
52
53
  if (_contentView) {
53
54
  [_contentView removeFromSuperview];
@@ -70,12 +71,12 @@ using namespace facebook::react;
70
71
  return CGRectContainsPoint(hitFrame, point);
71
72
  }
72
73
 
73
- - (UIColor *)backgroundColor
74
+ - (RCTUIColor *)backgroundColor // TODO(macOS GH#774)
74
75
  {
75
76
  return _backgroundColor;
76
77
  }
77
78
 
78
- - (void)setBackgroundColor:(UIColor *)backgroundColor
79
+ - (void)setBackgroundColor:(RCTUIColor *)backgroundColor // TODO(macOS GH#774)
79
80
  {
80
81
  _backgroundColor = backgroundColor;
81
82
  }
@@ -91,7 +92,7 @@ using namespace facebook::react;
91
92
  return concreteComponentDescriptorProvider<ViewComponentDescriptor>();
92
93
  }
93
94
 
94
- - (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
95
+ - (void)mountChildComponentView:(RCTUIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index // TODO(macOS GH#774)
95
96
  {
96
97
  RCTAssert(
97
98
  childComponentView.superview == nil,
@@ -108,7 +109,7 @@ using namespace facebook::react;
108
109
  }
109
110
  }
110
111
 
111
- - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
112
+ - (void)unmountChildComponentView:(RCTUIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index // TODO(macOS GH#774)
112
113
  {
113
114
  if (_removeClippedSubviews) {
114
115
  [_reactSubviews removeObjectAtIndex:index];
@@ -132,7 +133,7 @@ using namespace facebook::react;
132
133
  [childComponentView removeFromSuperview];
133
134
  }
134
135
 
135
- - (void)updateClippedSubviewsWithClipRect:(CGRect)clipRect relativeToView:(UIView *)clipView
136
+ - (void)updateClippedSubviewsWithClipRect:(CGRect)clipRect relativeToView:(RCTUIView *)clipView // TODO(macOS GH#774)
136
137
  {
137
138
  if (!_removeClippedSubviews) {
138
139
  // Use default behavior if unmounting is disabled
@@ -153,7 +154,7 @@ using namespace facebook::react;
153
154
  clipRect = [clipView convertRect:clipRect toView:self];
154
155
 
155
156
  // Mount / unmount views
156
- for (UIView *view in _reactSubviews) {
157
+ for (RCTUIView *view in _reactSubviews) { // TODO(macOS GH#774)
157
158
  if (CGRectIntersectsRect(clipRect, view.frame)) {
158
159
  // View is at least partially visible, so remount it if unmounted
159
160
  [self addSubview:view];
@@ -202,13 +203,13 @@ using namespace facebook::react;
202
203
 
203
204
  // `backgroundColor`
204
205
  if (oldViewProps.backgroundColor != newViewProps.backgroundColor) {
205
- self.backgroundColor = RCTUIColorFromSharedColor(newViewProps.backgroundColor);
206
+ self.backgroundColor = RCTUIColorFromSharedColor(newViewProps.backgroundColor); // TODO(macOS GH#774)
206
207
  needsInvalidateLayer = YES;
207
208
  }
208
209
 
209
210
  // `foregroundColor`
210
211
  if (oldViewProps.foregroundColor != newViewProps.foregroundColor) {
211
- self.foregroundColor = RCTUIColorFromSharedColor(newViewProps.foregroundColor);
212
+ self.foregroundColor = RCTUIColorFromSharedColor(newViewProps.foregroundColor); // TODO(macOS GH#774)
212
213
  }
213
214
 
214
215
  // `shadowColor`
@@ -335,12 +336,12 @@ using namespace facebook::react;
335
336
 
336
337
  // `accessibilityValue`
337
338
  if (oldViewProps.accessibilityValue != newViewProps.accessibilityValue) {
338
- if (newViewProps.accessibilityValue.text.hasValue()) {
339
+ if (newViewProps.accessibilityValue.text.has_value()) {
339
340
  self.accessibilityElement.accessibilityValue =
340
341
  RCTNSStringFromStringNilIfEmpty(newViewProps.accessibilityValue.text.value());
341
342
  } else if (
342
- newViewProps.accessibilityValue.now.hasValue() && newViewProps.accessibilityValue.min.hasValue() &&
343
- newViewProps.accessibilityValue.max.hasValue()) {
343
+ newViewProps.accessibilityValue.now.has_value() && newViewProps.accessibilityValue.min.has_value() &&
344
+ newViewProps.accessibilityValue.max.has_value()) {
344
345
  CGFloat val = (CGFloat)(newViewProps.accessibilityValue.now.value()) /
345
346
  (newViewProps.accessibilityValue.max.value() - newViewProps.accessibilityValue.min.value());
346
347
  self.accessibilityElement.accessibilityValue =
@@ -437,7 +438,7 @@ using namespace facebook::react;
437
438
  return _propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN;
438
439
  }
439
440
 
440
- - (UIView *)betterHitTest:(CGPoint)point withEvent:(UIEvent *)event
441
+ - (RCTUIView *)betterHitTest:(CGPoint)point withEvent:(UIEvent *)event // TODO(macOS GH#774)
441
442
  {
442
443
  // This is a classic textbook implementation of `hitTest:` with a couple of improvements:
443
444
  // * It does not stop algorithm if some touch is outside the view
@@ -459,8 +460,8 @@ using namespace facebook::react;
459
460
  return nil;
460
461
  }
461
462
 
462
- for (UIView *subview in [self.subviews reverseObjectEnumerator]) {
463
- UIView *hitView = [subview hitTest:[subview convertPoint:point fromView:self] withEvent:event];
463
+ for (RCTUIView *subview in [self.subviews reverseObjectEnumerator]) { // TODO(macOS GH#774)
464
+ RCTUIView *hitView = [subview hitTest:[subview convertPoint:point fromView:self] withEvent:event]; // TODO(macOS GH#774)
464
465
  if (hitView) {
465
466
  return hitView;
466
467
  }
@@ -469,7 +470,7 @@ using namespace facebook::react;
469
470
  return isPointInside ? self : nil;
470
471
  }
471
472
 
472
- - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
473
+ - (RCTUIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event // TODO(macOS GH#774)
473
474
  {
474
475
  switch (_props->pointerEvents) {
475
476
  case PointerEventsMode::Auto:
@@ -479,7 +480,7 @@ using namespace facebook::react;
479
480
  case PointerEventsMode::BoxOnly:
480
481
  return [self pointInside:point withEvent:event] ? self : nil;
481
482
  case PointerEventsMode::BoxNone:
482
- UIView *view = [self betterHitTest:point withEvent:event];
483
+ RCTUIView *view = [self betterHitTest:point withEvent:event]; // TODO(macOS GH#774)
483
484
  return view != self ? view : nil;
484
485
  }
485
486
  }
@@ -591,6 +592,12 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle)
591
592
 
592
593
  RCTBorderColors borderColors = RCTCreateRCTBorderColorsFromBorderColors(borderMetrics.borderColors);
593
594
 
595
+ #if TARGET_OS_OSX // [TODO(macOS GH#774)
596
+ CGFloat scaleFactor = self.window.backingScaleFactor;
597
+ #else
598
+ // On iOS setting the scaleFactor to 0.0 will default to the device's native scale factor.
599
+ CGFloat scaleFactor = 0.0;
600
+ #endif // ]TODO(macOS GH#774)
594
601
  UIImage *image = RCTGetBorderImage(
595
602
  RCTBorderStyleFromBorderStyle(borderMetrics.borderStyles.left),
596
603
  layer.bounds.size,
@@ -598,7 +605,8 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle)
598
605
  RCTUIEdgeInsetsFromEdgeInsets(borderMetrics.borderWidths),
599
606
  borderColors,
600
607
  _backgroundColor.CGColor,
601
- self.clipsToBounds);
608
+ self.clipsToBounds,
609
+ scaleFactor); // TODO(macOS GH#774)
602
610
 
603
611
  RCTReleaseRCTBorderColors(borderColors);
604
612
 
@@ -654,10 +662,10 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle)
654
662
  return self;
655
663
  }
656
664
 
657
- static NSString *RCTRecursiveAccessibilityLabel(UIView *view)
665
+ static NSString *RCTRecursiveAccessibilityLabel(RCTUIView *view) // TODO(macOS GH#774)
658
666
  {
659
667
  NSMutableString *result = [NSMutableString stringWithString:@""];
660
- for (UIView *subview in view.subviews) {
668
+ for (RCTUIView *subview in view.subviews) { // TODO(macOS GH#774)
661
669
  NSString *label = subview.accessibilityLabel;
662
670
  if (!label) {
663
671
  label = RCTRecursiveAccessibilityLabel(subview);
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTComponentViewProtocol.h>
11
11
 
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTComponentViewProtocol.h>
11
11
 
@@ -21,7 +21,7 @@ class RCTComponentViewDescriptor final {
21
21
  /*
22
22
  * Associated (and owned) native view instance.
23
23
  */
24
- __strong UIView<RCTComponentViewProtocol> *view = nil;
24
+ __strong RCTUIView<RCTComponentViewProtocol> *view = nil; // TODO(macOS GH#774)
25
25
 
26
26
  /*
27
27
  * Indicates a requirement to call on the view methods from
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTComponentViewDescriptor.h>
11
11
  #import <React/RCTComponentViewProtocol.h>
@@ -95,9 +95,9 @@ static Class<RCTComponentViewProtocol> RCTComponentViewClassWithName(const char
95
95
  {
96
96
  .viewClass = viewClass,
97
97
  .observesMountingTransactionWillMount =
98
- (bool)class_respondsToSelector(viewClass, @selector(mountingTransactionWillMountWithMetadata:)),
98
+ (bool)class_respondsToSelector(viewClass, @selector(mountingTransactionWillMount:withSurfaceTelemetry:)),
99
99
  .observesMountingTransactionDidMount =
100
- (bool)class_respondsToSelector(viewClass, @selector(mountingTransactionDidMountWithMetadata:)),
100
+ (bool)class_respondsToSelector(viewClass, @selector(mountingTransactionDidMount:withSurfaceTelemetry:)),
101
101
  };
102
102
  #pragma clang diagnostic pop
103
103
  }
@@ -117,7 +117,16 @@ static Class<RCTComponentViewProtocol> RCTComponentViewClassWithName(const char
117
117
  }
118
118
 
119
119
  // Fallback 2: Try to use Paper Interop.
120
- if ([RCTLegacyViewManagerInteropComponentView isSupported:RCTNSStringFromString(name)]) {
120
+ NSString *componentNameString = RCTNSStringFromString(name);
121
+ if ([RCTLegacyViewManagerInteropComponentView isSupported:componentNameString]) {
122
+ RCTLogNewArchitectureValidation(
123
+ RCTNotAllowedInBridgeless,
124
+ self,
125
+ [NSString
126
+ stringWithFormat:
127
+ @"Legacy ViewManagers should be migrated to Fabric ComponentViews in the new architecture to reduce risk. Component using interop layer: %@",
128
+ componentNameString]);
129
+
121
130
  auto flavor = std::make_shared<std::string const>(name);
122
131
  auto componentName = ComponentName{flavor->c_str()};
123
132
  auto componentHandle = reinterpret_cast<ComponentHandle>(componentName);
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <react/renderer/componentregistry/ComponentDescriptorProvider.h>
11
11
  #import <react/renderer/core/EventEmitter.h>
@@ -54,14 +54,14 @@ typedef NS_OPTIONS(NSInteger, RNComponentViewUpdateMask) {
54
54
  * component view.
55
55
  * Receiver must add `childComponentView` as a subview.
56
56
  */
57
- - (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
57
+ - (void)mountChildComponentView:(RCTUIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index; // TODO(macOS GH#774)
58
58
 
59
59
  /*
60
60
  * Called for unmounting (detaching) a child component view from `self`
61
61
  * component view.
62
62
  * Receiver must remove `childComponentView` as a subview.
63
63
  */
64
- - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
64
+ - (void)unmountChildComponentView:(RCTUIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index; // TODO(macOS GH#774)
65
65
 
66
66
  /*
67
67
  * Called for updating component's props.
@@ -114,7 +114,7 @@ typedef NS_OPTIONS(NSInteger, RNComponentViewUpdateMask) {
114
114
  /*
115
115
  * Read the last props used to update the view.
116
116
  */
117
- - (facebook::react::SharedProps)props;
117
+ - (facebook::react::Props::Shared)props;
118
118
 
119
119
  - (BOOL)isJSResponder;
120
120
  - (void)setIsJSResponder:(BOOL)isJSResponder;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTComponentViewDescriptor.h>
11
11
  #import <React/RCTComponentViewFactory.h>
@@ -48,7 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
48
48
  * Finds a native component view by given `tag`.
49
49
  * Returns `nil` if there is no registered component with the `tag`.
50
50
  */
51
- - (nullable UIView<RCTComponentViewProtocol> *)findComponentViewWithTag:(facebook::react::Tag)tag;
51
+ - (nullable RCTUIView<RCTComponentViewProtocol> *)findComponentViewWithTag:(facebook::react::Tag)tag; // TODO(macOS GH#774)
52
52
 
53
53
  /**
54
54
  * Creates a component view with a given type and puts it to the recycle pool.
@@ -31,10 +31,12 @@ const NSInteger RCTComponentViewRegistryRecyclePoolMaxSize = 1024;
31
31
  if (self = [super init]) {
32
32
  _componentViewFactory = [RCTComponentViewFactory currentComponentViewFactory];
33
33
 
34
+ #if !TARGET_OS_OSX // [TODO(macOS GH#774)
34
35
  [[NSNotificationCenter defaultCenter] addObserver:self
35
36
  selector:@selector(handleApplicationDidReceiveMemoryWarningNotification)
36
37
  name:UIApplicationDidReceiveMemoryWarningNotification
37
38
  object:nil];
39
+ #endif // ]TODO(macOS GH#774)
38
40
 
39
41
  dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
40
42
  // Calling this a bit later, when the main thread is probably idle while JavaScript thread is busy.
@@ -116,7 +118,7 @@ const NSInteger RCTComponentViewRegistryRecyclePoolMaxSize = 1024;
116
118
  return iterator->second;
117
119
  }
118
120
 
119
- - (nullable UIView<RCTComponentViewProtocol> *)findComponentViewWithTag:(Tag)tag
121
+ - (nullable RCTUIView<RCTComponentViewProtocol> *)findComponentViewWithTag:(Tag)tag // TODO(macOS GH#774)
120
122
  {
121
123
  RCTAssertMainQueue();
122
124
  auto iterator = _registry.find(tag);
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTMountingManagerDelegate.h>
11
11
  #import <React/RCTPrimitives.h>
@@ -36,12 +36,12 @@ NS_ASSUME_NONNULL_BEGIN
36
36
  * influence the intrinsic size of the view and cannot be measured using UIView/UIKit layout API.
37
37
  * Must be called on the main thead.
38
38
  */
39
- - (void)attachSurfaceToView:(UIView *)view surfaceId:(facebook::react::SurfaceId)surfaceId;
39
+ - (void)attachSurfaceToView:(RCTUIView *)view surfaceId:(facebook::react::SurfaceId)surfaceId; // TODO(macOS GH#774)
40
40
 
41
41
  /**
42
42
  * Stops designating the view as a rendering viewport of a React Native surface.
43
43
  */
44
- - (void)detachSurfaceFromView:(UIView *)view surfaceId:(facebook::react::SurfaceId)surfaceId;
44
+ - (void)detachSurfaceFromView:(RCTUIView *)view surfaceId:(facebook::react::SurfaceId)surfaceId; // TODO(macOS GH#774)
45
45
 
46
46
  /**
47
47
  * Schedule a mounting transaction to be performed on the main thread.
@@ -63,7 +63,7 @@ NS_ASSUME_NONNULL_BEGIN
63
63
 
64
64
  - (void)setIsJSResponder:(BOOL)isJSResponder
65
65
  blockNativeResponder:(BOOL)blockNativeResponder
66
- forShadowView:(facebook::react::ShadowView)shadowView;
66
+ forShadowView:(facebook::react::ShadowView const &)shadowView;
67
67
 
68
68
  - (void)synchronouslyUpdateViewOnUIThread:(ReactTag)reactTag
69
69
  changedProps:(NSDictionary *)props