0
我有一個需要StackNavigator和TabNavigator的應用程序。其中的邏輯是:如何爲TabNavigator添加StackNavigator?
const App = StackNavigator({
Welcome: {
screen: Welcome
},
Login: {
screen: Login
},
Register: {
screen: Register
},
Auth: {
screen: Auth
},
Home: {
screen: Main
},
});
const Main = TabNavigator({
Home: { screen: Home },
Dash: { screen: Dash},
Myself: { screen: Myself},
});
const Pages = StackNavigator({
Share: { screen: Share},
About: { screen: About},
Service: {screen: Service}
});
我能正確處理如何跳從App
到App
,但在屏幕Myself
與TabNavigator我要跳到StackNavigator Pages
,如果我直接將其添加到Main
,這不是」工作。
那麼我該如何做到這一點?