I want to remove tabnavigator from screen2
const switchNavigator = createSwitchNavigator({
registration: createStackNavigator({
first: First,
second: Second,
third: Third,
}),
tabScreens: createBottomTabNavigator({
Index: createStackNavigator({
screen1: Screen1,
screen2: Screen2,
}),
index2: Index2
}),
});
I want to remove tabNavigator in screen2. How can i handle this ? it should be in createStackNavigator.
question from:https://stackoverflow.com/questions/65842777/remove-tabnavigator-from-screen-in-createstacknavigator