minor fix
This commit is contained in:
committed by
Paul Frazee
parent
b1a058d098
commit
54f05bfcf6
@@ -28,9 +28,9 @@ export function RichText({
|
|||||||
fontSize: 26,
|
fontSize: 26,
|
||||||
lineHeight: 30,
|
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 = []
|
if (!style) style = []
|
||||||
else if (!Array.isArray(style)) style = [style]
|
else if (!Array.isArray(style)) style = [style]
|
||||||
@@ -65,7 +65,7 @@ export function RichText({
|
|||||||
key++
|
key++
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Text style={[style]} numberOfLines={numberOfLines}>
|
<Text style={style} numberOfLines={numberOfLines}>
|
||||||
{els}
|
{els}
|
||||||
</Text>
|
</Text>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user