From 1ed53abcf2005740b513e2a37365c9f7a70b81f4 Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Fri, 8 Mar 2024 03:12:27 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BB=8A=E7=8F=BE=E5=9C=A8=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E3=81=8C=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActionSheetComponents/EachTrainInfo/EachStopList.js | 5 ++++- components/ActionSheetComponents/EachTrainInfoCore.js | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/components/ActionSheetComponents/EachTrainInfo/EachStopList.js b/components/ActionSheetComponents/EachTrainInfo/EachStopList.js index 3ad5823..a2813b3 100644 --- a/components/ActionSheetComponents/EachTrainInfo/EachStopList.js +++ b/components/ActionSheetComponents/EachTrainInfo/EachStopList.js @@ -47,7 +47,10 @@ export const EachStopList = ({ return ( openStationACFromEachTrainInfo && openStationACFromEachTrainInfo(station)} + onPress={() => + openStationACFromEachTrainInfo && + openStationACFromEachTrainInfo(station) + } key={station} > diff --git a/components/ActionSheetComponents/EachTrainInfoCore.js b/components/ActionSheetComponents/EachTrainInfoCore.js index 756c047..8df6e43 100644 --- a/components/ActionSheetComponents/EachTrainInfoCore.js +++ b/components/ActionSheetComponents/EachTrainInfoCore.js @@ -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);