Cover componentregistry/native with guards (#58141)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/58141

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]

Reviewed By: cortinico

Differential Revision: D117338950

fbshipit-source-id: 46c758749d467cd3ab9acf569ecbc77ba3caacaa
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-09-02 09:38:17 -07:00
1 parent 911e8fc293
commit 99944312fc
2 files changed
+3

No files matched your search

@@ -17,6 +17,7 @@ target_link_libraries(rrc_native
folly_runtime
glog_init
jsi
react_cxxstableapi
react_debug
react_renderer_core
react_renderer_debug
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/PrivateGuard.h>
#include <string>
#include <jsi/jsi.h>