xcarpentier / react-native-country-picker-modal

🇦🇶 Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
https://reactnative.gallery/xcarpentier/country-picker
MIT License
1.08k stars 802 forks source link

Change country label #463

Closed mrxsal closed 2 years ago

mrxsal commented 2 years ago

Is there a way to change the country labels?

I am intending to use this country picker to select a language instead. So rather than the user seeing "United Kingdom", I want it to show "English". Similarly:

['Netherlands' , 'Nederlands']
['Norway', 'Norsk']

Another library, React Flags Select --> https://github.com/ekwonye-richard/react-flags-select/issues/139 Implements a customLabels prop which changes the label text.

customLabels={{"GB": "English", "NL": "Nederlands"}}

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.