async logIn()

in js/common/LoginButton.js [80:97]


  async logIn() {
    const { dispatch, onLoggedIn } = this.props;

    this.setState({ isLoading: true });
    try {
      await Promise.all([dispatch(logInWithFacebook(this.props.source))]);
    } catch (e) {
      const message = e.message || e;
      if (message !== "Timed out" && message !== "Canceled by user") {
        Alert.alert(message);
      }
      return;
    } finally {
      this._isMounted && this.setState({ isLoading: false });
    }

    onLoggedIn && onLoggedIn();
  }