garganurag893 / react-native-phone-number-input

React Native component for phone number.
MIT License
372 stars 212 forks source link

Can't choose alternate calling codes from same country despite said options being displayed #153

Open AntonioA-D-C opened 9 months ago

AntonioA-D-C commented 9 months ago

Countries like Vatican City and Dominican Republic have multiple calling codes which are displayed on the list but are unable to be selected, instead it defaults to the first, how to deal with this? image image

felixrolando commented 5 months ago

WhatsApp Image 2024-04-05 at 11 31 14 AM

Hello, I have the same problem, but looking at the code it is not currently possible, because it chooses the first position of the country's area code.

you can see in this link: https://github.com/garganurag893/react-native-phone-number-input/blob/master/lib/index.js

felixrolando commented 5 months ago

this library use this packages react-native-country-picker-modal and then list data "DO":{"currency":["DOP"],"callingCode":["1809","1829","1849"],"callingCode":["3906698","379"]. for this reason show the first callingCode.