Closed RP-alissonpaschoal closed 1 year ago
I found the problem, I forgot to add this code below on MainApplicationReactNativeHost.java
file (instead of MainApplication.java
, this file is only for the 'old' architecture)
@Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}
@RP-alissonpaschoal I am using RN 0.72.4. I am not able to find this file MainApplicationReactNativeHost.java
Steps to Reproduce
Expected Behavior
It is expected to update the app successfully.
Actual Behavior
It throws an error and do not update.
Reproducible Demo
It's not possible to reproduce using the example app from react-native-code-push repository, because react-native version is out-of-date. It's possible to reproduce using react-native 0.70 with new architecture enabled.
Important information: if I disable the new architecture it works as expected, but when I enable new architecture it throws an error.
Environment