Skip to content

Commit 5bf54bc

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add support for multiple TurboModule providers (#50707)
Summary: Pull Request resolved: #50707 Changelog: [Internal] Reviewed By: zeyap Differential Revision: D72968663 fbshipit-source-id: 87026d0a774b3b44980095c31f6df697717951ff
1 parent b028f84 commit 5bf54bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleManager.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <ReactCommon/TurboModule.h>
1414
#include <functional>
1515
#include <string>
16+
#include <vector>
1617

1718
namespace facebook::react {
1819

@@ -22,6 +23,8 @@ using TurboModuleManagerDelegate = std::function<std::shared_ptr<TurboModule>(
2223
const std::string& name,
2324
const std::shared_ptr<CallInvoker>& jsInvoker)>;
2425

26+
using TurboModuleManagerDelegates = std::vector<TurboModuleManagerDelegate>;
27+
2528
using LegacyModuleProviderDelegate =
2629
std::function<TurboModuleProviderFunctionType(
2730
const std::shared_ptr<CallInvoker>& jsInvoker,

0 commit comments

Comments
 (0)