各種挙動が不完全な部分を修正
This commit is contained in:
parent
052c121179
commit
337179b4c4
@ -22,7 +22,7 @@ export const JRSTraInfo = (props) => {
|
||||
<ActionSheet
|
||||
ref={JRSTraInfoEXAcSR}
|
||||
gestureEnabled
|
||||
CustomHeaderComponent={(props) => <></>}
|
||||
CustomHeaderComponent={<></>}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
|
@ -13,7 +13,7 @@ export const StationDeteilView = (props) => {
|
||||
<ActionSheet
|
||||
ref={StationBoardAcSR}
|
||||
gestureEnabled
|
||||
CustomHeaderComponent={(props) => <></>}
|
||||
CustomHeaderComponent={<></>}
|
||||
>
|
||||
<View
|
||||
key={currentStation}
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user