Skip to content

Commit f7cb270

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Cover react/nativemodule/fantomtestspecificmethods with Stable API guards (#59059)
Summary: Pull Request resolved: #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
1 parent 8aa97bb commit f7cb270

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ target_include_directories(react_nativemodule_fantomspecificmethods PRIVATE ${CM
1717
target_link_libraries(react_nativemodule_fantomspecificmethods
1818
react_codegen_rncore
1919
react_cxxreact
20+
react_cxxstableapi
2021
react_renderer_bridging
2122
react_renderer_core
2223
react_renderer_graphics

‎packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#pragma once
99

10+
#include <react/cxxstableapi/PrivateGuard.h>
11+
1012
#include <FBReactNativeSpec/FBReactNativeSpecJSI.h>
1113

1214
namespace facebook::react {

0 commit comments

Comments
 (0)