style整理

This commit is contained in:
harukin-expo-dev-env 2024-08-19 12:42:07 +00:00
parent e977bb29f3
commit 833d93cf12

View File

@ -476,41 +476,27 @@ const LastStation = ({ lastStation }) => {
);
};
const descriptionStyle = {
fontSize: parseInt("16%"),
fontWeight: "bold",
};
const DependTime = ({ time }) => (
<View style={{ flex: 3 }}>
<Text
style={{
fontSize: parseInt("16%"),
color: "white",
fontWeight: "bold",
}}
>
{time}
</Text>
<Text style={{ ...descriptionStyle, color: "white" }}>{time}</Text>
</View>
);
const StatusAndDelay = ({ trainDelayStatus }) => {
return (
<View style={{ flex: 4 }}>
<Text
style={{
fontSize: parseInt("16%"),
color: "white",
fontWeight: "bold",
paddingLeft: 1,
}}
>
<Text style={{ ...descriptionStyle, color: "white", paddingLeft: 1 }}>
{trainDelayStatus}
</Text>
</View>
);
};
const descriptionStyle = {
fontSize: parseInt("16%"),
fontWeight: "bold",
};
const Description = ({ info, numberOfLines = 0, onClick }) => (
<TouchableOpacity
style={{