Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faded emojis in android. #5

Open
victorkvarghese opened this issue May 14, 2018 · 16 comments
Open

Faded emojis in android. #5

victorkvarghese opened this issue May 14, 2018 · 16 comments
Labels

Comments

@victorkvarghese
Copy link
Contributor

Why do the emojis look faded in Android its looking perfect in iOs?

i tried changing activeOpacity={1} for EmojiCell But no change ?

any help would be appreciated!

@arronhunt
Copy link
Owner

Hi @victorkvarghese, can you please share a screenshot? I'm not getting this problem on my emulator

@victorkvarghese
Copy link
Contributor Author

victorkvarghese commented May 15, 2018

Nexus 5 vs iPhone 6 Screenshot You can see the difference clearly. Emojis are faded in Android
imgonline-com-ua-twotoone-eaoslmsvi2oopt

@victorkvarghese
Copy link
Contributor Author

victorkvarghese commented May 18, 2018

@arronhunt Were you able reproduce the issue? Can you offer any workaround or why this happens?

@Mikael-Aberg
Copy link

Not sure if this is already solved but if you add "color:'#ffffff'" (or any color value) to the style of the Text component that displays the emojis this will be fixed.

<Text style={{ color:'#ffffff, fontSize: (colSize) - 12 }}> {charFromEmojiObject(emoji)} </Text>

@victorkvarghese
Copy link
Contributor Author

@Mikael-Aberg Thanks a lot for this info.

@arronhunt I'm unable to check whether this fix works?
If it does .. can you add a fix in the next commit??
I will work on a PR , but it might take some time

@arronhunt
Copy link
Owner

@victorkvarghese Were you able to solve this issue? I was unable to replicate :\

@victorkvarghese
Copy link
Contributor Author

Was able reproduce this issue .. but I haven't checked whether the fix is working..

@tje3d
Copy link

tje3d commented Oct 1, 2018

Not sure if this is already solved but if you add "color:'#ffffff'" (or any color value) to the style of the Text component that displays the emojis this will be fixed.

<Text style={{ color:'#ffffff, fontSize: (colSize) - 12 }}> {charFromEmojiObject(emoji)} </Text>

Works! also you need to add color to TabBar text too

arronhunt added a commit that referenced this issue Dec 11, 2018
@arronhunt arronhunt mentioned this issue Dec 11, 2018
@arronhunt
Copy link
Owner

Hey @victorkvarghese can you check out the latest version on master and let me know if you're still having this issue?

@victorkvarghese
Copy link
Contributor Author

victorkvarghese commented Dec 16, 2018

@arronhunt no .. still faded
screenshot_1544937929

@krewllobster
Copy link

krewllobster commented Jan 31, 2019

fwiw I'm also seeing faded emojis using the default component from the library.

May have to do with this: https://stackoverflow.com/questions/50840047/emojitextview-renders-emoji-semi-transparent

@darekg11
Copy link

darekg11 commented Feb 7, 2019

Also happens to me on Huawei P8 Lite, Android 6.0. Really wanted to use this lib, is there anything I can do to help you debug this?
I will try to do some debugging and tweaking around on the weekend to see if I could come up with anything to fix this up.

@cvongrim
Copy link

cvongrim commented Mar 18, 2019

Happening to me also. Setting the color of the Text component to white works but breaks some of the emojis causing them to display blank.

Screen Shot 2019-03-18 at 2 02 01 PM

It looks like the information in the StackOverflow link from @krewllobster is correct

I updated app/src/main/res/values/stylex.xml with an additional line

<item name="android:textColor">@color/black</item>

You will have to make sure that the color black exist in your
app/src/main/res/values/color.xml

And now it looks as expected

Screen Shot 2019-03-18 at 2 14 20 PM

It looks like this did not cause any issues with my Text colors anywhere else since I have been specifying their color in RN.

I am not sure how you could fix this in the library itself since it's really a projects global styling.

@darekg11
Copy link

Oh wow, thanks @cvongrim

@arronhunt arronhunt added the bug label Apr 7, 2019
@Dror-Bar
Copy link

Dror-Bar commented Jul 14, 2019

@Mikael-Aberg Thanks a lot, that works.

This solution can be implemented in the module level, no need to change project scope text color.

Edit: However, I seem to be having double trouble - some of my icons are "broken" (show blank). And after some scrolling the position of the emojis is all over the place, they even render on top of each other. Ouch.

Edit2: The messed up emojis appear to be those starting with 'male-...' 'female-...' 'man-...' and 'woman-...'.

@arronhunt
Copy link
Owner

@Dror-Bar continuing the discussion of the duplicate and missing emojis in #27

Regarding the faded issue I may have to update the README to address this problem since it appears to be something I can't fix in the module.

@arronhunt arronhunt mentioned this issue Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants