react-navigation.github.io
react-navigation.github.io copied to clipboard
GoBack in nested stack screen with different tabs
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