クラッシュバグ修正
This commit is contained in:
parent
b9a31f413b
commit
c30d593838
1
Apps.js
1
Apps.js
@ -315,6 +315,7 @@ export default function Apps({ stationData }) {
|
|||||||
openStationACFromEachTrainInfo,
|
openStationACFromEachTrainInfo,
|
||||||
from: "Train",
|
from: "Train",
|
||||||
setTrainInfo,
|
setTrainInfo,
|
||||||
|
navigate,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
@ -7,6 +7,7 @@ export const LongHeader = ({
|
|||||||
currentPosition,
|
currentPosition,
|
||||||
nearTrainIDList,
|
nearTrainIDList,
|
||||||
openTrainInfo,
|
openTrainInfo,
|
||||||
|
navigate,
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<ScrollView
|
<ScrollView
|
||||||
@ -27,6 +28,7 @@ export const LongHeader = ({
|
|||||||
currentPosition={currentPosition}
|
currentPosition={currentPosition}
|
||||||
nearTrainIDList={nearTrainIDList}
|
nearTrainIDList={nearTrainIDList}
|
||||||
openTrainInfo={openTrainInfo}
|
openTrainInfo={openTrainInfo}
|
||||||
|
navigate={navigate}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
|
@ -7,6 +7,7 @@ export const ShortHeader = ({
|
|||||||
currentPosition,
|
currentPosition,
|
||||||
nearTrainIDList,
|
nearTrainIDList,
|
||||||
openTrainInfo,
|
openTrainInfo,
|
||||||
|
navigate,
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<ScrollView
|
<ScrollView
|
||||||
@ -29,6 +30,7 @@ export const ShortHeader = ({
|
|||||||
currentPosition={currentPosition}
|
currentPosition={currentPosition}
|
||||||
nearTrainIDList={nearTrainIDList}
|
nearTrainIDList={nearTrainIDList}
|
||||||
openTrainInfo={openTrainInfo}
|
openTrainInfo={openTrainInfo}
|
||||||
|
navigate={navigate}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
|
@ -13,8 +13,8 @@ export const TrainDataView = ({
|
|||||||
nearTrainIDList,
|
nearTrainIDList,
|
||||||
openTrainInfo,
|
openTrainInfo,
|
||||||
mode = 0,
|
mode = 0,
|
||||||
|
navigate,
|
||||||
}) => {
|
}) => {
|
||||||
const { navigate } = useNavigation();
|
|
||||||
const { width, height } = useWindowDimensions();
|
const { width, height } = useWindowDimensions();
|
||||||
const { isLandscape } = useDeviceOrientationChange();
|
const { isLandscape } = useDeviceOrientationChange();
|
||||||
const { webview, getCurrentTrain } = useCurrentTrain();
|
const { webview, getCurrentTrain } = useCurrentTrain();
|
||||||
|
@ -41,9 +41,9 @@ export const EachTrainInfoCore = ({
|
|||||||
openStationACFromEachTrainInfo,
|
openStationACFromEachTrainInfo,
|
||||||
from,
|
from,
|
||||||
setTrainInfo,
|
setTrainInfo,
|
||||||
|
navigate,
|
||||||
}) => {
|
}) => {
|
||||||
// const [actionSheetHorizonalScroll, setActionSheetHorizonalScroll] = useState(false);
|
// const [actionSheetHorizonalScroll, setActionSheetHorizonalScroll] = useState(false);
|
||||||
const { navigate } = useNavigation();
|
|
||||||
const { currentTrain } = useCurrentTrain();
|
const { currentTrain } = useCurrentTrain();
|
||||||
const [currentTrainData, setCurrentTrainData] = useState();
|
const [currentTrainData, setCurrentTrainData] = useState();
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ export const EachTrainInfoCore = ({
|
|||||||
const trainName = useMemo(() => {
|
const trainName = useMemo(() => {
|
||||||
if (!data.limited) return "";
|
if (!data.limited) return "";
|
||||||
const limitedArray = data.limited.split(":");
|
const limitedArray = data.limited.split(":");
|
||||||
const type = getTrainType(limitedArray[0]);
|
const type = getType(limitedArray[0]);
|
||||||
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case limitedArray[1]:
|
case limitedArray[1]:
|
||||||
@ -309,6 +309,7 @@ export const EachTrainInfoCore = ({
|
|||||||
currentPosition={currentPosition}
|
currentPosition={currentPosition}
|
||||||
nearTrainIDList={nearTrainIDList}
|
nearTrainIDList={nearTrainIDList}
|
||||||
openTrainInfo={openTrainInfo}
|
openTrainInfo={openTrainInfo}
|
||||||
|
navigate={navigate}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
longHeader={
|
longHeader={
|
||||||
@ -317,6 +318,7 @@ export const EachTrainInfoCore = ({
|
|||||||
currentPosition={currentPosition}
|
currentPosition={currentPosition}
|
||||||
nearTrainIDList={nearTrainIDList}
|
nearTrainIDList={nearTrainIDList}
|
||||||
openTrainInfo={openTrainInfo}
|
openTrainInfo={openTrainInfo}
|
||||||
|
navigate={navigate}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
topStickyContent={
|
topStickyContent={
|
||||||
|
Loading…
Reference in New Issue
Block a user