Skip to content
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

iOS App Crashes on navigation to previous screen #11987

Closed
4 of 12 tasks
dakota-kallas opened this issue May 14, 2024 · 2 comments
Closed
4 of 12 tasks

iOS App Crashes on navigation to previous screen #11987

dakota-kallas opened this issue May 14, 2024 · 2 comments

Comments

@dakota-kallas
Copy link

Current behavior

App crashes when navigating back to a screen in the bottom tabs when the bottom tabs is also inside of a stack navigation container. For example, if I have 2 screens, with the initial being screen 1, if I navigate to screen 2 everything is fine, but as soon as I navigate back to screen 1 using the bottom tabs, the app will crash. This error happens with any combination of screens or any number of screens. All of this while being contained inside of a stack navigation.

I am using expo & react native for this. This only started happening once I updated to using the newly released expo SDK 51 from SDK 50. I am unsure if that is related. This issue is specific to iOS, as it appears to work fine on Android.

Expected behavior

I would expect to be able to navigate between screens in the bottom tabs without the app crashing after I navigate to a screen that was already navigated to previously.

Reproduction

https://github.com/dakota-kallas/Expense-Tracker

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

  • I've removed the packages that I don't use
package version
@react-navigation/native 6.1.17
@react-navigation/bottom-tabs 6.5.20
@react-navigation/native-stack 6.9.26
react-native-safe-area-context 4.10.1
react-native-screens 3.31.1
react-native 0.74.1
expo 51.0.5
node 18.16.1
npm 9.8.0
@dakota-kallas
Copy link
Author

Reinstalling the expo app fixed the issue

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant