I'm using react-native v0.68, react-navigation v6.xx
When i open app with url(prefix://home/doctor/:category), it works. But DoctorList components is always first route so I can't use navigation.back() to go TabOne(path: 'home') components. It just appear only one screen(not stack screen) so back button is not shown. How can i set config to use stack navigation??
TabOne, TabTwo, TabThree is Bottom Tab Navigation and DoctorList, DoctorDetail is Stack.screen in TabOne
config: {
screens: {
Root: {
initialRouteName: 'TabOne',
screens: {
TabOne: {
path: 'home',
screens: {
DoctorList: {
path: 'doctor/:category',
parse: {
category: (category: string) => decodeURI(category)
}
},
DoctorDetail: {
path: 'detail/:docid/:category',
parse: {
docid: (docid: string) => decodeURI(docid),
category: (category: string) => decodeURI(category)
}
}
}
},
TabTwo: 'history',
TabThree: {
initialRouteName: 'TabThree',
path: 'mypage',
screens: {
Notice: 'notice'
}
}
}
}
}
},