-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Text] Emoji changes the line height #4457
Comments
Hey h3l, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
Related to this (in iOS): Rendering a text at fontSize 15 results in a lineheight of 18 (default font), setting the lineHeight to 18 explicitly and including an emoji will also lift up the baseline (which results in??) emoji getting cut at the top. If there are several lines of text, an emoji on second line will fit and not get cut... |
@h3l do you know of any workaround? |
I'm sorry to tell you that there is still no solution for this. |
I found somewhat of a workaround actually... detect if the text contains any emoji and in that case apply additional style:
Obviously it is tied to this fontSize (and font?)... |
Yes, this style fix the problem in a given fontsize. |
@brentvatne Could you please have a look at this problem? |
@h3l - sorry I had so many notifs I just noticed this. I'm not familiar with this part of the codebase but I'm noticing some strange behaviours with lineHeight on Android so looking into that.. |
@h3l hey Hel, do you have accounted the same issue on android platform? |
@brentvatne what do you think about this? do you think this might be the good place to start finding the way to fix this interesting issue? |
In iOS 10 the behaviour is a bit different, I think the line height no longer changes, but instead the emoji will get cut at the Text bottom margin. |
@adbl I resolved this problem by add a character, like space. |
This is an old issue and it's not clear to me if it's still affecting people. Please feel free to re-open, and fill in the template with details. |
@hramos it is still an issue, it acts differently in iOS 10 vs before. There are hacks to get around it, the best one I could come up with is to add zero width space to the text. It's still a bug |
Alright - can you open a new issue? |
I will not bother because we have solved it for our purposes. This issue
has some of the information that explains what is wrong. Why close and open
a new one?
…On Tue, 14 Mar 2017 at 19:30, Héctor Ramos ***@***.***> wrote:
Alright - can you open a new issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4457 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK22LSAIJiRdWiQmw0VPXzSE_FlGnYLks5rltzHgaJpZM4Gr_yj>
.
|
The issue lacks all the detail required in the template, has been open for a really long time, and people have commented with possibly unrelated issues. If someone really cares about this, then the best way forward is to open a new issue with all the necessary details. |
Ok, hopefully someone does care about it enough to do that then.
…On Tue, 14 Mar 2017 at 20:05, Héctor Ramos ***@***.***> wrote:
The issue lacks all the detail required in the template, has been open for
a really long time, and people have commented with possibly unrelated
issues. If someone really cares about this, then the best way forward is to
open a new issue with all the necessary details.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4457 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK22Nuh421GH8iwIS4P9lAiuOnGCnAUks5rluT7gaJpZM4Gr_yj>
.
|
Still an issue. |
Please open a new issue. |
@hramos I would love to, but unfortunately I can't verify the issue with latest version of React Native as it breaks remote debugging. I noticed the latest version has new implementation of Text. I will try again with the next release. |
Since this issue is closed I moved my workaround solution to: #18559 |
The demo is here,
Emoji will change the line height.
The text was updated successfully, but these errors were encountered: