import CountryList from 'country-list-with-dial-code-and-flag'
CountryList.findFlag('mm'); // get specific flag
CountryList.getList(); // get all list
- result will be inArray
[
{ "name": "Afghanistan", "dial_code": "+93", "code": "AF", "flag": "🇦🇫" },
{ "name": "Myanmar", "dial_code": "+95", "code": "MM", "flag": "🇲🇲" } ...
]