AstrOOnauta / react-native-international-phone-number

⚛️ International mobile phone number input component for React Native 📱
https://snack.expo.dev/@astroonauta/react-native-international-phone-number
ISC License
279 stars 52 forks source link

Bad format for french number #25

Closed LaGregance closed 1 year ago

LaGregance commented 1 year ago

Hi, thanks for this very useful package !

Unfortunately, I run into a little issue for French number (maybe it can impact others country but not sure).

Usually in France, phone number are generally written in any of the following formats:

I notice two things:

  1. The first "0" is optional, but in your package it's forbidden
  2. French number are formatted like American number (with number grouped by 3 instead of 2, in my example +33 612 345 678)

Is there a way to fix this ?

LaGregance commented 1 year ago

I just submitted a PR for this : https://github.com/AstrOOnauta/react-native-international-phone-number/pull/26

AstrOOnauta commented 1 year ago

@LaGregance Thanks!! I aproved your PR with this adjustments...its will be up on new version soon!

AstrOOnauta commented 1 year ago

@LaGregance I release a new version with your contribution...thanks

So, please update your lib to latest v0.6.5