react-navigation / react-navigation/react-navigation.github.io

GoBack in nested stack screen with different tabs

Open
#987 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
324
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

structure:
Tab Home
DASHBOARD-SCREEN
TODO-SCREEN
TAB PROFILE
PROFILE_SCREEN
SETTING_SCREEN

Screens on both tabs are on nested stacknavigator.

scenario:
if im on the Tab Home/ TODO-SCREEN then navigated to TAB PROFILE/SETTING_SCREEN
using navigation.navigate(ROUTES.TAB_PROFILE, { screen: 'SETTING_SCREEN', initial: false }) i get navigated to the settings screen correctly yet. when i click goback or use goback it goes to PROFILE_SCREEN which is the initial of the stack navigator not to TODO-SCREEN i need to press the Tab Home to back to TODO-SCREEN

Contributor guide

No contributing guide indexed for this repository

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

No source file, example, or test is named. Start by reproducing the nested-tab navigation sequence described with navigation.navigate and goBack, then trace the relevant nested stack behavior. Done means returning from TAB_PROFILE/SETTING_SCREEN reaches the preceding Tab Home/TODO-SCREEN state as specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, react-native
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.