diff options
author | João Ferreiro <ferreiro@pinkroom.dev> | 2022-12-14 17:53:26 +0000 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-19 19:20:44 -0600 |
commit | 70f4debc0b27cc5245cceaede2a50ec03c1d67d5 (patch) | |
tree | b5c00dbc38c47f67f33456cd06713ef7d349155f /src/view/com/util/RichText.tsx | |
parent | 0a3e7e63b261e2df3b4832cff9e73afd90dc0d84 (diff) | |
download | voidsky-70f4debc0b27cc5245cceaede2a50ec03c1d67d5.tar.zst |
initial android fixes
Diffstat (limited to 'src/view/com/util/RichText.tsx')
-rw-r--r-- | src/view/com/util/RichText.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/util/RichText.tsx b/src/view/com/util/RichText.tsx index 66b0e2536..1f6d9cbcd 100644 --- a/src/view/com/util/RichText.tsx +++ b/src/view/com/util/RichText.tsx @@ -28,9 +28,9 @@ export function RichText({ fontSize: 26, lineHeight: 30, } - return <Text style={style}>{text}</Text> + return <Text style={[style]}>{text}</Text> } - return <Text style={style}>{text}</Text> + return <Text style={[style]}>{text}</Text> } if (!style) style = [] else if (!Array.isArray(style)) style = [style] @@ -65,7 +65,7 @@ export function RichText({ key++ } return ( - <Text style={style} numberOfLines={numberOfLines}> + <Text style={[style]} numberOfLines={numberOfLines}> {els} </Text> ) |