-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
Crash with back button - 4.6.0-beta.0. #2629
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 @GaylordP thanks for the report. The library is in a bit of awkward place at the moment. Since 4.5.0 the lib is supposed to work with new architecture only on 4.6.0-beta.0 comes with which assumes you're running on 0.77. There are two sensible solutions right now:
I'll pin the issue, because it might affect many people before 0.77 is released. |
Thank you very much for this information :) |
Same issue with react-native-screens: 4.5.0 and react native 0.76.6 |
@tiempham yes, indeed, 4.5.0 won't work with 0.76. I kindly nudge you to read my message above ☝ |
@kkafar actually, mine is working with 0.76.5 react-native and 4.5.0 react-native-screens. It gave me error with "^4.0.0" which installed recently released 4.6.0 version of react-native-screens |
Ok, then stick to it. However I would recommend upgrading to 0.77 😉 |
@kkafar do you mean with any arch or it will not work only with the new arch? I was assuming it will work on an old arch with both 0.76 & 0.77 UPDATE: |
I have the same crash with screens version 4.4.0, react native 0.76.5, and Android 7.1.1. It gives the error "cannot remove child at index X from parent ViewGroup" and then crashes. I tried to update it to 4.5.0, but it didn't fix it. I can't update to react native 0.77 right now because I'm using expo integration in my bar react native project, and expo hasn't released a compatible version with 0.77 yet. Also, I checked the workaround mentioned in this comment, and I found it is already there in 4.4.0, but it is still crashing in Android 7.1.1. So can someone help with this? |
AFAIK expo sdk 52 supports 0.77 (or it will soon enough) |
I already tried recently to update, and the Expo complained. |
I am still seeing this on 0.77 with 4.5.0 where I manually plucked this patch #2596 - Updating to 4.6.0 now. It seems to be happening when navigating back from a screen with a flashlist |
Description
Hello and thank you @kkafar for your amazing work! :)
The version 4.6.0-beta.0 released yesterday indeed fixes the Pressable elements in the headers. However, my application crashes as soon as the back button is used. I am encountering the same error as described in these issues: link 1, link 2.
My application is very basic: React Navigation Bottom Tab > React Navigation Native Stack. There are no special features or overrides of the back button.
All my packages are up to date, and I have cleared the caches properly (deleted
node_modules
, rannpx reset cache
, and performed a Gradle clean).I remain at your disposal if you need additional information.
Steps to reproduce
Just use version 4.6.0-beta.0.
Snack or a link to a repository
Don't have because only with One Plus real device
Screens version
4.6.0-beta.0
React Native version
0.76.6
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Real device
Device model
One Plus 6
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: