Skip to content

[Android] App will not start / open properly. Stuck at opening. #33

@firdausfadzii

Description

@firdausfadzii

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 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions