Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda