From 2176b5511a5bd1b7247c52226d3daff61d8dde46 Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Wed, 22 Jan 2025 13:23:32 +0000 Subject: [PATCH] =?UTF-8?q?6.0=E3=81=A7=E3=81=AE=E3=83=87=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AB=E3=83=88=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MenuPage.js | 2 +- components/ActionSheetComponents/EachTrainInfoCore.js | 3 +-- components/Settings/NotificationSettings.js | 4 ++-- components/Settings/SettingTopPage.js | 2 +- stateBox/useNotifications.tsx | 4 +--- stateBox/useTrainMenu.js | 1 - 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/MenuPage.js b/MenuPage.js index 9668b95..95cabac 100644 --- a/MenuPage.js +++ b/MenuPage.js @@ -26,7 +26,7 @@ export function MenuPage() { }) .catch((e) => { //6.0以降false - AS.setItem("startPage", "true"); + AS.setItem("startPage", "false"); }); }, []); useEffect(() => { diff --git a/components/ActionSheetComponents/EachTrainInfoCore.js b/components/ActionSheetComponents/EachTrainInfoCore.js index bc639e9..3a2cf58 100644 --- a/components/ActionSheetComponents/EachTrainInfoCore.js +++ b/components/ActionSheetComponents/EachTrainInfoCore.js @@ -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) => { diff --git a/components/Settings/NotificationSettings.js b/components/Settings/NotificationSettings.js index 0cf0a15..8789347 100644 --- a/components/Settings/NotificationSettings.js +++ b/components/Settings/NotificationSettings.js @@ -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"; diff --git a/components/Settings/SettingTopPage.js b/components/Settings/SettingTopPage.js index 4b9776a..174e285 100644 --- a/components/Settings/SettingTopPage.js +++ b/components/Settings/SettingTopPage.js @@ -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, diff --git a/stateBox/useNotifications.tsx b/stateBox/useNotifications.tsx index 294ea60..71e41f4 100644 --- a/stateBox/useNotifications.tsx +++ b/stateBox/useNotifications.tsx @@ -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"; diff --git a/stateBox/useTrainMenu.js b/stateBox/useTrainMenu.js index dc7b81e..8fcf424 100644 --- a/stateBox/useTrainMenu.js +++ b/stateBox/useTrainMenu.js @@ -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 });