react-native-macos 0.0.0-cb5eaa9e1 → 0.0.0-ccc088f1d

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 (281) hide show
  1. package/Libraries/Alert/Alert.js +115 -6
  2. package/Libraries/Alert/NativeAlertManager.js +1 -19
  3. package/Libraries/Animated/animations/TimingAnimation.js +2 -7
  4. package/Libraries/Animated/nodes/AnimatedColor.js +20 -1
  5. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  6. package/Libraries/Components/Pressable/Pressable.js +2 -3
  7. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
  8. package/Libraries/Components/TextInput/TextInput.js +7 -0
  9. package/Libraries/Components/View/ViewAccessibility.js +0 -5
  10. package/Libraries/Components/View/ViewNativeComponent.js +64 -7
  11. package/Libraries/Components/View/ViewPropTypes.js +97 -117
  12. package/Libraries/Core/ReactNativeVersion.js +1 -5
  13. package/Libraries/Core/setUpReactDevTools.js +3 -2
  14. package/Libraries/Image/RCTImageLoader.mm +19 -13
  15. package/Libraries/Image/RCTImageView.h +0 -8
  16. package/Libraries/Image/React-RCTImage.podspec +1 -1
  17. package/Libraries/Inspector/Inspector.js +2 -4
  18. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  19. package/Libraries/Lists/VirtualizedList.js +13 -1
  20. package/{ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp → Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h} +6 -4
  21. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
  22. package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
  23. package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
  24. package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +2 -0
  25. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
  26. package/Libraries/NativeComponent/PlatformBaseViewConfig.js +506 -0
  27. package/Libraries/NativeComponent/StaticViewConfigValidator.js +5 -1
  28. package/Libraries/NativeComponent/ViewConfig.js +4 -4
  29. package/Libraries/NativeComponent/ViewConfigIgnore.js +27 -0
  30. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  31. package/Libraries/Pressability/PressabilityDebug.js +5 -9
  32. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  33. package/Libraries/ReactNative/DummyUIManager.js +5 -3
  34. package/Libraries/ReactNative/UIManager.js +1 -2
  35. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  36. package/Libraries/StyleSheet/EdgeInsetsPropType.js +4 -1
  37. package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +7 -0
  38. package/Libraries/Text/RCTTextAttributes.h +9 -3
  39. package/Libraries/Text/RCTTextAttributes.m +17 -0
  40. package/Libraries/Text/Text/RCTTextView.h +1 -1
  41. package/Libraries/Text/Text/RCTTextView.m +8 -14
  42. package/Libraries/Text/Text.js +0 -6
  43. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +5 -0
  44. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +55 -5
  45. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +2 -0
  46. package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +1 -1
  47. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +7 -3
  48. package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +2 -2
  49. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +7 -1
  50. package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +2 -3
  51. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  52. package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -2
  53. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  54. package/React/Base/RCTAssert.h +30 -15
  55. package/React/Base/RCTAssert.m +59 -19
  56. package/React/Base/RCTBridge.m +5 -3
  57. package/React/Base/RCTConstants.h +6 -0
  58. package/React/Base/RCTConstants.m +15 -0
  59. package/React/Base/RCTEventDispatcherProtocol.h +5 -0
  60. package/React/Base/RCTRootContentView.m +2 -2
  61. package/React/Base/RCTTouchHandler.m +4 -3
  62. package/React/Base/RCTUIKit.h +91 -19
  63. package/React/Base/RCTVersion.m +1 -5
  64. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
  65. package/React/Base/macOS/RCTUIKit.m +83 -7
  66. package/React/CoreModules/RCTAlertManager.mm +1 -1
  67. package/React/CoreModules/RCTEventDispatcher.mm +6 -1
  68. package/React/CoreModules/RCTLogBox.h +1 -1
  69. package/React/CoreModules/RCTLogBox.mm +35 -19
  70. package/React/CoreModules/RCTLogBoxView.h +8 -5
  71. package/React/CoreModules/RCTLogBoxView.mm +64 -23
  72. package/React/CoreModules/React-CoreModules.podspec +1 -1
  73. package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
  74. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
  75. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.mm +3 -2
  76. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
  77. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +8 -8
  78. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
  79. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
  80. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +2 -1
  81. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +75 -25
  82. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
  83. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
  84. package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +1 -1
  85. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
  86. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +10 -5
  87. package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
  88. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
  89. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +10 -1
  90. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +5 -3
  91. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +23 -6
  92. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
  93. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +17 -1
  94. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +6 -4
  95. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +98 -34
  96. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
  97. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +19 -5
  98. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
  99. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +3 -3
  100. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +5 -1
  101. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +3 -1
  102. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +4 -2
  103. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +6 -2
  104. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
  105. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +22 -1
  106. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
  107. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +39 -5
  108. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +9 -6
  109. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +16 -4
  110. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
  111. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +6 -4
  112. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
  113. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +14 -4
  114. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
  115. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +41 -23
  116. package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
  117. package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
  118. package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
  119. package/React/Fabric/Mounting/RCTComponentViewFactory.mm +12 -3
  120. package/React/Fabric/Mounting/RCTComponentViewProtocol.h +4 -4
  121. package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
  122. package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
  123. package/React/Fabric/Mounting/RCTMountingManager.h +4 -4
  124. package/React/Fabric/Mounting/RCTMountingManager.mm +30 -19
  125. package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
  126. package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.h +5 -3
  127. package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.mm +10 -8
  128. package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +6 -4
  129. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +6 -6
  130. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +6 -6
  131. package/React/Fabric/RCTConversions.h +17 -7
  132. package/React/Fabric/RCTImageResponseDelegate.h +1 -1
  133. package/React/Fabric/RCTLocalizationProvider.h +1 -1
  134. package/React/Fabric/RCTLocalizationProvider.mm +10 -4
  135. package/React/Fabric/RCTScheduler.h +8 -1
  136. package/React/Fabric/RCTScheduler.mm +15 -0
  137. package/React/Fabric/RCTSurfacePresenter.h +10 -2
  138. package/React/Fabric/RCTSurfacePresenter.mm +59 -27
  139. package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
  140. package/React/Fabric/RCTSurfaceRegistry.h +1 -1
  141. package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
  142. package/React/Fabric/RCTSurfaceTouchHandler.mm +8 -9
  143. package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
  144. package/React/Fabric/Surface/RCTFabricSurface.mm +3 -1
  145. package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
  146. package/React/Modules/RCTSurfacePresenterStub.h +4 -0
  147. package/React/Modules/RCTUIManager.h +1 -1
  148. package/React/Modules/RCTUIManager.m +6 -5
  149. package/React/React-RCTFabric.podspec +2 -2
  150. package/React/Views/RCTMaskedView.h +1 -1
  151. package/React/Views/RCTModalHostView.h +2 -2
  152. package/React/Views/RCTModalHostViewController.h +1 -1
  153. package/React/Views/RCTModalManager.h +1 -1
  154. package/React/Views/RCTSlider.h +4 -0
  155. package/React/Views/RCTSwitch.h +1 -10
  156. package/React/Views/RCTSwitch.m +0 -20
  157. package/React/Views/RCTSwitchManager.m +0 -4
  158. package/React/Views/RCTView.m +8 -3
  159. package/React/Views/RCTViewManager.m +2 -1
  160. package/React/Views/RCTWeakViewHolder.h +1 -1
  161. package/React/Views/RCTWrapperViewController.h +2 -2
  162. package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
  163. package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
  164. package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
  165. package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
  166. package/React/Views/ScrollView/RCTScrollView.m +1 -31
  167. package/React/Views/ScrollView/RCTScrollableProtocol.h +1 -1
  168. package/ReactAndroid/gradle.properties +1 -1
  169. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +0 -21
  170. package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +7 -3
  171. package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -0
  172. package/ReactAndroid/src/main/java/com/facebook/react/animated/ColorAnimatedNode.java +66 -0
  173. package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +2 -0
  174. package/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java +2 -0
  175. package/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java +2 -0
  176. package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -3
  177. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +1 -1
  178. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
  179. package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java +20 -8
  180. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -5
  181. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -11
  182. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java +19 -0
  183. package/ReactAndroid/src/main/jni/Application.mk +1 -1
  184. package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
  185. package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
  186. package/ReactAndroid/src/test/java/com/facebook/react/views/BUCK +5 -2
  187. package/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java +9 -0
  188. package/ReactCommon/React-Fabric.podspec +1 -1
  189. package/ReactCommon/React-rncore.podspec +1 -1
  190. package/ReactCommon/ReactCommon.podspec +1 -1
  191. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -5
  192. package/ReactCommon/cxxreact/tests/BUCK +1 -1
  193. package/ReactCommon/hermes/inspector/Exceptions.h +6 -0
  194. package/ReactCommon/hermes/inspector/Inspector.cpp +5 -2
  195. package/ReactCommon/hermes/inspector/Inspector.h +14 -0
  196. package/ReactCommon/hermes/inspector/InspectorState.cpp +16 -8
  197. package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +6 -6
  198. package/ReactCommon/microprofiler/BUCK +1 -1
  199. package/ReactCommon/react/debug/react_native_assert.h +1 -1
  200. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
  201. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
  202. package/ReactCommon/react/renderer/animations/conversions.h +11 -11
  203. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
  204. package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
  205. package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
  206. package/ReactCommon/react/renderer/attributedstring/conversions.h +1 -1
  207. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
  208. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
  209. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +7 -5
  210. package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
  211. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
  212. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
  213. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
  214. package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
  215. package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
  216. package/ReactCommon/react/renderer/components/view/ViewProps.h +3 -1
  217. package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
  218. package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +16 -16
  219. package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
  220. package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
  221. package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
  222. package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
  223. package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -7
  224. package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
  225. package/ReactCommon/react/renderer/core/EventDispatcher.cpp +21 -0
  226. package/ReactCommon/react/renderer/core/EventDispatcher.h +15 -0
  227. package/ReactCommon/react/renderer/core/EventListener.cpp +39 -0
  228. package/ReactCommon/react/renderer/core/EventListener.h +44 -0
  229. package/ReactCommon/react/renderer/core/Props.h +0 -4
  230. package/ReactCommon/react/renderer/core/RawProps.h +1 -1
  231. package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
  232. package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
  233. package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
  234. package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
  235. package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
  236. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
  237. package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
  238. package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
  239. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
  240. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
  241. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
  242. package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
  243. package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
  244. package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
  245. package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
  246. package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
  247. package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
  248. package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +6 -9
  249. package/ReactCommon/react/renderer/mounting/TelemetryController.h +7 -7
  250. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +38 -32
  251. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +18 -1
  252. package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
  253. package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +7 -2
  254. package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +40 -4
  255. package/ReactCommon/react/renderer/scheduler/Scheduler.h +10 -1
  256. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
  257. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
  258. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +15 -15
  259. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
  260. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
  261. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
  262. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.mm +5 -0
  263. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
  264. package/ReactCommon/react/utils/ContextContainer.h +2 -2
  265. package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
  266. package/ReactCommon/react/utils/ManagedObjectWrapper.mm +1 -3
  267. package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
  268. package/ReactCommon/yoga/Yoga.podspec +1 -1
  269. package/index.js +0 -11
  270. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.m +1 -1
  271. package/package.json +4 -1
  272. package/scripts/react_native_pods.rb +1 -1
  273. package/template/Gemfile.lock +5 -5
  274. package/template/package.json +1 -1
  275. package/Libraries/Alert/AlertMacOS.js +0 -211
  276. package/Libraries/Components/View/PlatformViewPropTypes.macos.js +0 -16
  277. package/Libraries/Components/View/ReactNativeViewViewConfig.js +0 -374
  278. package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +0 -83
  279. package/Libraries/ReactNative/UIManagerInjection.js +0 -15
  280. package/ReactCommon/butter/optional.h +0 -38
  281. package/ReactCommon/react/renderer/mounting/MountingTransactionMetadata.h +0 -32
@@ -0,0 +1,506 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+ * @format
8
+ * @flow strict-local
9
+ */
10
+
11
+ import {Platform} from 'react-native';
12
+ import type {PartialViewConfig} from '../Renderer/shims/ReactNativeTypes';
13
+ import ReactNativeStyleAttributes from '../Components/View/ReactNativeStyleAttributes';
14
+ import {DynamicallyInjectedByGestureHandler} from './ViewConfigIgnore';
15
+
16
+ type PartialViewConfigWithoutName = $Rest<
17
+ PartialViewConfig,
18
+ {uiViewClassName: string},
19
+ >;
20
+
21
+ const PlatformBaseViewConfig: PartialViewConfigWithoutName =
22
+ Platform.OS === 'android'
23
+ ? /**
24
+ * On Android, Props are derived from a ViewManager and its ShadowNode.
25
+ *
26
+ * Where did we find these base platform props from?
27
+ * - Nearly all component ViewManagers descend from BaseViewManager.
28
+ * - BaseViewManagers' ShadowNodes descend from LayoutShadowNode.
29
+ *
30
+ * So, these ViewConfigs are generated from LayoutShadowNode and BaseViewManager.
31
+ */
32
+ {
33
+ directEventTypes: {
34
+ topAccessibilityAction: {
35
+ registrationName: 'onAccessibilityAction',
36
+ },
37
+ topPointerEnter: {
38
+ registrationName: 'pointerenter',
39
+ },
40
+ topPointerLeave: {
41
+ registrationName: 'pointerleave',
42
+ },
43
+ topPointerMove: {
44
+ registrationName: 'pointermove',
45
+ },
46
+ onGestureHandlerEvent: DynamicallyInjectedByGestureHandler({
47
+ registrationName: 'onGestureHandlerEvent',
48
+ }),
49
+ onGestureHandlerStateChange: DynamicallyInjectedByGestureHandler({
50
+ registrationName: 'onGestureHandlerStateChange',
51
+ }),
52
+
53
+ // Direct events from UIManagerModuleConstants.java
54
+ topContentSizeChange: {
55
+ registrationName: 'onContentSizeChange',
56
+ },
57
+ topScrollBeginDrag: {
58
+ registrationName: 'onScrollBeginDrag',
59
+ },
60
+ topMessage: {
61
+ registrationName: 'onMessage',
62
+ },
63
+ topSelectionChange: {
64
+ registrationName: 'onSelectionChange',
65
+ },
66
+ topLoadingFinish: {
67
+ registrationName: 'onLoadingFinish',
68
+ },
69
+ topMomentumScrollEnd: {
70
+ registrationName: 'onMomentumScrollEnd',
71
+ },
72
+ topClick: {
73
+ registrationName: 'onClick',
74
+ },
75
+ topLoadingStart: {
76
+ registrationName: 'onLoadingStart',
77
+ },
78
+ topLoadingError: {
79
+ registrationName: 'onLoadingError',
80
+ },
81
+ topMomentumScrollBegin: {
82
+ registrationName: 'onMomentumScrollBegin',
83
+ },
84
+ topScrollEndDrag: {
85
+ registrationName: 'onScrollEndDrag',
86
+ },
87
+ topScroll: {
88
+ registrationName: 'onScroll',
89
+ },
90
+ topLayout: {
91
+ registrationName: 'onLayout',
92
+ },
93
+ },
94
+ bubblingEventTypes: {
95
+ // Bubbling events from UIManagerModuleConstants.java
96
+ topChange: {
97
+ phasedRegistrationNames: {
98
+ captured: 'onChangeCapture',
99
+ bubbled: 'onChange',
100
+ },
101
+ },
102
+ topSelect: {
103
+ phasedRegistrationNames: {
104
+ captured: 'onSelectCapture',
105
+ bubbled: 'onSelect',
106
+ },
107
+ },
108
+ topTouchEnd: {
109
+ phasedRegistrationNames: {
110
+ captured: 'onTouchEndCapture',
111
+ bubbled: 'onTouchEnd',
112
+ },
113
+ },
114
+ topTouchCancel: {
115
+ phasedRegistrationNames: {
116
+ captured: 'onTouchCancelCapture',
117
+ bubbled: 'onTouchCancel',
118
+ },
119
+ },
120
+ topTouchStart: {
121
+ phasedRegistrationNames: {
122
+ captured: 'onTouchStartCapture',
123
+ bubbled: 'onTouchStart',
124
+ },
125
+ },
126
+ topTouchMove: {
127
+ phasedRegistrationNames: {
128
+ captured: 'onTouchMoveCapture',
129
+ bubbled: 'onTouchMove',
130
+ },
131
+ },
132
+ },
133
+ validAttributes: {
134
+ // @ReactProps from BaseViewManager
135
+ backgroundColor: {process: require('../StyleSheet/processColor')},
136
+ transform: true,
137
+ opacity: true,
138
+ elevation: true,
139
+ shadowColor: {process: require('../StyleSheet/processColor')},
140
+ zIndex: true,
141
+ renderToHardwareTextureAndroid: true,
142
+ testID: true,
143
+ nativeID: true,
144
+ accessibilityLabelledBy: true,
145
+ accessibilityLabel: true,
146
+ accessibilityHint: true,
147
+ accessibilityRole: true,
148
+ accessibilityState: true,
149
+ accessibilityActions: true,
150
+ accessibilityValue: true,
151
+ importantForAccessibility: true,
152
+ rotation: true,
153
+ scaleX: true,
154
+ scaleY: true,
155
+ translateX: true,
156
+ translateY: true,
157
+ accessibilityLiveRegion: true,
158
+
159
+ // @ReactProps from LayoutShadowNode
160
+ width: true,
161
+ minWidth: true,
162
+ collapsable: true,
163
+ maxWidth: true,
164
+ height: true,
165
+ minHeight: true,
166
+ maxHeight: true,
167
+ flex: true,
168
+ flexGrow: true,
169
+ flexShrink: true,
170
+ flexBasis: true,
171
+ aspectRatio: true,
172
+ flexDirection: true,
173
+ flexWrap: true,
174
+ alignSelf: true,
175
+ alignItems: true,
176
+ alignContent: true,
177
+ justifyContent: true,
178
+ overflow: true,
179
+ display: true,
180
+
181
+ margin: true,
182
+ marginVertical: true,
183
+ marginHorizontal: true,
184
+ marginStart: true,
185
+ marginEnd: true,
186
+ marginTop: true,
187
+ marginBottom: true,
188
+ marginLeft: true,
189
+ marginRight: true,
190
+
191
+ padding: true,
192
+ paddingVertical: true,
193
+ paddingHorizontal: true,
194
+ paddingStart: true,
195
+ paddingEnd: true,
196
+ paddingTop: true,
197
+ paddingBottom: true,
198
+ paddingLeft: true,
199
+ paddingRight: true,
200
+
201
+ borderWidth: true,
202
+ borderStartWidth: true,
203
+ borderEndWidth: true,
204
+ borderTopWidth: true,
205
+ borderBottomWidth: true,
206
+ borderLeftWidth: true,
207
+ borderRightWidth: true,
208
+
209
+ start: true,
210
+ end: true,
211
+ left: true,
212
+ right: true,
213
+ top: true,
214
+ bottom: true,
215
+
216
+ position: true,
217
+ onLayout: true,
218
+
219
+ pointerenter: true,
220
+ pointerleave: true,
221
+ pointermove: true,
222
+
223
+ style: ReactNativeStyleAttributes,
224
+ },
225
+ }
226
+ : /**
227
+ * On iOS, ViewManagers define all of a component's props.
228
+ * All ViewManagers extend RCTViewManager, and RCTViewManager declares
229
+ * these props.
230
+ */
231
+ {
232
+ bubblingEventTypes: {
233
+ // Generic Events
234
+ topPress: {
235
+ phasedRegistrationNames: {
236
+ bubbled: 'onPress',
237
+ captured: 'onPressCapture',
238
+ },
239
+ },
240
+ topChange: {
241
+ phasedRegistrationNames: {
242
+ bubbled: 'onChange',
243
+ captured: 'onChangeCapture',
244
+ },
245
+ },
246
+ topFocus: {
247
+ phasedRegistrationNames: {
248
+ bubbled: 'onFocus',
249
+ captured: 'onFocusCapture',
250
+ },
251
+ },
252
+ topBlur: {
253
+ phasedRegistrationNames: {
254
+ bubbled: 'onBlur',
255
+ captured: 'onBlurCapture',
256
+ },
257
+ },
258
+ topSubmitEditing: {
259
+ phasedRegistrationNames: {
260
+ bubbled: 'onSubmitEditing',
261
+ captured: 'onSubmitEditingCapture',
262
+ },
263
+ },
264
+ topEndEditing: {
265
+ phasedRegistrationNames: {
266
+ bubbled: 'onEndEditing',
267
+ captured: 'onEndEditingCapture',
268
+ },
269
+ },
270
+ topKeyPress: {
271
+ phasedRegistrationNames: {
272
+ bubbled: 'onKeyPress',
273
+ captured: 'onKeyPressCapture',
274
+ },
275
+ },
276
+
277
+ // Touch Events
278
+ topTouchStart: {
279
+ phasedRegistrationNames: {
280
+ bubbled: 'onTouchStart',
281
+ captured: 'onTouchStartCapture',
282
+ },
283
+ },
284
+ topTouchMove: {
285
+ phasedRegistrationNames: {
286
+ bubbled: 'onTouchMove',
287
+ captured: 'onTouchMoveCapture',
288
+ },
289
+ },
290
+ topTouchCancel: {
291
+ phasedRegistrationNames: {
292
+ bubbled: 'onTouchCancel',
293
+ captured: 'onTouchCancelCapture',
294
+ },
295
+ },
296
+ topTouchEnd: {
297
+ phasedRegistrationNames: {
298
+ bubbled: 'onTouchEnd',
299
+ captured: 'onTouchEndCapture',
300
+ },
301
+ },
302
+ },
303
+ directEventTypes: {
304
+ topAccessibilityAction: {
305
+ registrationName: 'onAccessibilityAction',
306
+ },
307
+ topAccessibilityTap: {
308
+ registrationName: 'onAccessibilityTap',
309
+ },
310
+ topMagicTap: {
311
+ registrationName: 'onMagicTap',
312
+ },
313
+ topAccessibilityEscape: {
314
+ registrationName: 'onAccessibilityEscape',
315
+ },
316
+ topLayout: {
317
+ registrationName: 'onLayout',
318
+ },
319
+ onGestureHandlerEvent: DynamicallyInjectedByGestureHandler({
320
+ registrationName: 'onGestureHandlerEvent',
321
+ }),
322
+ onGestureHandlerStateChange: DynamicallyInjectedByGestureHandler({
323
+ registrationName: 'onGestureHandlerStateChange',
324
+ }),
325
+ // [macOS
326
+ ...(Platform.OS === 'macos' && {
327
+ topDoubleClick: {
328
+ registrationName: 'onDoubleClick',
329
+ },
330
+ topDragEnter: {
331
+ registrationName: 'onDragEnter',
332
+ },
333
+ topDragLeave: {
334
+ registrationName: 'onDragLeave',
335
+ },
336
+ topDrop: {
337
+ registrationName: 'onDrop',
338
+ },
339
+ topKeyUp: {
340
+ registrationName: 'onKeyUp',
341
+ },
342
+ topKeyDown: {
343
+ registrationName: 'onKeyDown',
344
+ },
345
+ topMouseEnter: {
346
+ registrationName: 'onMouseEnter',
347
+ },
348
+ topMouseLeave: {
349
+ registrationName: 'onMouseLeave',
350
+ },
351
+ }),
352
+ // macOS]
353
+ },
354
+ validAttributes: {
355
+ // View Props
356
+ accessible: true,
357
+ accessibilityActions: true,
358
+ accessibilityLabel: true,
359
+ accessibilityHint: true,
360
+ accessibilityValue: true,
361
+ accessibilityViewIsModal: true,
362
+ accessibilityElementsHidden: true,
363
+ accessibilityIgnoresInvertColors: true,
364
+ apple_fontSmoothing: true, // TODO(OSS Candidate ISS#2710739)
365
+ testID: true,
366
+ backgroundColor: {process: require('../StyleSheet/processColor')},
367
+ backfaceVisibility: true,
368
+ opacity: true,
369
+ shadowColor: {process: require('../StyleSheet/processColor')},
370
+ shadowOffset: {diff: require('../Utilities/differ/sizesDiffer')},
371
+ shadowOpacity: true,
372
+ shadowRadius: true,
373
+ needsOffscreenAlphaCompositing: true,
374
+ overflow: true,
375
+ shouldRasterizeIOS: true,
376
+ transform: {diff: require('../Utilities/differ/matricesDiffer')},
377
+ accessibilityRole: true,
378
+ accessibilityState: true,
379
+ nativeID: true,
380
+ pointerEvents: true,
381
+ removeClippedSubviews: true,
382
+ borderRadius: true,
383
+ borderColor: {process: require('../StyleSheet/processColor')},
384
+ borderWidth: true,
385
+ borderStyle: true,
386
+ hitSlop: {diff: require('../Utilities/differ/insetsDiffer')},
387
+ collapsable: true,
388
+
389
+ borderTopWidth: true,
390
+ borderTopColor: {process: require('../StyleSheet/processColor')},
391
+ borderRightWidth: true,
392
+ borderRightColor: {process: require('../StyleSheet/processColor')},
393
+ borderBottomWidth: true,
394
+ borderBottomColor: {process: require('../StyleSheet/processColor')},
395
+ borderLeftWidth: true,
396
+ borderLeftColor: {process: require('../StyleSheet/processColor')},
397
+ borderStartWidth: true,
398
+ borderStartColor: {process: require('../StyleSheet/processColor')},
399
+ borderEndWidth: true,
400
+ borderEndColor: {process: require('../StyleSheet/processColor')},
401
+
402
+ borderTopLeftRadius: true,
403
+ borderTopRightRadius: true,
404
+ borderTopStartRadius: true,
405
+ borderTopEndRadius: true,
406
+ borderBottomLeftRadius: true,
407
+ borderBottomRightRadius: true,
408
+ borderBottomStartRadius: true,
409
+ borderBottomEndRadius: true,
410
+ display: true,
411
+ zIndex: true,
412
+
413
+ // ShadowView properties
414
+ top: true,
415
+ right: true,
416
+ start: true,
417
+ end: true,
418
+ bottom: true,
419
+ left: true,
420
+
421
+ width: true,
422
+ height: true,
423
+
424
+ minWidth: true,
425
+ maxWidth: true,
426
+ minHeight: true,
427
+ maxHeight: true,
428
+
429
+ // Also declared as ViewProps
430
+ // borderTopWidth: true,
431
+ // borderRightWidth: true,
432
+ // borderBottomWidth: true,
433
+ // borderLeftWidth: true,
434
+ // borderStartWidth: true,
435
+ // borderEndWidth: true,
436
+ // borderWidth: true,
437
+
438
+ marginTop: true,
439
+ marginRight: true,
440
+ marginBottom: true,
441
+ marginLeft: true,
442
+ marginStart: true,
443
+ marginEnd: true,
444
+ marginVertical: true,
445
+ marginHorizontal: true,
446
+ margin: true,
447
+
448
+ paddingTop: true,
449
+ paddingRight: true,
450
+ paddingBottom: true,
451
+ paddingLeft: true,
452
+ paddingStart: true,
453
+ paddingEnd: true,
454
+ paddingVertical: true,
455
+ paddingHorizontal: true,
456
+ padding: true,
457
+
458
+ flex: true,
459
+ flexGrow: true,
460
+ flexShrink: true,
461
+ flexBasis: true,
462
+ flexDirection: true,
463
+ flexWrap: true,
464
+ justifyContent: true,
465
+ alignItems: true,
466
+ alignSelf: true,
467
+ alignContent: true,
468
+ position: true,
469
+ aspectRatio: true,
470
+
471
+ // Also declared as ViewProps
472
+ // overflow: true,
473
+ // display: true,
474
+
475
+ direction: true,
476
+
477
+ style: ReactNativeStyleAttributes,
478
+
479
+ // [macOS
480
+ ...(Platform.OS === 'macos' && {
481
+ acceptsFirstMouse: true,
482
+ accessibilityTraits: true,
483
+ cursor: true,
484
+ draggedTypes: true,
485
+ enableFocusRing: true,
486
+ nextKeyViewTag: true,
487
+ onBlur: true,
488
+ onClick: true,
489
+ onDoubleClick: true,
490
+ onDragEnter: true,
491
+ onDragLeave: true,
492
+ onDrop: true,
493
+ onFocus: true,
494
+ onKeyDown: true,
495
+ onKeyUp: true,
496
+ onMouseEnter: true,
497
+ onMouseLeave: true,
498
+ tooltip: true,
499
+ validKeysDown: true,
500
+ validKeysUp: true,
501
+ }),
502
+ // macOS]
503
+ },
504
+ };
505
+
506
+ export default PlatformBaseViewConfig;
@@ -13,6 +13,7 @@ import {type ViewConfig} from '../Renderer/shims/ReactNativeTypes';
13
13
  import getNativeComponentAttributes from '../ReactNative/getNativeComponentAttributes';
14
14
  // $FlowFixMe[nonstrict-import]
15
15
  import {createViewConfig} from './ViewConfig';
16
+ import {isIgnored} from './ViewConfigIgnore';
16
17
 
17
18
  type Difference =
18
19
  | {
@@ -183,7 +184,10 @@ function accumulateDifferences(
183
184
  }
184
185
 
185
186
  for (const staticKey in staticObject) {
186
- if (!nativeObject.hasOwnProperty(staticKey)) {
187
+ if (
188
+ !nativeObject.hasOwnProperty(staticKey) &&
189
+ !isIgnored(staticObject[staticKey])
190
+ ) {
187
191
  differences.push({
188
192
  path: [...path, staticKey],
189
193
  type: 'unexpected',
@@ -8,11 +8,11 @@
8
8
  * @format
9
9
  */
10
10
 
11
- import ReactNativeViewViewConfig from '../Components/View/ReactNativeViewViewConfig';
12
11
  import type {
13
12
  PartialViewConfig,
14
13
  ViewConfig,
15
14
  } from '../Renderer/shims/ReactNativeTypes';
15
+ import PlatformBaseViewConfig from './PlatformBaseViewConfig';
16
16
 
17
17
  /**
18
18
  * Creates a complete `ViewConfig` from a `PartialViewConfig`.
@@ -24,16 +24,16 @@ export function createViewConfig(
24
24
  uiViewClassName: partialViewConfig.uiViewClassName,
25
25
  Commands: {},
26
26
  bubblingEventTypes: composeIndexers(
27
- ReactNativeViewViewConfig.bubblingEventTypes,
27
+ PlatformBaseViewConfig.bubblingEventTypes,
28
28
  partialViewConfig.bubblingEventTypes,
29
29
  ),
30
30
  directEventTypes: composeIndexers(
31
- ReactNativeViewViewConfig.directEventTypes,
31
+ PlatformBaseViewConfig.directEventTypes,
32
32
  partialViewConfig.directEventTypes,
33
33
  ),
34
34
  validAttributes: composeIndexers(
35
35
  // $FlowFixMe[incompatible-call] `style` property confuses Flow.
36
- ReactNativeViewViewConfig.validAttributes,
36
+ PlatformBaseViewConfig.validAttributes,
37
37
  // $FlowFixMe[incompatible-call] `style` property confuses Flow.
38
38
  partialViewConfig.validAttributes,
39
39
  ),
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and 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
+ * @flow strict
8
+ * @format
9
+ */
10
+
11
+ const ignoredViewConfigProps = new WeakSet<{...}>();
12
+
13
+ /**
14
+ * Decorates ViewConfig values that are dynamically injected by the library,
15
+ * react-native-gesture-handler. (T45765076)
16
+ */
17
+ export function DynamicallyInjectedByGestureHandler<T: {...}>(object: T): T {
18
+ ignoredViewConfigProps.add(object);
19
+ return object;
20
+ }
21
+
22
+ export function isIgnored(value: mixed): boolean {
23
+ if (typeof value === 'object' && value != null) {
24
+ return ignoredViewConfigProps.has(value);
25
+ }
26
+ return false;
27
+ }
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
34
34
  s.header_dir = "RCTNetwork"
35
35
  s.pod_target_xcconfig = {
36
36
  "USE_HEADERMAP" => "YES",
37
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
37
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
38
38
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
39
39
  }
40
40
  s.ios.frameworks = "MobileCoreServices" # TODO(macOS GH#214) - Restrict to iOS
@@ -10,18 +10,14 @@
10
10
 
11
11
  import normalizeColor from '../StyleSheet/normalizeColor';
12
12
  import type {ColorValue} from '../StyleSheet/StyleSheet';
13
+ import {normalizeRect, type RectOrSize} from '../StyleSheet/Rect';
13
14
 
14
15
  import View from '../Components/View/View';
15
16
  import * as React from 'react';
16
17
 
17
18
  type Props = $ReadOnly<{|
18
19
  color: ColorValue,
19
- hitSlop: ?$ReadOnly<{|
20
- bottom?: ?number,
21
- left?: ?number,
22
- right?: ?number,
23
- top?: ?number,
24
- |}>,
20
+ hitSlop: ?RectOrSize,
25
21
  |}>;
26
22
 
27
23
  /**
@@ -39,16 +35,16 @@ type Props = $ReadOnly<{|
39
35
  * );
40
36
  *
41
37
  */
42
- export function PressabilityDebugView({color, hitSlop}: Props): React.Node {
38
+ export function PressabilityDebugView(props: Props): React.Node {
43
39
  if (__DEV__) {
44
40
  if (isEnabled()) {
45
- const normalizedColor = normalizeColor(color);
41
+ const normalizedColor = normalizeColor(props.color);
46
42
  if (typeof normalizedColor !== 'number') {
47
43
  return null;
48
44
  }
49
45
  const baseColor =
50
46
  '#' + (normalizedColor ?? 0).toString(16).padStart(8, '0');
51
-
47
+ const hitSlop = normalizeRect(props.hitSlop);
52
48
  return (
53
49
  <View
54
50
  pointerEvents="none"
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
  s.header_dir = "RCTPushNotification"
36
36
  s.pod_target_xcconfig = {
37
37
  "USE_HEADERMAP" => "YES",
38
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
39
39
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
40
40
  }
41
41
  s.framework = "UserNotifications"
@@ -18,14 +18,16 @@ module.exports = {
18
18
  'getViewManagerConfig is unavailable in Bridgeless, use hasViewManagerConfig instead. viewManagerName: ' +
19
19
  viewManagerName,
20
20
  );
21
- if (viewManagerName === 'RCTVirtualText') {
21
+ if (
22
+ viewManagerName === 'RCTVirtualText' ||
23
+ viewManagerName === 'RCTShimmeringView'
24
+ ) {
22
25
  return {};
23
26
  }
24
27
  return null;
25
28
  },
26
29
  hasViewManagerConfig: (viewManagerName: string): boolean => {
27
- const staticViewConfigsEnabled = global.__fbStaticViewConfig === true;
28
- if (staticViewConfigsEnabled) {
30
+ if (global.__nativeComponentRegistry__hasComponent) {
29
31
  return unstable_hasComponent(viewManagerName);
30
32
  } else {
31
33
  return (
@@ -34,7 +34,6 @@ export interface UIManagerJSInterface extends Spec {
34
34
  const UIManager: UIManagerJSInterface =
35
35
  global.RN$Bridgeless === true
36
36
  ? require('./DummyUIManager')
37
- : require('./UIManagerInjection').default.unstable_UIManager ??
38
- require('./PaperUIManager');
37
+ : require('./PaperUIManager');
39
38
 
40
39
  module.exports = UIManager;
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
  s.header_dir = "RCTSettings"
36
36
  s.pod_target_xcconfig = {
37
37
  "USE_HEADERMAP" => "YES",
38
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
38
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
39
39
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
40
40
  }
41
41