From 35b888dc1194eafabb6646abcdd2614339b5dd26 Mon Sep 17 00:00:00 2001 From: Kathy Gray Date: Thu, 25 May 2017 16:37:38 -0700 Subject: [PATCH] Fix making loadScriptFromString always synchronous Reviewed By: javache Differential Revision: D5129620 fbshipit-source-id: a0ad5e2704fc38f4cdfe29187a2b59ba4b0ff61b --- ReactCommon/cxxreact/Instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/cxxreact/Instance.cpp b/ReactCommon/cxxreact/Instance.cpp index 24aa653d2..ba8aef531 100644 --- a/ReactCommon/cxxreact/Instance.cpp +++ b/ReactCommon/cxxreact/Instance.cpp @@ -80,7 +80,7 @@ void Instance::loadScriptFromString(std::unique_ptr 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)); } }