From bbaabffd25b2002de6115188bd73edd03f57546b Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Fri, 28 Aug 2026 01:12:31 -0700 Subject: [PATCH] Cover `react/nativemodule/dom` with Stable API guards (#58127) Summary: Classifies `react/nativemodule/dom:dom` as a private target under the C++ stable API three-tier visibility model. Adds `#include ` to the module's single exported header (`NativeDOM.h`), and wires the guard dependency into BUCK, CMake, and the podspec. The guards are inert unless a consumer defines `RN_STRICT_API`, so there is no behavior change. Changelog: [Internal] Differential Revision: D117326651 --- .../ReactCommon/react/nativemodule/dom/CMakeLists.txt | 1 + .../react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h | 2 ++ .../react/nativemodule/dom/React-domnativemodule.podspec | 1 + 3 files changed, 4 insertions(+) diff --git a/packages/react-native/ReactCommon/react/nativemodule/dom/CMakeLists.txt b/packages/react-native/ReactCommon/react/nativemodule/dom/CMakeLists.txt index 8837fb0a66ab..0138641408dd 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/dom/CMakeLists.txt +++ b/packages/react-native/ReactCommon/react/nativemodule/dom/CMakeLists.txt @@ -18,6 +18,7 @@ add_library(react_nativemodule_dom target_include_directories(react_nativemodule_dom PUBLIC ${REACT_COMMON_DIR}) target_link_libraries(react_nativemodule_dom + react_cxxstableapi rrc_root react_codegen_rncore react_cxxreact diff --git a/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h b/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h index 19157a9cd9da..2c239875e6c4 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h +++ b/packages/react-native/ReactCommon/react/nativemodule/dom/NativeDOM.h @@ -7,6 +7,8 @@ #pragma once +#include + #include #if __has_include("FBReactNativeSpecJSI.h") // CocoaPod headers on Apple diff --git a/packages/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec b/packages/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec index c76d33856eae..03c9a882f6a9 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +++ b/packages/react-native/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec @@ -55,6 +55,7 @@ Pod::Spec.new do |s| s.dependency "React-Fabric" s.dependency "React-Fabric/bridging" s.dependency "React-FabricComponents" + s.dependency "React-cxxstableapi" add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"]) add_dependency(s, "React-graphics", :additional_framework_paths => ["react/renderer/graphics/platform/ios"]) add_dependency(s, "React-RCTFBReactNativeSpec")