From 337179b4c4877ecba12af27a1ba67b080114db3d Mon Sep 17 00:00:00 2001 From: harukin-DeskMini Date: Sat, 28 Jan 2023 07:16:50 +0900 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E7=A8=AE=E6=8C=99=E5=8B=95=E3=81=8C?= =?UTF-8?q?=E4=B8=8D=E5=AE=8C=E5=85=A8=E3=81=AA=E9=83=A8=E5=88=86=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ActionSheetComponents/JRSTraInfo.js | 2 +- components/ActionSheetComponents/StationDeteilView.js | 2 +- components/駅名表/Sign.js | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/ActionSheetComponents/JRSTraInfo.js b/components/ActionSheetComponents/JRSTraInfo.js index 1d30174..9fb0d7e 100644 --- a/components/ActionSheetComponents/JRSTraInfo.js +++ b/components/ActionSheetComponents/JRSTraInfo.js @@ -22,7 +22,7 @@ export const JRSTraInfo = (props) => { <>} + CustomHeaderComponent={<>} > { <>} + CustomHeaderComponent={<>} > { if (currentStation.length == 1) { setNexPrePosition(0); - return; + return () => {}; } LayoutAnimation.easeInEaseOut(); setNexPrePosition( @@ -33,14 +33,12 @@ export default function Sign(props) { }, 2000); useEffect(() => { - LayoutAnimation.easeInEaseOut(); setNexPrePosition(0); getPreNextStation(currentStation[0]); }, [currentStation]); useEffect(() => { if (!currentStation[nexPrePosition]) return () => {}; - LayoutAnimation.easeInEaseOut(); getPreNextStation(currentStation[nexPrePosition]); }, [nexPrePosition]); const getPreNextStation = (now) => {