initial android fixes

This commit is contained in:
João Ferreiro 2022-12-14 17:53:26 +00:00 committed by Paul Frazee
parent 0a3e7e63b2
commit 70f4debc0b
8 changed files with 43 additions and 19 deletions

View file

@ -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>
)