MuhammedAlmaz / React-Native-INTL-Phone-Input

React Native International Phone Input
MIT License
45 stars 79 forks source link

Phone Input Max Length #13

Closed wafda closed 3 years ago

wafda commented 4 years ago

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

MSumairQureshi commented 4 years ago

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

MuhammedAlmaz commented 4 years ago

Which country is incorrect mask? @wafda

MSumairQureshi commented 4 years ago

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

MuhammedAlmaz commented 4 years ago

Is there any list about the country mask information ?

kmayatwal commented 4 years ago

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

kmayatwal commented 4 years ago

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

FarazPatankar commented 4 years ago

@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.

SirPhemmiey commented 4 years ago

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

MuhammedAlmaz commented 4 years ago

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

FarazPatankar commented 4 years ago

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