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

Default value does not work for all numbers #19

Closed VikasShashidhar closed 1 year ago

VikasShashidhar commented 1 year ago

Hello. First of all, great library - easy to use and customise. I've been able to do most of what I've been wanting to with the library.

However, I am running into an issue when trying to set the default value. It doesn't work for all phone numbers. For ex., if you check the Snack here - https://snack.expo.dev/@vikas.shashidhar/phone-input-default-value, you'll notice that the default value has an Australian phone number which is perfectly valid. But, the component breaks.

image

Can you please help? Thanks.

AstrOOnauta commented 1 year ago

Hey @VikasShashidhar, sorry for this. I will see this case soon...thanks for share it!

VikasShashidhar commented 1 year ago

No worries @AstrOOnauta. Thanks and let me know if you need help reproducing it.

AstrOOnauta commented 1 year ago

@VikasShashidhar I studied your case and fixed it in the newest lib version.

Please, update the lib version to v0.6.1 in your project and enjoy!!

🚀AstrOOnauta 🚀

VikasShashidhar commented 1 year ago

Thanks a ton @AstrOOnauta!