6.0でのデフォルト変更

This commit is contained in:
harukin-expo-dev-env 2025-01-22 13:23:32 +00:00
parent 837bd6eb4f
commit 2176b5511a
6 changed files with 6 additions and 10 deletions

View File

@ -26,7 +26,7 @@ export function MenuPage() {
})
.catch((e) => {
//6.0以降false
AS.setItem("startPage", "true");
AS.setItem("startPage", "false");
});
}, []);
useEffect(() => {

View File

@ -335,8 +335,7 @@ export const EachTrainInfoCore = ({
.then((d) => {
if (d) setTrainPositionSwitch(d);
})
//6.0で変更
.catch(() => AS.setItem("trainPositionSwitch", "false"));
.catch(() => AS.setItem("trainPositionSwitch", "true"));
}, []);
const openTrainInfo = (d) => {

View File

@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { View, Text, TouchableOpacity, ScrollView,Clipboard } from "react-native";
//import * as Clipboard from 'expo-clipboard';
import { View, Text, TouchableOpacity, ScrollView } from "react-native";
import * as Clipboard from 'expo-clipboard';
import { CheckBox } from "react-native-elements";
import { AS } from "../../storageControl";

View File

@ -16,7 +16,7 @@ import TouchableScale from "react-native-touchable-scale";
import { SwitchArea } from "../atom/SwitchArea";
import { useNotification } from "../../stateBox/useNotifications";
const versionCode = "5.6.0.2";
const versionCode = "6.0";
export const SettingTopPage = ({
testNFC,

View File

@ -6,9 +6,7 @@ import React, {
FC,
useRef,
} from "react";
// 6.0でライブラリ変更
import { Platform, Clipboard } from "react-native";
// 6.0でライブラリ更新、tsの型定義が変わった
import { Platform } from "react-native";
import * as Notifications from "expo-notifications";
import * as Device from "expo-device";
import Constants from "expo-constants";

View File

@ -74,7 +74,6 @@ export const TrainMenuProvider = ({ children }) => {
//列車アイコンスイッチ
ASCore({ k: "iconSwitch", s: setIconSetting, d: "true", u: true });
//地図スイッチ
//6.0.0以降true
ASCore({ k: "mapSwitch", s: setMapSwitch, d: "false", u: true });
//駅メニュースイッチ
ASCore({ k: "stationSwitch", s: setStationMenu, d: "true", u: true });