Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Oct 22, 2024
1 parent 1b1e168 commit a478d68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/containers/markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type TLiteral = {
};

const emojiRanges = [
'\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]|[\uFE0F]|\u263A\uFE0F', // unicode emoji from https://www.regextester.com/106421
'\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]', // unicode emoji from https://www.regextester.com/106421
':.{1,40}:', // custom emoji
' |\n' // allow spaces and line breaks
].join('|');
Expand Down Expand Up @@ -186,9 +186,9 @@ class Markdown extends PureComponent<IMarkdownProps, any> {
if (!children || children.length === 0) {
return null;
}

if (msg && isOnlyEmoji(msg)) return <>{children}</>;

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 a478d68

Please sign in to comment.