Skip to content

Cover react/nativemodule/featureflags with Stable API guards - #58041

Closed
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D116916158
Closed

Cover react/nativemodule/featureflags with Stable API guards#58041
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D116916158

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary:
Classifies react/nativemodule/featureflags:featureflags as a private target under the three-tier C++ stable API visibility model. Consumers that opt into RN_STRICT_API now get an error if they include its header directly; without that flag the guard is inert, so no existing build changes behaviour.

NativeReactNativeFeatureFlags.h is generated, so the guard is added to its template and the file regenerated with yarn featureflags --update rather than edited in place.

Changelog: [Internal]

Differential Revision: D116916158

Summary:
Classifies `react/nativemodule/featureflags:featureflags` as a private target under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get an error if they include its header directly; without that flag the guard is inert, so no existing build changes behaviour.
`NativeReactNativeFeatureFlags.h` is generated, so the guard is added to its template and the file regenerated with `yarn featureflags --update` rather than edited in place.
Changelog: [Internal]
Differential Revision: D116916158
@meta-clameta-claBot 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 21, 2026
@facebook-github-toolsfacebook-github-toolsBot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Aug 21, 2026
@meta-codesync

Copy link
Copy Markdown

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

@meta-codesyncmeta-codesyncBot added the Merged This PR has been merged. label Aug 21, 2026
@meta-codesync

Copy link
Copy Markdown

This pull request has been merged in 6e7d5bf.

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

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.meta-exportedp: FacebookPartner: Facebookp: Software MansionPartner: Software MansionPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@j-piasecki