暫定的に動作するように変更

This commit is contained in:
harukin-expo-dev-env
2025-09-01 11:55:40 +00:00
parent eda1d10c0c
commit ac11117fd6
3 changed files with 60 additions and 41 deletions

View File

@@ -4,6 +4,7 @@ import {
Platform,
useWindowDimensions,
LayoutAnimation,
Text,
} from "react-native";
import Constants from "expo-constants";
import * as Updates from "expo-updates";
@@ -30,7 +31,7 @@ var Status = StatusbarDetect(); */
const top = Platform.OS == "ios" ? Constants.statusBarHeight : 0;
export default function Apps() {
const { webview } = useCurrentTrain();
const { webview, fixedPosition, setFixedPosition } = useCurrentTrain();
const { height, width } = useWindowDimensions();
const { navigate } = useNavigation();
const { isLandscape } = useDeviceOrientationChange();
@@ -125,6 +126,16 @@ export default function Apps() {
}}
/>
)}
{fixedPosition.type && (
<Text
onPress={() => {
setFixedPosition({ type: null, value: null });
}}
>
{fixedPosition.type}: {fixedPosition.value}
</Text>
)}
{mapSwitch == "true" ? (
<ReloadButton
onPress={() => Updates.reloadAsync()}