CountryCodePicker icon indicating copy to clipboard operation
CountryCodePicker copied to clipboard

First time US is chosen we see the Canadian flag

Open lowilleq opened this issue 3 years ago • 1 comments

https://user-images.githubusercontent.com/72613591/161998400-79428252-b749-4330-938a-658f9c6b26e0.mov

lowilleq avatar Apr 06 '22 14:04 lowilleq

Canada and US have the same dial code (+1) and it is difficult to differentiate which number belongs to one of those countries specifically (Without using an external native library that google recommends).

And because Canada comes before the US in alphabetical order, the logic chooses Canada's flag.

I think it is difficult to fix this behavior, waiting and wondering if anyone has a proper solution.

PS: This is only relevant when deciding the country flag from the dial code

panalgin avatar May 24 '22 18:05 panalgin