I have used the documentation at https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#plugin-installation-and-configuration-for-react-native-060-version-and-above-android to install codepush on android.
For some reason when updateDialog: true
in the codepush config the android app crashed with the following error.
should be called from the main thread, not thread[mqt_native_modules,5,main]
See code implementation below.
const CPOptions = { updateDialog: true, installMode: CodePush.InstallMode.ON_NEXT_RESTART,};
AppRegistry.registerComponent('celo', () => CodePush(CPOptions)(App));
"react-native": "0.66.4"
"react-native-code-push": "^7.0.4",