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