mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Expose ModuleRegistry on ExecutorDelegate
Differential Revision: D3944588 fbshipit-source-id: f8450a6735e1f6283c3bfe9d2ce883327172621c
This commit is contained in:
committed by
Facebook Github Bot
parent
6d175f2c25
commit
d7d89172c2
@@ -41,15 +41,8 @@ public:
|
||||
return m_nativeToJs->unregisterExecutor(executor);
|
||||
}
|
||||
|
||||
std::vector<std::string> moduleNames() override {
|
||||
// If this turns out to be too expensive to run on the js thread,
|
||||
// we can compute it in the ctor, and just return std::move() it
|
||||
// here.
|
||||
return m_registry->moduleNames();
|
||||
}
|
||||
|
||||
folly::dynamic getModuleConfig(const std::string& name) override {
|
||||
return m_registry->getConfig(name);
|
||||
std::shared_ptr<ModuleRegistry> getModuleRegistry() override {
|
||||
return m_registry;
|
||||
}
|
||||
|
||||
void callNativeModules(
|
||||
|
||||
Reference in New Issue
Block a user