Minor UI improvements.
This commit is contained in:
@@ -7,6 +7,7 @@ export default function DataLabelComponent({
|
||||
label,
|
||||
content,
|
||||
dateTime,
|
||||
noTextWrap,
|
||||
...restProps
|
||||
}) {
|
||||
let theContent = content;
|
||||
@@ -19,7 +20,8 @@ export default function DataLabelComponent({
|
||||
return (
|
||||
<View key={key} {...rest} style={{ margin: 4, ...restProps.style }}>
|
||||
<Text style={{ fontWeight: "bold" }}>{label}</Text>
|
||||
<Text>{theContent}</Text>
|
||||
|
||||
{noTextWrap ? content : <Text>{theContent}</Text>}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user