駅名標読み込みにタイミングがずれていたバグ、ボタンが一部表示されない問題を修正

This commit is contained in:
harukin-OneMix4 2024-01-02 00:37:52 +09:00
parent 3ca91f402e
commit f72ac1d97b
2 changed files with 19 additions and 19 deletions

View File

@ -248,7 +248,6 @@ export default function Apps({ navigation, webview, stationData }) {
return pre; return pre;
}, []); }, []);
if (returnDataBase.length) { if (returnDataBase.length) {
sleep(25, function () {
const payload = { const payload = {
currentStation: returnDataBase, currentStation: returnDataBase,
originalStationList: originalStationList, originalStationList: originalStationList,
@ -265,7 +264,6 @@ export default function Apps({ navigation, webview, stationData }) {
SheetManager.show("StationDetailView", { SheetManager.show("StationDetailView", {
payload, payload,
}); });
});
} else { } else {
SheetManager.hide("StationDetailView"); SheetManager.hide("StationDetailView");
} }

View File

@ -36,7 +36,7 @@ export default function TrainBase({ route, navigation }) {
setSupportMultipleWindows={false} setSupportMultipleWindows={false}
onMessage={(event) => {}} onMessage={(event) => {}}
/> />
{from == "LED" && ( {(from == "LED" || from == "AllTrainDiagramView") && (
<TouchableOpacity <TouchableOpacity
style={{ style={{
padding: 10, padding: 10,
@ -47,7 +47,9 @@ export default function TrainBase({ route, navigation }) {
borderRadius: 5, borderRadius: 5,
alignItems: "center", alignItems: "center",
}} }}
onPress={() => navigate("menu")} onPress={() =>
navigate(from == "AllTrainDiagramView" ? "AllTrainIDList" : "menu")
}
> >
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
<MaterialCommunityIcons name="close" color="black" size={30} /> <MaterialCommunityIcons name="close" color="black" size={30} />