danalloway / react-country-flag

React component for emoji/svg country flags.
https://danalloway.github.io/react-country-flag/
MIT License
255 stars 43 forks source link

React Country Flag is not showing emoji on windows OS #56

Closed Kamran95 closed 2 years ago

Kamran95 commented 2 years ago

We have developed our product on Linux on which this library was working just fine but on moving to windows emoji is not displaying on all browsers except Firefox Kindly resolve this issue as this has a great impact on our system On browsers except for firefox, it displays us for the united states in small alphabets rather than the united states flag

hero9991 commented 2 years ago

The same issue. And the detect-emoji-support package doesn't help, since the emojiSupport() method returns true even if emojies does not work.

danalloway commented 2 years ago

@Kamran95 @hero9991

Hi all, my understanding is that Windows does not support country flag emojis. emojiSupport will always returns true because Windows does support emoji's just not country flags, due to political reasons.

This library relies on native emojji support as well as third-party flag SVG's and does not handle or control the assets at all, as it's just a simple React component.

My suggestion is to use SVG's if you have to support Windows.