AsyncStorage→ReactNativeStorageへの変更

This commit is contained in:
harukin-DeskMini
2023-01-28 08:49:19 +09:00
parent 29963ab876
commit 1a1227dfeb
6 changed files with 61 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ import React from "react";
import { View, Text, TouchableOpacity } from "react-native";
import { WebView } from "react-native-webview";
import StatusbarDetect from "../StatusbarDetect";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { AS } from "../storageControl";
import { news } from "../config/newsUpdate";
var Status = StatusbarDetect();
export default function News(props) {
@@ -30,7 +30,7 @@ export default function News(props) {
alignItems: "center",
}}
onPress={() => {
AsyncStorage.setItem("status", news);
AS.setItem("status", news);
navigate("Apps");
}}
>