This repository was archived by the owner on May 20, 2025. It is now read-only.

Description
On step 3, the orientation is update the method getJSBundleFile() on MainApplication.java:
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
...
// Override the getJSBundleFile method in order to let
// the CodePush runtime determine where to get the JS
// bundle location from on each app start
@Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}
};
}
But on version 0.69 there is no getJSBundleFile(), it was replaced by getJSMainModuleName()
@Override
protected String getJSMainModuleName() {
return "index";
}
How can I proceed with the configuration?
Thanks in advance
Environment
- react-native-code-push version: 7.0.5
- react-native version: 0.69.1