Expose ModuleRegistry on ExecutorDelegate

Differential Revision: D3944588

fbshipit-source-id: f8450a6735e1f6283c3bfe9d2ce883327172621c
This commit is contained in:
Pieter De Baets
2016-10-03 05:13:38 -07:00
committed by Facebook Github Bot
parent 6d175f2c25
commit d7d89172c2
5 changed files with 15 additions and 18 deletions
+2 -9
View File
@@ -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(