mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix font weight
This commit is contained in:
@ -46,8 +46,7 @@ const ParseEmojis = React.memo(
|
||||
text: {
|
||||
color: colors.primaryDefault,
|
||||
fontSize: adaptedFontsize,
|
||||
lineHeight: adaptedLineheight,
|
||||
...(fontBold && { fontWeight: StyleConstants.Font.Weight.Bold })
|
||||
lineHeight: adaptedLineheight
|
||||
},
|
||||
image: {
|
||||
width: adaptedFontsize,
|
||||
@ -58,7 +57,10 @@ const ParseEmojis = React.memo(
|
||||
}, [theme, adaptiveFontsize])
|
||||
|
||||
return (
|
||||
<CustomText style={styles.text}>
|
||||
<CustomText
|
||||
style={styles.text}
|
||||
fontWeight={fontBold ? 'Bold' : undefined}
|
||||
>
|
||||
{emojis ? (
|
||||
content
|
||||
.split(regexEmoji)
|
||||
|
Reference in New Issue
Block a user