New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native 0.73.2 project getting com.appName.mainActivity can not be cast to com.reactnativenavigation.NavigationActivity #7840
Comments
@Martyneris can you please try the latest version? |
Getting the same error 'com.lanch.MainActivity cannot be cast to com.reactnativenavigation.NavigationActivity' in 7.38.3 |
same issue |
Switching to .java fixed issues for me |
@aneena-thomas do you have error in ios? |
No errors. Keep the old MainActivity.java and MainApplication.java as it is. |
@aneena-thomas I get errors on iOS |
What are the errors you got? @ombogdanJoinToIt |
I think this error does not belong to this thread @aneena-thomas This error is located at: |
What happened?
I've installed the latest (7.37.2) version of react-native-navigation in my 0.73.2 react-native project, Android version builds but upon running the project I get the
com.appName.mainActivity can not be cast to com.reactnativenavigation.NavigationActivity
error.I want to emphasize that with the new 0.73.2 react-native version files I wasn't able to fully follow through with your installation.
In react-native 0.73.2
MainActivity.java
andMainApplication.java
files are replaced withMainActivity.kt
andMainApplication.kt
respectively and they do not include any of the code that is described in react-native-navigation's installation guide, therefore I didn't know where or what to add.What was the expected behaviour?
The project runs without any errors
Was it tested on latest react-native-navigation?
Help us reproduce this issue!
No response
In what environment did this happen?
React Native Navigation version: 7.37.2
React Native version: 0.73.2
Has Fabric (React Native's new rendering system) enabled: no
Node version: 18.18.0
Device model: Emulator
Android version: 14
The text was updated successfully, but these errors were encountered: