COVID-19

FREE
Verified
By API-SPORTS | Updated a month ago | Health and Fitness
Popularity

9.9 / 10

Latency

503ms

Service Level

100%

Back to All Discussions

Flag image URLs for each country

avatar
michaelgrigoryan
10 months ago

It would be great if you could add some kind of prop to specify the country’s image URL from some kind of website let’s say Wikipedia or from somewhere else ?

avatar
sudlamichhane commented 10 months ago

I used a library which looked up the code for the country, and then put the code in this
https://www.countryflags.io/{CODE_HERE}/flat/64.png, and example for USA would be https://www.countryflags.io/us/flat/64.png

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 3.5 - Votes: 26