Files
react-native/packages/react-native/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.h
T
Jakub Piasecki e988b12176 Cover react/nativemodule/defaults:defaults with Stable API guards (#58118)
Summary:
Pull Request resolved: https://github.com/react/react-native/pull/58118

Classifies `react/nativemodule/defaults` as a private target under the three-tier C++ stable API visibility model. `DefaultTurboModules.h` now includes `<react/cxxstableapi/PrivateGuard.h>`, and the module picks up a dependency on the guard target so the include resolves for every build.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D116287984

fbshipit-source-id: c0018bba702b7885cd4acac744625c5e2d42dd35
2026-08-25 05:03:25 -07:00

21 lines
507 B
C++

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <react/cxxstableapi/PrivateGuard.h>
#include <ReactCommon/TurboModule.h>
namespace facebook::react {
struct DefaultTurboModules {
static std::shared_ptr<TurboModule> getTurboModule(
const std::string &name,
const std::shared_ptr<CallInvoker> &jsInvoker);
};
} // namespace facebook::react