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 }) => ( const DependTime = ({ time }) => (
<View style={{ flex: 3 }}> <View style={{ flex: 3 }}>
<Text <Text style={{ ...descriptionStyle, color: "white" }}>{time}</Text>
style={{
fontSize: parseInt("16%"),
color: "white",
fontWeight: "bold",
}}
>
{time}
</Text>
</View> </View>
); );
const StatusAndDelay = ({ trainDelayStatus }) => { const StatusAndDelay = ({ trainDelayStatus }) => {
return ( return (
<View style={{ flex: 4 }}> <View style={{ flex: 4 }}>
<Text <Text style={{ ...descriptionStyle, color: "white", paddingLeft: 1 }}>
style={{
fontSize: parseInt("16%"),
color: "white",
fontWeight: "bold",
paddingLeft: 1,
}}
>
{trainDelayStatus} {trainDelayStatus}
</Text> </Text>
</View> </View>
); );
}; };
const descriptionStyle = {
fontSize: parseInt("16%"),
fontWeight: "bold",
};
const Description = ({ info, numberOfLines = 0, onClick }) => ( const Description = ({ info, numberOfLines = 0, onClick }) => (
<TouchableOpacity <TouchableOpacity
style={{ style={{