UI Freezes using await on react native
<p>I have read a lot about this topic but I really don't understand what is happening in my case. </p>

<p>I'm using Firebase Authentication like:</p>

<pre><code>async login () {
    try {
      const user = await firebase.auth().signInWithEmailAndPassword(email, password)
      const token = await user.getToken()
      goTo.Home()
    } catch (err) {
      console.trace(err)
      this.setState({error: err})
    }
  }
</code></pre>

<p>The problem here is that It never executes <code>goTo.Home()</code>, it keep loading all the time. I think the problem can be the await but I'm not really sure. </p>

<p>If so, can you please tell me why? </p>

<p>Thank you!</p>