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

143
Views
How do I add a mask to TextInput in React Native using React Hook Form?

I'm trying to add a mask in user height input, I know how I should use this in ReactJS but I have no idea how to use it in React Native + React Hook Form.

Anyone can help me with this? I don't want to use an external lib to control my input.

My code:

<InputForm
    control={control}
    name="height"
    label="Altura *"
    placeholder="1,67"
    error={errors.height && errors.height.message}
    keyboardType="numeric"
    maxLength={3}
/>

This is the regex I'm trying to use: ^(0|[1-9]\d*)(,\d+)?$

about 4 years ago · Santiago Trujillo
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!