- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
When app starts, app crashed on android [React Navigation 5.0.0 Alpha]. #6267
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
Comments
Same issue!
|
I am also having this same issue on version 4.0.0 |
@Martian2Lee @mustafakemalelma Add the following two lines to dependencies section in android/app/build.gradle.
https://github.com/kmagiera/react-native-screens#usage-with-react-navigation-without-expo |
if not added this two lines code, the app crashed on android. Related to this issue react-navigation/react-navigation#6267.
Closing since the solution is posted |
It had to do with react-native-screens react-navigation/react-navigation#6267 Note: I also made Vincent's fix on MainActivity.java. I do not know if that contributed to the fix.
Hello |
|
Thank you very much, it is very helpful. |
Now stable version
🔖 https://mvnrepository.com/artifact/androidx.appcompat/appcompat |
Hello @satya164 @ykws thank you for version bump but are you sure swiperefreshlayout@1.0.0 is ok ? previous workaround from @burhanyilmaz used 1.1.0-alpha02 and the link you provided shows there is now a 1.1.0-beta01 version. |
It's not needed as of the latest version of |
thank you for the quick feedback :) I'll try that |
FWIW I had android app crashes on launch and deleteing the 'build' folder and running npx react-native run-android fixed my problem. It took my hours to find someone who suggested that (in addition to the above dependencies suggestion). Maybe I had other issues with my build directory... |
This comment's link is now outdated. The link is here now: https://github.com/software-mansion/react-native-screens/tree/2.3.0#usage-with-react-navigation-without-expo |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
if not added this two lines code, the app crashed on android. Related to this issue react-navigation/react-navigation#6267.
if not added this two lines code, the app crashed on android. Related to this issue react-navigation/react-navigation#6267.
Current Behavior
When my app starts, app crashed on Android.
The app is working on IOS.
Expected Behavior
The app is working on Android and IOS.
Error Log
How to reproduce
package.json
App.js
Your Environment
The text was updated successfully, but these errors were encountered: