title: 'Email is badly formatted' react-native firebase
body: <p>This is how i called firebase auth: </p>
  
  <pre><code>onButtonPress() {
      const {email, password} = this.state;
      console.log(email,password);
      firebase.auth().signInWithEmailAndPassword(email, password)
          .catch( (err) =&gt; {
              console.log(err);
                firebase.auth().createUserWithEmailAndPassword(email, password)
                   .catch( (err) =&gt; {
                       console.log(err);
                      this.setState({ error: err.message });
               });
          });
     }
  </code></pre>
  
  <p>Here is my auth textInput: </p>
  
  <pre><code>&lt;Card&gt;
          &lt;CardSection&gt;
              &lt;Input
                  secureTextEntry={false}
                  label={'E-mail'}
                  placeholder={'user@gmail.com'}
                  onChangeText={(email) =&gt; this.setState({email})}
                  value={this.state.email}
              /&gt;
          &lt;/CardSection&gt;
  
          &lt;CardSection&gt;
              &lt;Input
                  secureTextEntry={true}
                  label={'Password'}
                  placeholder={'password'}
                  onChangeText={(password) =&gt; this.setState({password})}
                  value={this.state.password}
  
              /&gt;
          &lt;/CardSection&gt;
          &lt;Text style={styles.errorStyle}&gt;{this.state.error}&lt;/Text&gt;
          &lt;CardSection&gt;
              &lt;Button onPress={this.onButtonPress.bind(this)}&gt;
                  Log In
              &lt;/Button&gt;
         &lt;/CardSection&gt;
  &lt;/Card&gt;
  </code></pre>
  
  <p>But when it runs its showing me message like : </p>
  
  <p><a href="https://i.stack.imgur.com/F0pZB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F0pZB.png" alt="enter image description here"></a></p>
  
  <p>this error pops even if i don't input any email and password in input and press submit.  </p>