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) => {