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

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;
}, []);
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");
}

View File

@ -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} />