mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 09:23:16 +08:00
Support sync loading of the initial bundle/source
Reviewed By: javache Differential Revision: D3897521 fbshipit-source-id: a4f234c7003a5f4be952d315eb62f382836e24dc
This commit is contained in:
committed by
Facebook Github Bot 7
parent
51df83d7d5
commit
6071e8ca2c
@@ -152,6 +152,17 @@ void NativeToJsBridge::loadApplication(
|
||||
});
|
||||
}
|
||||
|
||||
void NativeToJsBridge::loadApplicationSync(
|
||||
std::unique_ptr<JSModulesUnbundle> unbundle,
|
||||
std::unique_ptr<const JSBigString> startupScript,
|
||||
std::string startupScriptSourceURL) {
|
||||
if (unbundle) {
|
||||
m_mainExecutor->setJSModulesUnbundle(std::move(unbundle));
|
||||
}
|
||||
m_mainExecutor->loadApplicationScript(std::move(startupScript),
|
||||
std::move(startupScriptSourceURL));
|
||||
}
|
||||
|
||||
void NativeToJsBridge::callFunction(
|
||||
ExecutorToken executorToken,
|
||||
std::string&& module,
|
||||
|
||||
Reference in New Issue
Block a user