駅名標読み込みにタイミングがずれていたバグ、ボタンが一部表示されない問題を修正
This commit is contained in:
parent
3ca91f402e
commit
f72ac1d97b
2
Apps.js
2
Apps.js
@ -248,7 +248,6 @@ export default function Apps({ navigation, webview, stationData }) {
|
||||
return pre;
|
||||
}, []);
|
||||
if (returnDataBase.length) {
|
||||
sleep(25, function () {
|
||||
const payload = {
|
||||
currentStation: returnDataBase,
|
||||
originalStationList: originalStationList,
|
||||
@ -265,7 +264,6 @@ export default function Apps({ navigation, webview, stationData }) {
|
||||
SheetManager.show("StationDetailView", {
|
||||
payload,
|
||||
});
|
||||
});
|
||||
} else {
|
||||
SheetManager.hide("StationDetailView");
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ export default function TrainBase({ route, navigation }) {
|
||||
setSupportMultipleWindows={false}
|
||||
onMessage={(event) => {}}
|
||||
/>
|
||||
{from == "LED" && (
|
||||
{(from == "LED" || from == "AllTrainDiagramView") && (
|
||||
<TouchableOpacity
|
||||
style={{
|
||||
padding: 10,
|
||||
@ -47,7 +47,9 @@ export default function TrainBase({ route, navigation }) {
|
||||
borderRadius: 5,
|
||||
alignItems: "center",
|
||||
}}
|
||||
onPress={() => navigate("menu")}
|
||||
onPress={() =>
|
||||
navigate(from == "AllTrainDiagramView" ? "AllTrainIDList" : "menu")
|
||||
}
|
||||
>
|
||||
<View style={{ flex: 1 }} />
|
||||
<MaterialCommunityIcons name="close" color="black" size={30} />
|
||||
|
Loading…
Reference in New Issue
Block a user