列車現在位置が表示されていなかった問題を修正
This commit is contained in:
@@ -47,7 +47,10 @@ export const EachStopList = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<TouchableWithoutFeedback
|
<TouchableWithoutFeedback
|
||||||
onPress={() =>openStationACFromEachTrainInfo && openStationACFromEachTrainInfo(station)}
|
onPress={() =>
|
||||||
|
openStationACFromEachTrainInfo &&
|
||||||
|
openStationACFromEachTrainInfo(station)
|
||||||
|
}
|
||||||
key={station}
|
key={station}
|
||||||
>
|
>
|
||||||
<View style={{ flexDirection: "row", backgroundColor: "white" }}>
|
<View style={{ flexDirection: "row", backgroundColor: "white" }}>
|
||||||
|
@@ -87,10 +87,6 @@ export const EachTrainInfoCore = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
// 使用例
|
// 使用例
|
||||||
const points =
|
|
||||||
trainPositionSwitch == "true"
|
|
||||||
? findReversalPoints(currentPosition, stopStationIDList)
|
|
||||||
: [];
|
|
||||||
const stopStationIDList = trainData.map((i, index) => {
|
const stopStationIDList = trainData.map((i, index) => {
|
||||||
const [station, se, time] = i.split(",");
|
const [station, se, time] = i.split(",");
|
||||||
const Stations = stationList.map((a) =>
|
const Stations = stationList.map((a) =>
|
||||||
@@ -105,6 +101,10 @@ export const EachTrainInfoCore = ({
|
|||||||
.map((d) => d.StationNumber);
|
.map((d) => d.StationNumber);
|
||||||
return StationNumbers[0];
|
return StationNumbers[0];
|
||||||
});
|
});
|
||||||
|
const points =
|
||||||
|
trainPositionSwitch == "true"
|
||||||
|
? findReversalPoints(currentPosition, stopStationIDList)
|
||||||
|
: [];
|
||||||
|
|
||||||
const { height, width } = useWindowDimensions();
|
const { height, width } = useWindowDimensions();
|
||||||
const [isLandscape, setIsLandscape] = useState(false);
|
const [isLandscape, setIsLandscape] = useState(false);
|
||||||
|
Reference in New Issue
Block a user