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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-navigation drawer stays opened after app is initialised in SDK40 #11526
Comments
Hi @chuanxie, thanks for writing in. But, without a reproducible example, I can't help investigate this issue. Could you provide either a repo or a snack with the issue occurring for you? One thing you could try is maintaining the same versions of all Hope this helps! |
thanks @byCedric, i used |
I had the same issue (upgraded from Expo 39.0.2 to Expo 40 without changing any versions of my react-navigation packages). On iOS the drawer navigation was behaving oddly and was stuck open after upgrading to Expo 40 even though it worked fine in Expo 39. Figured out it was due to wrapping everything, including the navigation, in a top-level Here is a basic example snack based on one of React Navigation's drawer examples. All I changed was wrapping |
@amanda-t good catch! |
re: top-level SafeAreaViews - this should be avoided: https://reactnavigation.org/docs/handling-safe-area - React Navigation adds them for you automatically when needed for the navigation UI, and you should add them per-screen when needed. we recommend using react-native-safe-area-context for all of your safe area needs, it exports if anyone can provide a reproducible example for the bug that demonstrates this is a bug with expo / expo sdk i'd be happy to investigate, but closing otherwise |
@brentvatne I guess the issue still reproducible. @amanda-t already mentioned the repro example I actually removed all the safe areas in the app, but I still, sometimes get this broken behavior. |
open an issue on react-navigation if you are still having this issue, it's not clear to me that this is related to anything we're doing in expo. if you can demonstrate that it happens with expo and not elsewhere then that would help us get a better idea of whether we need to investigate it |
馃悰 Bug Report
after upgrade to sdk 40, app broken and drawer stays opened
reverted into SDK39 and life back to normal
Environment -
and
"@react-navigation/bottom-tabs": "5.11.2", "@react-navigation/drawer": "5.11.4", "@react-navigation/native": "5.8.10", "@react-navigation/stack": "5.12.8",
The text was updated successfully, but these errors were encountered: