Enlarge the small emoji-only replies

zio/stable
Paul Frazee 2022-12-05 15:40:33 -06:00
parent 7561b19f3d
commit 5821975be6
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ export function RichText({
numberOfLines?: number
}) {
if (!entities?.length) {
if (/^\p{Extended_Pictographic}+$/u.test(text) && text.length <= 5) {
style = {
fontSize: 26,
lineHeight: 30,
}
return <Text style={style}>{text}</Text>
}
return <Text style={style}>{text}</Text>
}
if (!style) style = []