mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-08 15:06:06 +08:00
Fix making loadScriptFromString always synchronous
Reviewed By: javache Differential Revision: D5129620 fbshipit-source-id: a0ad5e2704fc38f4cdfe29187a2b59ba4b0ff61b
This commit is contained in:
committed by
Facebook Github Bot
parent
9f81baa834
commit
35b888dc11
@@ -80,7 +80,7 @@ void Instance::loadScriptFromString(std::unique_ptr<const JSBigString> string,
|
||||
if (loadSynchronously) {
|
||||
loadApplicationSync(nullptr, std::move(string), std::move(sourceURL));
|
||||
} else {
|
||||
loadApplicationSync(nullptr, std::move(string), std::move(sourceURL));
|
||||
loadApplication(nullptr, std::move(string), std::move(sourceURL));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user