diff --git a/Apps.js b/Apps.js index 74be89e..a54ff8f 100644 --- a/Apps.js +++ b/Apps.js @@ -338,16 +338,108 @@ export default function Apps({ navigation, webview, stationData }) { top={Platform.OS == "ios" ? Constants.statusBarHeight : 0} /> )} - webview.current.reload()} - top={Platform.OS == "ios" ? Constants.statusBarHeight : 0} - right={isLandscape && trainInfo.trainNum ? (width / 100) * 40 : 0} - LoadError={LoadError} - /> + {mapSwitch == "true" ? ( + Updates.reloadAsync()} + top={Platform.OS == "ios" ? Constants.statusBarHeight : 0} + right={isLandscape && trainInfo.trainNum ? (width / 100) * 40 : 0} + LoadError={LoadError} + /> + ) : ( + + )} ); } +const NewMenu = ({ webview, LoadError }) => { + const { width } = useWindowDimensions(); + return ( + + { + webview.current?.injectJavaScript(`AccordionClassEvent()`); + }} + > + <> + + + + + + + メニュー + + + + + Updates.reloadAsync()} + style={{ + width: 54, + height: 54, + backgroundColor: LoadError ? "red" : "#0099CC", + borderColor: "white", + borderStyle: "solid", + borderWidth: 1, + alignContent: "center", + alignSelf: "center", + alignItems: "center", + }} + > + + + + + + ); +}; const MapsButton = ({ onPress, top, mapSwitch }) => { const styles = { touch: { diff --git a/components/settings.js b/components/settings.js index 03b62da..ddbbc7d 100644 --- a/components/settings.js +++ b/components/settings.js @@ -174,7 +174,7 @@ export default function Setting(props) { textAlignVertical: "center", }} > - 内部バージョン: 5.0.1 + 内部バージョン: 5.0.2