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