title: navigation.navigate does not work on one of useEffect();
body: <p>I am developing a code and always need the user to enter the application to check if there is an update, if there is to send the user to an information screen. But for some reason when I use navigation.navigate ('update') it doesn't work, but console.log ("oi"); above it works. What happens <strong>is normal</strong> is that last useEffect() executes the navigation.navigate ('Menu'); In the console does not show any kind of error.</p>
  
  <p>Code:</p>
  
  <pre><code>useEffect(() =&gt; {
      async function verifyVersion() {
          await api.post('/version', {
              version: 'v1.0'
          }).then((response)=&gt;{
              console.log("oi");
              navigation.navigate('update');
          });
      }
      verifyVersion();
  }, []);
  
  useEffect(() =&gt; {
      async function autoLogon() {
          if(await AsyncStorage.getItem("Authorization") != null){
              await api.post('/checkToken', null, {
                  headers: { 'Authorization': 'EST ' + await AsyncStorage.getItem("Authorization") }
              }).then((res)=&gt;{
                  navigation.navigate('Menu');
              }).catch(function (error){
                  if(error.response.data.showIn == "text"){
                      setShowInfo(true);
                      if(error.response.data.level == 3){
                          setColorInfo(false);
                      }else{
                          setColorInfo(true);
                      }
                      setInfoText(error.response.data.error);
                  }else{
                      setshowBox(true);
                      if(error.response.data.level == 3){
                          setcolorBox(false);
                      }else{
                          setcolorBox(true);
                      }
                      setboxText(error.response.data.error);
              }
              });
          }
      }
      autoLogon();
  }, []);
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>    import { createAppContainer, createSwitchNavigator } from 'react-navigation';
  import Login from './pages/Login';
  import read from './pages/read';
  import Menu from './pages/Menu';
  import Resultado from './pages/Resultado';
  import NoConnection from './pages/NoConnection';
  import update from './pages/update';
  const Routes = createAppContainer(
      createSwitchNavigator({
          Login,
          Menu,
          read,
          Resultado,
          NoConnection,
          update
      })
  );
  
  export default Routes;
  </code></pre>