Closed
Description
What happened?
How can I fix it?

What was the expected behaviour?
No response
Was it tested on latest react-native-navigation?
- I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!
MainAcitivity.kt
package com.app;
import com.reactnativenavigation.NavigationActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled;
import com.facebook.react.defaults.DefaultReactActivityDelegate;
class MainActivity:NavigationActivity() {}
MainApplication.kt
package com.app
import com.facebook.react.PackageList
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.reactnativenavigation.NavigationApplication
import com.reactnativenavigation.react.NavigationPackage
import com.reactnativenavigation.react.NavigationReactNativeHost
import com.microsoft.codepush.react.CodePush
class MainApplication : NavigationApplication() {
override val reactNativeHost: ReactNativeHost =
object : NavigationReactNativeHost(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())
}
override fun getJSMainModuleName(): String = "index"
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
override fun getJSBundleFile(): String {
return CodePush.getJSBundleFile()
}
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}
override val reactHost: ReactHost
get() = getDefaultReactHost(this, reactNativeHost)
override fun onCreate() {
super.onCreate()
}
}
In what environment did this happen?
React Native Navigation version: 8.1.0
React Native version: 0.77.2
Has Fabric (React Native's new rendering system) enabled: yes
Node version: 20
Device model: Samsung Galaxy Tab A9 + (emulator)
Android version: 15
Activity
ortweinl commentedon Jun 17, 2025
Hey @AleshkovDenis,
did you try to add
RNNotificationsPackage
in getPackages?Android works for me with this MainApplication.kt
and this MainActivity.kt:
AleshkovDenis commentedon Jun 17, 2025
@ortweinl it didn't help
AleshkovDenis commentedon Jun 20, 2025
resolved
danilomsou commentedon Jun 30, 2025
@AleshkovDenis How did you solve it? I have the same issue.