Skip to content

Cover react/runtime with Stable API guards - #58167

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

Cover react/runtime with Stable API guards#58167
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117690303

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary:
Classifies react/runtime:runtime and react/runtime:runtime-platform as "for frameworks" targets under the three-tier C++ stable API visibility model. Consumers that opt into RN_STRICT_API now get a warning if they include their headers directly, which they can acknowledge with RN_ALLOW_FRAMEWORKS; without that flag the guards are inert, so no existing build changes behaviour.

The Apple platform layer is covered alongside the core runtime, so RCTHost.h and RCTInstance.h are in scope. React-RuntimeCore already depended on React-cxxstableapi from an earlier migration in the same pod; React-RuntimeApple gains the dependency here.

Changelog: [Internal]

Differential Revision: D117690303

Summary:
Classifies `react/runtime:runtime` and `react/runtime:runtime-platform` as "for frameworks" targets under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get a warning if they include their headers directly, which they can acknowledge with `RN_ALLOW_FRAMEWORKS`; without that flag the guards are inert, so no existing build changes behaviour.

The Apple platform layer is covered alongside the core runtime, so `RCTHost.h` and `RCTInstance.h` are in scope. `React-RuntimeCore` already depended on `React-cxxstableapi` from an earlier migration in the same pod; `React-RuntimeApple` gains the dependency here.

Changelog: [Internal]

Differential Revision: D117690303
@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 Aug 27, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Aug 27, 2026
@meta-codesync

meta-codesync Bot commented Aug 27, 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 D117690303.

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