From c6d090059f9eb156591027cd993517e5cf2d6dbb Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Wed, 14 Oct 2026 02:31:04 -0700 Subject: [PATCH] Cover `react/nativemodule/fantomtestspecificmethods` with Stable API guards Summary: Marks `react/nativemodule/fantomtestspecificmethods` as a private target under the C++ Stable API: `NativeFantomTestSpecificMethods.h` includes ``, and BUCK and CMake depend on `cxxstableapi`. The guard is inert unless `RN_STRICT_API` is defined, so there is no behavior change. Changelog: [Internal] Differential Revision: D125185297 --- .../react/nativemodule/fantomtestspecificmethods/CMakeLists.txt | 1 + .../fantomtestspecificmethods/NativeFantomTestSpecificMethods.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/CMakeLists.txt b/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/CMakeLists.txt index 7505729b3405..ffc03619437c 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/CMakeLists.txt +++ b/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/CMakeLists.txt @@ -17,6 +17,7 @@ target_include_directories(react_nativemodule_fantomspecificmethods PRIVATE ${CM target_link_libraries(react_nativemodule_fantomspecificmethods react_codegen_rncore react_cxxreact + react_cxxstableapi react_renderer_bridging react_renderer_core react_renderer_graphics diff --git a/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.h b/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.h index aff0dbf4fc9f..5b4ee16c84b0 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.h +++ b/packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.h @@ -7,6 +7,8 @@ #pragma once +#include + #include namespace facebook::react {