各種挙動が不完全な部分を修正

This commit is contained in:
harukin-DeskMini 2023-01-28 07:16:50 +09:00
parent 052c121179
commit 337179b4c4
3 changed files with 3 additions and 5 deletions

View File

@ -22,7 +22,7 @@ export const JRSTraInfo = (props) => {
<ActionSheet
ref={JRSTraInfoEXAcSR}
gestureEnabled
CustomHeaderComponent={(props) => <></>}
CustomHeaderComponent={<></>}
>
<View
style={{

View File

@ -13,7 +13,7 @@ export const StationDeteilView = (props) => {
<ActionSheet
ref={StationBoardAcSR}
gestureEnabled
CustomHeaderComponent={(props) => <></>}
CustomHeaderComponent={<></>}
>
<View
key={currentStation}

View File

@ -24,7 +24,7 @@ export default function Sign(props) {
useInterval(() => {
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) => {