mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b028f84233
commit
5bf54bc1f8
@@ -13,6 +13,7 @@
|
||||
#include <ReactCommon/TurboModule.h>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -22,6 +23,8 @@ using TurboModuleManagerDelegate = std::function<std::shared_ptr<TurboModule>(
|
||||
const std::string& name,
|
||||
const std::shared_ptr<CallInvoker>& jsInvoker)>;
|
||||
|
||||
using TurboModuleManagerDelegates = std::vector<TurboModuleManagerDelegate>;
|
||||
|
||||
using LegacyModuleProviderDelegate =
|
||||
std::function<TurboModuleProviderFunctionType(
|
||||
const std::shared_ptr<CallInvoker>& jsInvoker,
|
||||
|
||||
Reference in New Issue
Block a user