MuhammedAlmaz/React-Native-INTL-Phone-Input

Phone Input Max Length

Closed this issue · 10 comments

wafda commented

Please provide option to add custom phone input max length, since several country has different max length of phone number

You can change phone length of each country by changing mask property (mask: '999 9999')
inside Countries.js

Location of this file: node_modules\react-native-intl-phone-input\src

image

Which country is incorrect mask? @wafda

Saudi Arab is also incorrect.
It should be mask: 99 999 9999

Is there any list about the country mask information ?

india is also incorrect.
it should be mask: 99999 99999

Is there any list about the country mask information ?

you can check all the information here.
https://en.wikipedia.org/wiki/List_of_mobile_telephone_prefixes_by_country

@MuhammedAlmaz I am curious if you're considering fixing this internally or are open to PRs for the same. There are several issues and because of that, we can't use the library to verify the number before letting the user submit it.

Let me know.

@FarazPatankar , is there any update on this, please?

@FarazPatankar fix the issue i merge the PRs on project. I am open the new developings.

@MuhammedAlmaz Sounds good. Any chance you could do a new release with some of the fixes for input length?