File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
android/src/main/java/com/callstack/reactnativebrownfield Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ class ReactNativeBrownfield private constructor(val reactHost: ReactHost) {
7777 packageList = (options[" packages" ] as ? List <* > ? : emptyList<ReactPackage >())
7878 .filterIsInstance<ReactPackage >(),
7979 jsMainModulePath = options[" mainModuleName" ] as ? String ? : " index" ,
80+ jsBundleAssetPath = options[" bundleAssetPath" ] as ? String ? : " index.android.bundle" ,
8081 useDevSupport = options[" useDeveloperSupport" ] as ? Boolean
8182 ? : ReactBuildConfig .DEBUG ,
8283 jsRuntimeFactory = null
Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ Params:
7575Available options:
7676- ` useDeveloperSupport ` : ` Boolean ` - Flag to use dev support.
7777- ` packages ` : ` List<ReactPackage> ` - List of your React Native Native modules.
78- - ` mainModuleName ` : ` String ` - Path to react native entry file.
78+ - ` mainModuleName ` : ` String ` - Path to react native entry file (when loading from Metro).
79+ - ` jsBundleAssetPath ` : ` String ` - Path to react native bundle asset file (when loading from app assets), appended to ` asset:// ` .
7980
8081Examples:
8182
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ Params:
5858Available options:
5959- ` useDeveloperSupport ` : ` Boolean ` - Flag to use dev support.
6060- ` packages ` : ` List<ReactPackage> ` - List of your React Native Native modules.
61- - ` mainModuleName ` : ` String ` - Path to react native entry file.
61+ - ` mainModuleName ` : ` String ` - Path to react native entry file (when loading from Metro).
62+ - ` jsBundleAssetPath ` : ` String ` - Path to react native bundle asset file (when loading from app assets), appended to ` asset:// ` .
6263
6364Examples:
6465
You can’t perform that action at this time.
0 commit comments