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 `<react/cxxstableapi/PrivateGuard.h>`, 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
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-10-14 03:01:06 -07:00
1 parent 8aa97bb8cb
commit f7cb270fba
2 files changed
+3

No files matched your search

@@ -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
@@ -7,6 +7,8 @@
#pragma once
#include <react/cxxstableapi/PrivateGuard.h>
#include <FBReactNativeSpec/FBReactNativeSpecJSI.h>
namespace facebook::react {