-
Notifications
You must be signed in to change notification settings - Fork 321
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
Single emoji message leads to emoji cutoff #1911
Comments
Hey @sterlingwes, The |
It's there for a reason @khushal87 , are you suggesting I can't have a line height set? What if I'd prefer to control the line height instead of rendering large single emojis differently from normal text? This seems like a bug to me that I can't have both and given your default components are deciding to render the emojis at a size larger than my normal text it's strange to me that it'd use the normal text's line height, no? |
Hey @sterlingwes, can you try this? We have a different markdown style theming pattern for onlyEmoji Messages, which needs to be applied separately. General markdown styles do not apply to those messages. You can apply all of the markdown style properties inside it. textContainer: {
width: maxWidth,
maxWidth,
onlyEmojiMarkdown: {
text: {
fontSize: 16,
lineHeight: 25,
},
},
}, |
That's great, thanks! I wish there was a way to style the "bubble" / container in the onlyEmoji case as well, but that's a separate issue... your suggestion fixed the cut-off problem here at least. Thanks again |
Describe the bug
Sending just a single emoji leads to it being cutoff in the chat (rendered by built-in MessageSimple):
sender view (iOS):
receiver view (Android):
Dev environment info:
stream-chat-react-native
v5.7.0react-native
v0.70.4To Reproduce
Steps to reproduce the behavior:
MessageList
andMessage
component, with custom theme (see below)Expected behavior
Emoji is allowed to render in full
Custom theme used
The text was updated successfully, but these errors were encountered: