mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Fix making loadScriptFromString always synchronous
Reviewed By: javache Differential Revision: D5129620 fbshipit-source-id: a0ad5e2704fc38f4cdfe29187a2b59ba4b0ff61b
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user