From f7cb270fbabc88d9282a330897467917ea9660ad Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Wed, 14 Oct 2026 03:01:06 -0700 Subject: [PATCH] Cover `react/nativemodule/fantomtestspecificmethods` with Stable API guards (#59059) Summary: Pull Request resolved: https://github.com/react/react-native/pull/59059 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] ___ landed-with-radar-review Differential Revision: D125185297 fbshipit-source-id: 9a873b44bb12a77941a87539a2372e8d2fb9c148 --- .../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 7505729b340..ffc03619437 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 aff0dbf4fc9..5b4ee16c84b 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 {