Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

112
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda