Skip to content

Commit 4edac1c

Browse files
coadometa-codesync[bot]
authored andcommitted
Classify react/nativemodule/defaults as for-frameworks (#58423)
Summary: Pull Request resolved: #58423 Reclassify `DefaultTurboModules.h` from the private C++ Stable API tier to the "for frameworks" tier, and add the `#pragma once` the header was missing. `DefaultTurboModules::getTurboModule` is the entry point out-of-tree platforms and custom C++ hosts use to obtain React Native's core turbo modules. Its exported surface is a single static function over `std::string`, `CallInvoker` and the `TurboModule` base class, so it exposes no private type. The concrete `react/nativemodule/*` implementations it delegates to all remain private. Changelog: [Internal] Differential Revision: D119326878 fbshipit-source-id: 8e638ca1c91cf40ccc9ebad73331be3b87bfe319
1 parent f109c0a commit 4edac1c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/react-native/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#include <react/cxxstableapi/PrivateGuard.h>
8+
#pragma once
9+
10+
#include <react/cxxstableapi/FrameworksGuard.h>
911

1012
#include <ReactCommon/TurboModule.h>
1113

0 commit comments

Comments
 (0)