forked from microsoft/react-native-code-push
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Version
Ignite React Native CLI Template:
- RN 0.81.5
- Expo 54.0.22
- revopush 1.5.0
Problem statement
If i add these codes in the MainApplication.kt, the app will not open / run properly.
override fun getJSBundleFile(): String {
return CodePush.getJSBundleFile()
}the full snippet
override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
this,
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
add(CustomTRTCSDKPackage())
}
override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
override fun getJSBundleFile(): String {
return CodePush.getJSBundleFile()
}
}
)Recording
-
How it behave if it does not work (the CodePush.getJSBundleFile() is added)
https://github.com/user-attachments/assets/f91dc437-ad42-49a0-bff0-acbba79c9679 -
How it behave when CodePush.getJSBundleFile() is removed
https://github.com/user-attachments/assets/55f55feb-e924-4f98-b031-96a5c4adc8b5
How to reproduce
As of right now of this post, simply run the latest ignite template and implement the revopush can reproduce this issue.
npx ignite-cli@latest new PizzaApp
More about ignite:
https://github.com/infinitered/ignite
Metadata
Metadata
Assignees
Labels
No labels