You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In France for instance, phone numbers are usually written as: 06 65 11 22 33
The valid equivalent to this number is: +336 65 11 22 33
Now with react-native-international-phone-number if a user selects France as a country, it will automatically prefix +33 in front of the number. However, not everybody will know that they have to remove the zero prefix when they see +33.
So in my case, I sometimes end up with this number being saved to the database: +3306 65 11 22 33
Is there a way to handle this kind of country specific variations in user input ? I don't know what variations exist in each country so I'm wondering if this library has something doing this.
I think ideally it would detect that a zero has been inserted, and put it in parenthesis like so: +33(0)6 65 11 22 33 -> On the user interface +336 65 11 22 33 -> Saved to the DB
The text was updated successfully, but these errors were encountered:
@AstrOOnauta Thank you for the great library. I would like to add my vote to implement the option to remove zeros inserted between the country code and the local phone number. Some other libraries provide this feature as a method.
In France for instance, phone numbers are usually written as:
06 65 11 22 33
The valid equivalent to this number is:
+336 65 11 22 33
Now with react-native-international-phone-number if a user selects France as a country, it will automatically prefix
+33
in front of the number. However, not everybody will know that they have to remove the zero prefix when they see+33
.So in my case, I sometimes end up with this number being saved to the database:
+3306 65 11 22 33
Is there a way to handle this kind of country specific variations in user input ? I don't know what variations exist in each country so I'm wondering if this library has something doing this.
I think ideally it would detect that a zero has been inserted, and put it in parenthesis like so:
+33(0)6 65 11 22 33
-> On the user interface+336 65 11 22 33
-> Saved to the DBThe text was updated successfully, but these errors were encountered: