initial android fixes
This commit is contained in:
parent
0a3e7e63b2
commit
70f4debc0b
8 changed files with 43 additions and 19 deletions
|
@ -25,9 +25,9 @@ export function PostMeta(opts: PostMetaOpts) {
|
|||
style={styles.metaItem}
|
||||
href={opts.authorHref}
|
||||
title={opts.authorHandle}>
|
||||
<Text style={[s.f17, s.bold]} numberOfLines={1}>
|
||||
<Text style={[s.f17, s.bold, s.black]} numberOfLines={1}>
|
||||
{opts.authorDisplayName || opts.authorHandle}
|
||||
<Text style={[s.f15, s.gray5, s.normal]} numberOfLines={1}>
|
||||
<Text style={[s.f15, s.gray5, s.normal, s.black]} numberOfLines={1}>
|
||||
{opts.authorHandle}
|
||||
</Text>
|
||||
</Text>
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
|
|
@ -56,7 +56,11 @@ export const ViewHeader = observer(function ViewHeader({
|
|||
hitSlop={BACK_HITSLOP}
|
||||
style={canGoBack ? styles.backIcon : styles.backIconWide}>
|
||||
{canGoBack ? (
|
||||
<FontAwesomeIcon size={18} icon="angle-left" style={{marginTop: 6}} />
|
||||
<FontAwesomeIcon
|
||||
size={18}
|
||||
icon="angle-left"
|
||||
style={{marginTop: 6, color: colors.black}}
|
||||
/>
|
||||
) : (
|
||||
<UserAvatar
|
||||
size={30}
|
||||
|
@ -138,6 +142,7 @@ const styles = StyleSheet.create({
|
|||
title: {
|
||||
fontSize: 21,
|
||||
fontWeight: '600',
|
||||
color: colors.black,
|
||||
},
|
||||
subtitle: {
|
||||
fontSize: 18,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue