Accepted answer


You need to put your MyProfileStack in DrawerStack as below.

const DrawerStack = createDrawerNavigator({
  MyProfile: { screen: MyProfileStack }
  Edit: { screen: EditProfileStack }
  Settings: { screen: SettingsStack }

const TabStack = createBottomTabNavigator({
  Feed: { screen: FeedStack },
  Profile: { screen: DrawerStack },

const AppContainer = createAppContainer(MainStack);

You can use various combination.


SwitchNavigator resign other Screens when you switch to another one. So you cannot call drawer from the screen already resigned.

p.s: You can use navigation events if you want to refresh your screen when change the screen. Use onWillFocus.

Related Query

More Query from same tag