Add new FileSourceProvider

Reviewed By: michalgr

Differential Revision: D3207541

fbshipit-source-id: d53599c3cf36ae7c89e85a29f637987bc7139159
This commit is contained in:
Tadeu Zagallo
2016-07-07 08:37:27 -07:00
committed by Facebook Github Bot 7
parent f11a783e64
commit af24e8001a
11 changed files with 291 additions and 50 deletions

View File

@@ -412,9 +412,12 @@ import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
}
private void recreateReactContextInBackgroundFromBundleFile() {
boolean useLazyBundle = mJSCConfig.getConfigMap().hasKey("useLazyBundle") ?
mJSCConfig.getConfigMap().getBoolean("useLazyBundle") : false;
recreateReactContextInBackground(
new JSCJavaScriptExecutor.Factory(mJSCConfig.getConfigMap()),
JSBundleLoader.createFileLoader(mApplicationContext, mJSBundleFile));
JSBundleLoader.createFileLoader(mApplicationContext, mJSBundleFile, useLazyBundle));
}
/**