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

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 <ActionSheet
ref={JRSTraInfoEXAcSR} ref={JRSTraInfoEXAcSR}
gestureEnabled gestureEnabled
CustomHeaderComponent={(props) => <></>} CustomHeaderComponent={<></>}
> >
<View <View
style={{ style={{

View File

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

View File

@ -24,7 +24,7 @@ export default function Sign(props) {
useInterval(() => { useInterval(() => {
if (currentStation.length == 1) { if (currentStation.length == 1) {
setNexPrePosition(0); setNexPrePosition(0);
return; return () => {};
} }
LayoutAnimation.easeInEaseOut(); LayoutAnimation.easeInEaseOut();
setNexPrePosition( setNexPrePosition(
@ -33,14 +33,12 @@ export default function Sign(props) {
}, 2000); }, 2000);
useEffect(() => { useEffect(() => {
LayoutAnimation.easeInEaseOut();
setNexPrePosition(0); setNexPrePosition(0);
getPreNextStation(currentStation[0]); getPreNextStation(currentStation[0]);
}, [currentStation]); }, [currentStation]);
useEffect(() => { useEffect(() => {
if (!currentStation[nexPrePosition]) return () => {}; if (!currentStation[nexPrePosition]) return () => {};
LayoutAnimation.easeInEaseOut();
getPreNextStation(currentStation[nexPrePosition]); getPreNextStation(currentStation[nexPrePosition]);
}, [nexPrePosition]); }, [nexPrePosition]);
const getPreNextStation = (now) => { const getPreNextStation = (now) => {