-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Crashing on Android since upgrading to 3.16.0 #1565
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Snack or a link to a repository section. |
Hi @darrylyoung I'm ready to quickly rollback the changes introduced in https://github.com/software-mansion/react-native-screens/pull/1562/files & release 3.17.0 with the fix, but I would like to know the reasons why this happens first (as I tested it on fresh RN application and it worked with my setup). |
Hi, @kkafar. Thanks for the quick reply! No, there's nothing special with my setup as far as a know. It was initially an Expo Managed project, but I ejected a while ago. I build the Android version using EAS Build. As you can see above, I'm using the latest Expo SDK, which uses React Native I know it's not the ideal solution, but I'm unfortunately not able to share any of the application code, so I can't add you to a repository, for example. If there's anything else I can do, though, please let me know. Thanks for the support. |
Just upgraded to the latest version and having the exact same issue. "Failed to find fragment for React Root View" |
It seems to happen every time I reload the app in dev mode (e.g. by pressing Ctrl+R) and goes away once I kill the app and relaunch it. |
@darrylyoung, @SimpleCreations I created fresh RN 0.69.4, added Edit: Just now created fresh Expo (SDK 46) application, installed screens, ejected -> works as expected. Reproduction is required. |
got same issue, bare project RN 0.66.2 |
@kkafar I was able to narrow it down 🎉 The crash starts happening after adding import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import React from 'react';
import FastImage from 'react-native-fast-image';
const Stack = createNativeStackNavigator();
const Screen = () => (
<FastImage
style={{width: 200, height: 300}}
source={{uri: 'https://picsum.photos/200/300'}}
/>
);
const App = () => (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Screen" component={Screen} />
</Stack.Navigator>
</NavigationContainer>
);
export default App; |
For context, in case this helps, I'm also using |
@SimpleCreations, @darrylyoung Thanks for your quick responses! I managed to reproduce it with snippet provided by @SimpleCreations, will dive into it. For now I would love to hear from you whether this change solves the issue in your cases: #1566 To test it, you can simply put:
in your package.json, run |
@kkafar can confirm, the PR fixes the crash |
Confirm the PR fixed the crash |
fixes the bug for me as well |
Ok, thank you for your replies. You can expect 3.17.0 coming with the fix within days. |
Rolling back to 3.15 fixed the error, but now my React navigation native stack is blank on Android. Works perfectly find on iOS. I haven't changed any of the code for the Stacks while working on this screens fix. Is anybody else getting that? Is it a symptom of these issues, or did something get messed up? |
@poonam5057 That screenshot shows the same error I had in my screenshot in the original comment here. As mentioned by one of the maintainers, the issue has been fixed and will be fixed in |
Thank you so much, |
Ok, so I've just released 3.17.0, hope it works fine this time for you. |
Description
Hi, everyone!
Since upgrading to
3.16.0
, my app is crashing on Android when launched. Upgradingreact-native-screens
was the only thing I've done since having a working build, so it seems like the issue is related to the upgrade. Apologies if I've missed something, but I didn't see any specific actions I needed to take when upgrading in the release notes.This is what I see when launching the app in a Pixel 5 emulator in Android Studio.
Here's the raw text from the exception captured in Sentry
If I can provide any more information that would help, please let me know. Thanks!
Steps to reproduce
3.16.0
Snack or a link to a repository
Screens version
3.16.0
React Native version
0.69.4
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Real device
Device model
Google Pixel 3
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: