Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
How to validate text input in React Native

I am trying to validate inputText to make sure it is a correctly formatted email address. However, I'm getting the following issues:

let reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
    if (reg.test(emailText) === false) {
      alert('Email is Not Correct');
      // this.setState({email: emailText});
      return false;
    } else {
      // this.setState({email: emailText});
      alert('Email is Correct');
    }

Works with some issues the following:

hello@gmail.com // works
hello.world@gmail.com // works
some.thing@gm.ci.co // will not work and is a real email address

Another other issue is that my characters count is limited. How do I remove the limit? I need to be able to have unlimited characters

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!