From bc464e837440f02ff24d4eaa94093a2b6302e0d3 Mon Sep 17 00:00:00 2001 From: harukin-DeskMini Date: Thu, 29 Sep 2022 23:49:06 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=82=92?= =?UTF-8?q?=E5=B7=A6=E4=B8=8A=E3=81=AB=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Apps.js | 2 +- .../StationDeteilView.js | 80 +++++++++++++++++++ components/settings.js | 2 +- trainbaseview.js | 1 + 4 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 components/ActionSheetComponents/StationDeteilView.js diff --git a/Apps.js b/Apps.js index 23f9349..c0420ed 100644 --- a/Apps.js +++ b/Apps.js @@ -894,7 +894,7 @@ modal_observer.observe(modal_content, { style={{ position: "absolute", top: Platform.OS == "ios" ? Constants.statusBarHeight : 0, - right: 10, + left: 10, width: 50, height: 50, backgroundColor: "#0099CC", diff --git a/components/ActionSheetComponents/StationDeteilView.js b/components/ActionSheetComponents/StationDeteilView.js new file mode 100644 index 0000000..541e641 --- /dev/null +++ b/components/ActionSheetComponents/StationDeteilView.js @@ -0,0 +1,80 @@ +export const StationDeteilView = (props) => { + return ( + {}} + > + + + + + + {currentStation && ( + Linking.openURL(currentStation[0].StationTimeTable)} + /> + )} + {currentStation && ( + + {!currentStation[0].JrHpUrl || ( + } + flex={1} + onPressButton={() => + Linking.openURL(currentStation[0].JrHpUrl) + } + > + web + + )} + {!currentStation[0].StationTimeTable || ( + } + flex={1} + onPressButton={() => + Linking.openURL(currentStation[0].StationTimeTable) + } + > + 時刻表 + + )} + {!currentStation[0].StationMap || ( + } + flex={1} + onPressButton={() => + Linking.openURL(currentStation[0].StationMap) + } + > + GoogleMap + + )} + + )} + + + + ); +}; diff --git a/components/settings.js b/components/settings.js index d628807..f020ed3 100644 --- a/components/settings.js +++ b/components/settings.js @@ -67,7 +67,7 @@ export default function Setting(props) { textAlignVertical: "center", }} > - 内部バージョン: 4.3.3 + 内部バージョン: 4.3.3.1 diff --git a/trainbaseview.js b/trainbaseview.js index 3f3e2e4..e8be5cd 100644 --- a/trainbaseview.js +++ b/trainbaseview.js @@ -14,6 +14,7 @@ export default function TrainBase({ route }) { console.log(info); return ( + {Platform.OS == "ios" && }