遅延情報付与機能を実装
This commit is contained in:
parent
480bcbfcd3
commit
b1ecbb1cfe
3
Apps.js
3
Apps.js
@ -41,6 +41,7 @@ export default function Apps({
|
||||
const [trainInfo, setTrainInfo] = useState({
|
||||
trainNum: undefined,
|
||||
limited: undefined,
|
||||
delay: undefined,
|
||||
});
|
||||
|
||||
//駅情報画面用
|
||||
@ -150,7 +151,7 @@ export default function Apps({
|
||||
case "ShowTrainTimeInfo": {
|
||||
const { trainNum, limited } = dataSet;
|
||||
//alert(trainNum, limited);
|
||||
setTrainInfo({ trainNum, limited });
|
||||
setTrainInfo({ trainNum, limited, delay: undefined }); //遅延情報は未実装
|
||||
EachTrainInfoAsSR.current?.show();
|
||||
return;
|
||||
}
|
||||
|
@ -138,6 +138,7 @@ export const EachTrainInfo = ({
|
||||
}}
|
||||
>
|
||||
<View style={{ alignItems: "center" }}>
|
||||
<Text>{data.delay}</Text>
|
||||
{/* <LottieView
|
||||
autoPlay
|
||||
loop
|
||||
|
@ -301,6 +301,9 @@ const EachData = ({
|
||||
limited: `${getTrainType(train.type).data}:${
|
||||
train.trainName
|
||||
}${TrainNumber}`,
|
||||
delay: getTrainDelayStatus(
|
||||
currentTrain.filter((t) => t.num == d.train)[0]
|
||||
),
|
||||
});
|
||||
EachTrainInfoAsSR.current?.show();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user