Skip to content

Cover componentregistry/native with guards - #58141

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

Cover componentregistry/native with guards#58141
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117338950

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary:
Classifies react/renderer/componentregistry/native:native as a private target under the C++ stable API three-tier visibility model. Adds #include <react/cxxstableapi/PrivateGuard.h> to the module's single exported header (NativeComponentRegistryBinding.h), and wires the guard dependency into BUCK and CMake.

The React-Fabric pod that ships this module already depends on React-cxxstableapi and is marked as a React Native build, so no podspec change is needed.

The guards are inert unless a consumer defines RN_STRICT_API, so there is no behavior change.

Changelog: [Internal]

Differential Revision: D117338950

Summary:
Classifies `react/renderer/componentregistry/native:native` as a private target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/PrivateGuard.h>` to the module's single exported header (`NativeComponentRegistryBinding.h`), and wires the guard dependency into BUCK and CMake.

The `React-Fabric` pod that ships this module already depends on `React-cxxstableapi` and is marked as a React Native build, so no podspec change is needed.

The guards are inert unless a consumer defines `RN_STRICT_API`, so there is no behavior change.

Changelog: [Internal]

Differential Revision: D117338950
@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 25, 2026
@meta-codesync

meta-codesync Bot commented Aug 25, 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 D117338950.

@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner labels Aug 25, 2026
@facebook-github-tools facebook-github-tools Bot added the p: Facebook Partner: Facebook label Aug 25, 2026
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