Skip to content

Commit

Permalink
regression: Big emoji cutted (#5905)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Mello <diegolmello@gmail.com>
  • Loading branch information
OtavioStasiak and diegolmello authored Oct 25, 2024
1 parent 39f54a0 commit 85f6099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/containers/markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,13 @@ class Markdown extends PureComponent<IMarkdownProps, any> {
};

renderParagraph = ({ children }: any) => {
const { numberOfLines, style = [], theme } = this.props;
const { numberOfLines, style = [], theme, msg } = this.props;
if (!children || children.length === 0) {
return null;
}
if (msg && this.isMessageContainsOnlyEmoji) {
return <Text>{children}</Text>;
}
return (
<Text style={[styles.text, { color: themes[theme!].fontDefault }, ...style]} numberOfLines={numberOfLines}>
{children}
Expand Down
1 change: 1 addition & 0 deletions app/containers/markdown/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default StyleSheet.create({
...sharedStyles.textRegular
},
textBig: {
lineHeight: 43,
fontSize: 30,
...sharedStyles.textRegular
},
Expand Down

0 comments on commit 85f6099

Please sign in to comment.