Closed abhinavsk90 closed 6 years ago
I want to get country code from this too.
You can get country code using getDialCode() method from component refs
@abhishekush getDialCode returnes country DIAL code as '+1', but you can't directly obtain the country code as 'us', because the documented "getCountryCode" function is not a method of the reference. (I checked the code, there isn't such function in the object). @thegamenicorus can you help with this one?
Hi all,
v 0.2.1, you can use .getISOCode() to get country code as 'us', 'ca' and etc.
If someone is typing the number with country code, I would like to get the country object using which you used to update the flag.
How can i achieve that.