style整理
This commit is contained in:
parent
e977bb29f3
commit
833d93cf12
@ -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={{
|
||||||
|
Loading…
Reference in New Issue
Block a user