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
Hi @kneepdee! That's a great suggestion! If you are interested in taking that on, feel free to fork and to open a PR! Otherwise, I'll try to get to it over the weekend.
Hi @mcataford ! Thanks for the quick reply. If you haven't already, I would like to tackle this issue. Probably will take some time for me to open a PR but but looking at the code, it doesn't seem to be overly complicated.
Expected Behavior
It would be useful to have a method that returns a list of valid / supported countries data similar to intl-tel-input's
getCountryData
methodCurrent Behavior
Currently there seems to be no way to get the supported countries other than extract them from source manually
react-intl-tel-input/src/components/AllCountries.js
Line 45 in bda538f
Possible Solution
The API would expose a method
getCountryData
that returns a list of all countries similar in shape todefaultCountriesData
.The text was updated successfully, but these errors were encountered: