Is there a way to smoothly navigate from a deeply nested StackNavigator and DrawerNavigator setup while preventing the user from returning to the previous screen?
Here is the layout of the views:
const login = StackNavigator(
{
loginScreen: { screen: Login },
firstPage: { screen: CodeCollab },
},
{
initialRouteName: "firstPage"
}
)
const main = StackNavigator(
{
home: { screen: Home },
}
)
const homeDrawer = DrawerNavigator(
{
first: { screen: main },
},
{
contentComponent: DrawerContent
}
)
const out = StackNavigator(
{
Login: login,
Home: homeDrawer,
split: Splitter
},
{
headerMode: 'none',
title: 'Main',
initialRouteName: "split"
}
)
export default out
I need help transitioning from login/loginScreen to out/Home seamlessly.