From a405a1d120a24bf7cde669eca05f9120917c598f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ma=C5=82ecki?= Date: Wed, 9 Sep 2026 07:39:40 -0700 Subject: [PATCH] Classify react/nativemodule/defaults as for-frameworks Summary: 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 --- .../react/nativemodule/defaults/DefaultTurboModules.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.h b/packages/react-native/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.h index bddb69598ed3..4a9e72d45084 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.h +++ b/packages/react-native/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.h @@ -5,7 +5,9 @@ * LICENSE file in the root directory of this source tree. */ -#include +#pragma once + +#include #include