-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error setting defaultValue for callingCode not included in showonly #104
Comments
Hi @pgiki Can you send me more informations about this case? What error occurs? If possible, can you send me your PhoneInput code for analisys? I tested I used showOnly={['CA', 'US']} and use a defaultValue="+34608123123" (a phone number from Spain, that there is not in showOnly) and work fine without errors... |
Hi @AstrOOnauta, I did further investigation and found the root cause. In summary, the error happened because the number I entered,
|
Noted. Thanks for your response. But I still think the suggestion above to avoid setting the |
Yeah @pgiki this is a good point. I'll study this case and I'll fixed it! Thanks for this report and you suggestion. 🚀 AstrOOnauta 🚀 |
Hello!
Firstly, thanks for your work on this project! 🙂
I am facing an issue with
react-native-international-phone-number@0.8.3
when I try to pass a defaultValue for a country that is not included in theshowOnly
prop. In my use case, users have a limited list of countries from which they can select the country flag/calling code. However, they also have the option of picking contacts from their address book, and contacts picked this way are still valid. I do not know how much code will need to be changed to accommodate this use case. Can someone kindly help?Here is the diff that partially solved my problem. The defaultValue is still not showing.
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: