code without createSwitchNavigator
…