6.0 update init
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
} from "react-native";
|
||||
import * as Updates from "expo-updates";
|
||||
import { useWindowDimensions } from "react-native";
|
||||
import { useNavigation } from "@react-navigation/native";
|
||||
import { ListItem } from "native-base";
|
||||
import { SwitchArea } from "../atom/SwitchArea";
|
||||
import { useNotification } from "../../stateBox/useNotifications";
|
||||
@@ -17,7 +18,6 @@ import { useNotification } from "../../stateBox/useNotifications";
|
||||
const versionCode = "5.6.0.2";
|
||||
|
||||
export const SettingTopPage = ({
|
||||
navigate,
|
||||
testNFC,
|
||||
startPage,
|
||||
setStartPage,
|
||||
@@ -25,12 +25,13 @@ export const SettingTopPage = ({
|
||||
}) => {
|
||||
const { width } = useWindowDimensions();
|
||||
const { expoPushToken } = useNotification();
|
||||
const navigation = useNavigation();
|
||||
return (
|
||||
<View style={{ height: "100%", backgroundColor: "#0099CC" }}>
|
||||
<View style={{ backgroundColor: "#0099CC", flexDirection: "row" }}>
|
||||
<View style={{ flex: 1 }}>
|
||||
<TouchableOpacity
|
||||
onPress={() => navigate("menu")}
|
||||
onPress={() => navigation.goBack()}
|
||||
style={{
|
||||
flexDirection: "column",
|
||||
flex: 1,
|
||||
@@ -120,7 +121,7 @@ export const SettingTopPage = ({
|
||||
/>
|
||||
<ListItem
|
||||
style={{ flexDirection: "row" }}
|
||||
onPress={() => navigate("FavoriteSettings")}
|
||||
onPress={() => navigation.navigate("setting",{screen:"FavoriteSettings"})}
|
||||
>
|
||||
<Text
|
||||
style={{
|
||||
@@ -148,7 +149,7 @@ export const SettingTopPage = ({
|
||||
</ListItem>
|
||||
<ListItem
|
||||
style={{ flexDirection: "row" }}
|
||||
onPress={() => navigate("NotificationSettings")}
|
||||
onPress={() => navigation.navigate("setting",{screen:"NotificationSettings"})}
|
||||
disabled={expoPushToken == ""}
|
||||
>
|
||||
<Text
|
||||
@@ -177,7 +178,7 @@ export const SettingTopPage = ({
|
||||
</ListItem>
|
||||
<ListItem
|
||||
style={{ flexDirection: "row" }}
|
||||
onPress={() => navigate("LayoutSettings")}
|
||||
onPress={() => navigation.navigate("setting",{screen:"LayoutSettings"})}
|
||||
>
|
||||
<Text
|
||||
style={{
|
||||
@@ -206,7 +207,7 @@ export const SettingTopPage = ({
|
||||
{Platform.OS === "android" ? (
|
||||
<ListItem
|
||||
style={{ flexDirection: "row" }}
|
||||
onPress={() => navigate("WidgetSettings")}
|
||||
onPress={() => navigation.navigate("setting",{screen:"WidgetSettings"})}
|
||||
>
|
||||
<Text
|
||||
style={{
|
||||
|
Reference in New Issue
Block a user