sskhandek / react-native-emoji-input

A fully-featured emoji keyboard ⌨️ for React Native ⚛️
MIT License
71 stars 38 forks source link

emoji containing '-' issue #39

Open Dror-Bar opened 5 years ago

Dror-Bar commented 5 years ago

First of all, great library. I've noticed some issues with emoji containing the character '-' : in particular, all of the 'male-...' 'female-...' 'man-...' 'woman-...' : these emoji appear to be broken for me (they don't appear correctly). Any idea what is causing this?

rijn commented 5 years ago

I have no idea at the moment. Can you provide more information about the environment? e.g. which platform, os version, and how you use the lib? One thing that might cause this issue is the our emoji data source.

Dror-Bar commented 5 years ago

On Ios simulator and Android emulator it works correctly as expected:

Screenshot_1564296874

On my device, which is Android 7.0 Motorola, emojis such as those I mentioned are broken:

Screenshot_20190728-095620

As you can see it thinks something like 'man-painter' is two different emojis for some reason (man + paint) which causes messed up positioning of duplicate emojis on top of each other. I'm not sure exactly why this is happening.

I also found out that the flag emotes, that also contain '-' work correctly, so it's not strictly the '-' character.

As a temporary solution I'm using the filterFunctions prop to filter out the broken emojis, tho it would be nice to have them.