andreaswilli / react-verification-input

🙆🏼 Customizable, masked input for React.

Home Page:https://andreaswilli.github.io/react-verification-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change input type?

centauruspool opened this issue · comments

Is there any way to change the input type?

Would be really helpful if we could change it to 'tel'.

<input type="tel" />

This means that on hybrid apps it would open the numeric keyboard which I believe it's a must.

Thanks!

Everything from the inputField prop gets passed on to the input element.
So you can do this:

<VerificationInput inputField={{ type: "tel" }} />

I hope this helps.

It works, thanks!