Answers for "TextInput type email"

0

input type email

<label for="email">Enter your email:</label>
<input type="email" 
  id="email" name="email">
Posted by: Guest on March-25-2021
0

TextInput is email type

<TextInput
  placeholder="Email ID"
  onChangeText={(text) => this.validate(text)}
  value={this.state.email}
/>
Posted by: Guest on April-25-2020
0

TextInput is email type

validate = (text) => {
  console.log(text);
  let reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
  if (reg.test(text) === false) {
    console.log("Email is Not Correct");
    this.setState({ email: text })
    return false;
  }
  else {
    this.setState({ email: text })
    console.log("Email is Correct");
  }
}
Posted by: Guest on April-25-2020

Code answers related to "TextInput type email"

Browse Popular Code Answers by Language