From 5bf54bc1f89d9999b650266dc0d3ed2cbb3ed386 Mon Sep 17 00:00:00 2001 From: Andrew Datsenko Date: Tue, 15 Apr 2025 10:14:07 -0700 Subject: [PATCH] Add support for multiple TurboModule providers (#50707) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50707 Changelog: [Internal] Reviewed By: zeyap Differential Revision: D72968663 fbshipit-source-id: 87026d0a774b3b44980095c31f6df697717951ff --- .../ReactCxxPlatform/react/nativemodule/TurboModuleManager.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleManager.h b/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleManager.h index e0d6682dd37..7098e513dda 100644 --- a/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleManager.h +++ b/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleManager.h @@ -13,6 +13,7 @@ #include #include #include +#include namespace facebook::react { @@ -22,6 +23,8 @@ using TurboModuleManagerDelegate = std::function( const std::string& name, const std::shared_ptr& jsInvoker)>; +using TurboModuleManagerDelegates = std::vector; + using LegacyModuleProviderDelegate = std::function& jsInvoker,