Skip to content

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

Open
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D123610706
Open

j-piasecki wants to merge 1 commit 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 and RCTHost.h included fine-grained headers of public ReactCommon modules, which trip the modules' public guard under RN_STRICT_API in any app or library importing them (e.g. RCTViewComponentView.h, the base of most third-party Fabric components). Switch them to the module umbrellas (<React/RendererCore.h>, <React/View.h>, <React/Graphics.h>, <React/ComponentRegistry.h>, <React/Utils.h>, <React/Timing.h>). "For frameworks" includes are unchanged; the guards are inert without the 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.

@j-piasecki
j-piasecki force-pushed the export-D123610706 branch 2 times, most recently from dace45a to 756eea0 Compare October 6, 2026 12:46
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Oct 7, 2026
…headers (react#58885)

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-codesync meta-codesync Bot changed the title Reach public ReactCommon modules through umbrellas from iOS platform headers Reach public ReactCommon modules through umbrellas from iOS platform headers (#58885) Oct 7, 2026
…headers

Summary:
Exported iOS headers in `React/Fabric` and `RCTHost.h` included fine-grained headers of public ReactCommon modules, which trip the modules' public guard under `RN_STRICT_API` in any app or library importing them (e.g. `RCTViewComponentView.h`, the base of most third-party Fabric components). Switch them to the module umbrellas (`<React/RendererCore.h>`, `<React/View.h>`, `<React/Graphics.h>`, `<React/ComponentRegistry.h>`, `<React/Utils.h>`, `<React/Timing.h>`). "For frameworks" includes are unchanged; the guards are inert without the flag.

Changelog: [Internal]

Differential Revision: D123610706
@meta-codesync meta-codesync Bot changed the title Reach public ReactCommon modules through umbrellas from iOS platform headers (#58885) Reach public ReactCommon modules through umbrellas from iOS platform headers Oct 7, 2026

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