Cover react/renderer/consistency:consistency with Stable API guards (#58046)

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

Classifies `react/renderer/consistency:consistency` as a private target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/PrivateGuard.h>` to both headers in the module and declares the guard dependency in BUCK, CMake and the podspec.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D116601683

fbshipit-source-id: 51d9e197dc44396f60f6349d853b0a48d00f50d0
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-09-08 00:51:01 -07:00
1 parent f2d65961c5
commit bc64b2665d
4 files changed
+8

No files matched your search

@@ -12,5 +12,7 @@ file(GLOB react_renderer_consistency_SRC CONFIGURE_DEPENDS *.cpp)
add_library(react_renderer_consistency OBJECT ${react_renderer_consistency_SRC})
target_include_directories(react_renderer_consistency PUBLIC ${REACT_COMMON_DIR})
target_link_libraries(react_renderer_consistency react_cxxstableapi)
target_compile_reactnative_options(react_renderer_consistency PRIVATE)
target_compile_options(react_renderer_consistency PRIVATE -Wpedantic)
@@ -40,5 +40,7 @@ Pod::Spec.new do |s|
resolve_use_frameworks(s, header_mappings_dir: "../../..", module_name: "React_rendererconsistency")
s.dependency "React-cxxstableapi"
mark_as_react_native_build(s)
end
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/PrivateGuard.h>
#include <react/renderer/consistency/ShadowTreeRevisionConsistencyManager.h>
namespace facebook::react {
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/PrivateGuard.h>
namespace facebook::react {
/**