起動画面設定機能を追加:6.0以降の変更点のメモを追加

This commit is contained in:
harukin-expo-dev-env
2025-01-05 17:40:16 +00:00
parent 08d105588f
commit da0e8428d9
7 changed files with 30 additions and 19 deletions

View File

@@ -11,10 +11,11 @@ import {
import * as Updates from "expo-updates";
import { useWindowDimensions } from "react-native";
import { ListItem } from "native-base";
import { SwitchArea } from "../atom/SwitchArea";
const versionCode = "5.5.1";
export const SettingTopPage = ({ navigate, testNFC, updateAndReload }) => {
export const SettingTopPage = ({ navigate, testNFC,startPage,setStartPage, updateAndReload }) => {
const { width } = useWindowDimensions();
return (
<View style={{ height: "100%", backgroundColor: "#0099CC" }}>
@@ -100,10 +101,19 @@ export const SettingTopPage = ({ navigate, testNFC, updateAndReload }) => {
</View>
<View style={{ flex: 1, borderTopWidth: 1, borderColor: "gray" }}>
<ListItem
<SwitchArea
str="起動時に表示する画面"
bool={startPage}
setBool={setStartPage}
falseImage={require("../../assets/configuration/showSetting0.jpg")}
trueImage={require("../../assets/configuration/showSetting1.jpg")}
falseText={"リンクメニュー"}
trueText={"列車位置情報"}
/><ListItem
style={{ flexDirection: "row" }}
onPress={() => navigate("FavoriteSettings")}
>
<Text
style={{
fontSize: 20,