forked from microsoft/react-native-code-push
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
In React Native 0.83, the default Android template initializes the app using ReactHost only (getDefaultReactHost(...)) and no longer exposes ReactNativeHost overrides such as getJSBundleFile().
This creates a regression for integrations like CodePush / Revopush (and other custom bundle loaders) that rely on overriding getJSBundleFile() to provide a dynamic JS bundle path.
Issue:
There is no documented or equivalent extension point in the new template to customize the JS bundle location without reintroducing ReactNativeHost.
Any guidance or official migration recommendation would be appreciated.
--- edit
I think this is the answer
override val reactHost: ReactHost by lazy {
getDefaultReactHost(
context = applicationContext,
packageList =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
},
// Revopush 2/2
jsBundleFilePath = CodePush.getJSBundleFile(),
)
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels