mirror of
https://github.com/react/react-native.git
synced 2026-09-29 16:58:04 +08:00
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
21 lines
507 B
C++
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
|