title: how to replace Alert into navigation.navigate('Home")? like Open the new screen in catch
body: <blockquote>
    <p>How to open the new screen? </p>
  </blockquote>
  
  <p>like: <strong>navigation.navigate('Home")</strong>  </p>
  
  <pre><code>async function handleLoginWithPhonePressed() {
      try { 
          ------------------------
  } 
  catch (err) {
        //Alert.alert(`Failed to login with phone ${err.message}`)
          {() =&gt; navigation.navigate('Home")}
      } 
  }
  </code></pre>