title: switch navigator in react-navigation v5
body: <p>There is a good example of switch navigator in V4 documentation of react-navigation:</p>
  
  <p><a href="https://snack.expo.io/@react-navigation/auth-flow-v3" rel="nofollow noreferrer">https://snack.expo.io/@react-navigation/auth-flow-v3</a></p>
  
  <p>I didn't understand how can I change this into a proper way for V5. here is the link:</p>
  
  <p><a href="https://reactnavigation.org/docs/en/upgrading-from-4.x.html#switch-navigator" rel="nofollow noreferrer">https://reactnavigation.org/docs/en/upgrading-from-4.x.html#switch-navigator</a></p>
  
  <p>Any assistance you can provide would be greatly appreciated.</p>