2

In Swift I would use locale, something similar to this answer. Android seems also to have it.

Is there a wrapper for this functionality for React Native?

Vladyslav Zavalykhatko
  • 15,202
  • 8
  • 65
  • 100

2 Answers2

4

There are lots of little bits of data that you often need relating to countries, and I couldn't find any easy to use source of it. So I compiled it all here.

Installing

npm install country-data

country-data

You can refer to the link above - it will help you to get all country with all the information to do mappings for country codes.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Hardik Virani
  • 1,687
  • 7
  • 23
  • 36
1

well, in React Native there are a lot of third parties available for this, one that I have used is react-native-country-picker-modal. To install just run yarn add react-native-country-picker-modal or npm install react-native-country-picker-modal you can visit this link

avani kothari
  • 729
  • 5
  • 16