react-navigation / react-navigation/react-navigation

Android RN 0.75.3, app crashes when returning to the previous screen

Open
#12,149 14 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug library:react-native-screens platform:android repro provided
Dominant language
TypeScript
Stars
24.5k
Forks
5.1k
Avg merge
1d 5h
Merged PRs (30d)
18

Description

Current behavior

When I return to the previous screen, the app crashes. I am using version RN 0.75.3. I have tested with other RN versions, and this issue occurs from version RN 0.75 onwards.

https://github.com/user-attachments/assets/57c8fb5b-d130-44cb-8e7b-c974592b4567

z5834429057665_03f031b6823e4a16a4bb26aac70813fb

Expected behavior

I want the app not to crash when returning to the previous screen.

Reproduction

https://github.com/Ngoca1k15PT/AppNew

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

"@react-navigation/drawer": "^6.7.2",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"react": "18.3.1",
"react-native": "0.75.3",
"react-native-safe-area-context": "^4.11.0",
"react-native-screens": "^3.34.0",
"react-native-reanimated": "^3.15.2",

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the linked AppNew reproduction with React Native 0.75.3 on Android, using the listed drawer and native-stack packages, and reproduce the crash when returning to the previous screen. Compare behavior with a pre-0.75 React Native version and use the resulting error details to identify the affected navigation path; done means the reproduction no longer crashes on return.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.