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