Add separate JSBunldeLoader for assets

Reviewed By: mhorowitz

Differential Revision: D3735897

fbshipit-source-id: 990d45e9cb40a9afce1df8f8fd0b73c62e13158a
This commit is contained in:
Michał Gregorczyk
2016-09-06 19:39:27 -07:00
committed by Facebook Github Bot 8
parent 96de161304
commit 0c2fdf4b6a
3 changed files with 40 additions and 21 deletions

View File

@@ -73,7 +73,7 @@ public class ReactTestHelper {
.setJSExecutor(executor)
.setRegistry(mNativeModuleRegistryBuilder.build())
.setJSModuleRegistry(mJSModuleRegistryBuilder.build())
.setJSBundleLoader(JSBundleLoader.createFileLoader(
.setJSBundleLoader(JSBundleLoader.createAssetLoader(
mContext,
"assets://AndroidTestBundle.js"))
.setNativeModuleCallExceptionHandler(