From 0ae9d597587e4cfaeb2e4acf8eff8b2c467d0eee Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Sun, 30 Mar 2025 02:47:02 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=AE=B6=E3=83=A2=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=81=A7=E5=88=97=E8=BB=8A=E4=BD=8D=E7=BD=AE=E3=81=AB=E7=A7=BB?= =?UTF-8?q?=E5=8B=95=E3=81=97=E3=81=9F=E6=99=82=E3=81=AB=E5=BC=B7=E5=88=B6?= =?UTF-8?q?=E7=9A=84=E3=81=AB=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=8C?= =?UTF-8?q?=E5=B1=95=E9=96=8B=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Top.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Top.js b/Top.js index fd155fa..ff94cf1 100644 --- a/Top.js +++ b/Top.js @@ -32,20 +32,12 @@ export const Top = () => { const goToTrainMenu = () => { if (Platform.OS === "web") { Linking.openURL("https://train.jr-shikoku.co.jp/"); - setTimeout(() => { - navigate("topMenu", { screen: "menu" }); - }, 100); - + setTimeout(() => navigate("topMenu", { screen: "menu" }), 100); return; } - if (!isFocused()) { - navigate("positions", { screen: "Apps" }); - } - else if (mapSwitch == "true") { - navigate("positions", { screen: "trainMenu" }); - } else { - webview.current?.injectJavaScript(`AccordionClassEvent()`); - } + if (!isFocused()) navigate("positions", { screen: "Apps" }); + else if (mapSwitch == "true") navigate("positions", { screen: "trainMenu" }); + else webview.current?.injectJavaScript(`AccordionClassEvent()`); return; };