Merge commit '261ff58e843671d44db0c85e9fbd8f2717838b9e' into develop
This commit is contained in:
commit
66e3fb3d75
3
Apps.js
3
Apps.js
@ -9,6 +9,7 @@ import {
|
||||
import { WebView } from "react-native-webview";
|
||||
import Constants from "expo-constants";
|
||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
||||
import { news } from "./config/newsUpdate";
|
||||
/*
|
||||
import StatusbarDetect from './StatusbarDetect';
|
||||
var Status = StatusbarDetect(); */
|
||||
@ -799,7 +800,7 @@ modal_observer.observe(modal_content, {
|
||||
useEffect(() => {
|
||||
AsyncStorage.getItem("status")
|
||||
.then((d) => {
|
||||
if (d != "2022/06/11") {
|
||||
if (d != news) {
|
||||
navigate("news");
|
||||
}
|
||||
})
|
||||
|
@ -3,6 +3,7 @@ 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 { news } from "../config/newsUpdate";
|
||||
var Status = StatusbarDetect();
|
||||
export default function News(props) {
|
||||
const {
|
||||
@ -13,7 +14,7 @@ export default function News(props) {
|
||||
<WebView
|
||||
useWebKit={true}
|
||||
source={{
|
||||
uri: "https://nexcloud.haruk.in/sites/press-harukin/JRShikokuApps/2022-6-11",
|
||||
uri: `https://nexcloud.haruk.in/sites/press-harukin/JRShikokuApps/${news}`,
|
||||
}}
|
||||
mixedContentMode={"compatibility"}
|
||||
javaScriptEnabled={true}
|
||||
@ -29,7 +30,7 @@ export default function News(props) {
|
||||
alignItems: "center",
|
||||
}}
|
||||
onPress={() => {
|
||||
AsyncStorage.setItem("status", "2022/06/11");
|
||||
AsyncStorage.setItem("status", news);
|
||||
navigate("Apps");
|
||||
}}
|
||||
>
|
||||
|
1
config/newsUpdate.js
Normal file
1
config/newsUpdate.js
Normal file
@ -0,0 +1 @@
|
||||
export const news = "2022-6-11";
|
Loading…
Reference in New Issue
Block a user