Country Picker component #85
Replies: 8 comments 9 replies
-
That sounds great, we can probably just take that JSON object directly from the link you sent and add it as a const in a file called |
Beta Was this translation helpful? Give feedback.
-
i added the JSON object in const and the size was 256KB. |
Beta Was this translation helpful? Give feedback.
-
Can you use this JSON snippet?
|
Beta Was this translation helpful? Give feedback.
-
That should be a lot smaller than 256kb. And, in regards to the file to put it in, export the const from |
Beta Was this translation helpful? Give feedback.
-
If you can find a JSON snippet that ALSO includes an emoji for the flag, and includes the name and code (but that's it) - that would be super as well. Let's try to keep the file size down. |
Beta Was this translation helpful? Give feedback.
-
we can use the JSON snippet you have provided, and for the flag we can actually use this countryflags website to get the flag of country just by providing the country code in the url. |
Beta Was this translation helpful? Give feedback.
-
pull request sent. here's the link |
Beta Was this translation helpful? Give feedback.
-
Well done @nikhil12377 ! closing this conversation thread. |
Beta Was this translation helpful? Give feedback.
-
@mikhael28 i'm working on Country Picker component #23 issue and i wanted to ask that,
can we use this API to get the data of country name and its flag?
Beta Was this translation helpful? Give feedback.
All reactions