Skip to content

Reach public ReactCommon modules through umbrellas from iOS platform headers - #58885

Open
j-piasecki wants to merge 2 commits into
react:mainfrom
j-piasecki:export-D123610706
Open

j-piasecki wants to merge 2 commits into
react:mainfrom
j-piasecki:export-D123610706

Conversation

@j-piasecki

@j-piasecki j-piasecki commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary:
Exported iOS headers in React/Fabric (RCTViewComponentView.h, RCTComponentViewProtocol.h, RCTTouchableComponentViewProtocol.h, RCTComponentViewFactory.h, RCTComponentViewRegistry.h, RCTConversions.h, RCTMountingManager.h, RCTScheduler.h, RCTSurfacePresenter.h, RCTSurfacePresenterBridgeAdapter.h, AppleEventBeat.h, Utils/PlatformRunLoopObserver.h, Utils/RCTLinearGradient.h, Utils/RCTRadialGradient.h) and RCTHost.h included fine-grained headers of public ReactCommon modules. Under RN_STRICT_API those hit the modules' public guard in any app or library that imports them — RCTViewComponentView.h is the base class of most third-party Fabric components — so they now include the module umbrellas (<React/RendererCore.h>, <React/View.h>, <React/Graphics.h>, <React/ComponentRegistry.h>, <React/Utils.h>, <React/Timing.h>) instead. Includes of "for frameworks" headers are unchanged. The guards are inert without that flag.

Changelog: [Internal]

Differential Revision: D123610706

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 6, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Oct 6, 2026
@meta-codesync

meta-codesync Bot commented Oct 6, 2026

Copy link
Copy Markdown

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D123610706.

…ks (react#58884)

Summary:
Pull Request resolved: react#58884

`DynamicEventPayload.h`, `DynamicPointerEvent.h`, `DynamicPropsUtilities.h` and `ReactRootViewTagGenerator.h` are used by React Native's own sources and by platform and host integrations, not by component code, so they move from the public to the "for frameworks" tier of the C++ stable API and leave the `<React/RendererCore.h>` umbrella. Consumers that opt into `RN_STRICT_API` get a warning if they include these headers directly, which they can acknowledge with `RN_ALLOW_FRAMEWORKS`; without that flag the guards are inert.

Changelog: [Internal]

Differential Revision: D123610705
…headers

Summary:
Exported iOS headers in `React/Fabric` (`RCTViewComponentView.h`, `RCTComponentViewProtocol.h`, `RCTTouchableComponentViewProtocol.h`, `RCTComponentViewFactory.h`, `RCTComponentViewRegistry.h`, `RCTConversions.h`, `RCTMountingManager.h`, `RCTScheduler.h`, `RCTSurfacePresenter.h`, `RCTSurfacePresenterBridgeAdapter.h`, `AppleEventBeat.h`, `Utils/PlatformRunLoopObserver.h`, `Utils/RCTLinearGradient.h`, `Utils/RCTRadialGradient.h`) and `RCTHost.h` included fine-grained headers of public ReactCommon modules. Under `RN_STRICT_API` those hit the modules' public guard in any app or library that imports them — `RCTViewComponentView.h` is the base class of most third-party Fabric components — so they now include the module umbrellas (`<React/RendererCore.h>`, `<React/View.h>`, `<React/Graphics.h>`, `<React/ComponentRegistry.h>`, `<React/Utils.h>`, `<React/Timing.h>`) instead. Includes of "for frameworks" headers are unchanged. The guards are inert without that flag.

Changelog: [Internal]

Differential Revision: D123610706

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant