添加隐私协议
This commit is contained in:
115
app/privacy.tsx
Normal file
115
app/privacy.tsx
Normal file
@@ -0,0 +1,115 @@
|
||||
import { Stack } from "expo-router";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { ScrollView, StyleSheet, View } from "react-native";
|
||||
|
||||
import { ThemedText } from "@/components/themed-text";
|
||||
import { useTheme } from "@/context/ThemeContext";
|
||||
|
||||
export default function PrivacyScreen() {
|
||||
const { theme } = useTheme();
|
||||
const { t } = useTranslation();
|
||||
const isDark = theme === "dark";
|
||||
|
||||
return (
|
||||
<>
|
||||
<Stack.Screen
|
||||
options={{
|
||||
title: t("privacy.title"),
|
||||
headerShown: true,
|
||||
headerStyle: {
|
||||
backgroundColor: isDark ? "#000" : "#f2f2f7",
|
||||
},
|
||||
headerTintColor: isDark ? "#FFFFFF" : "#000000",
|
||||
headerShadowVisible: false,
|
||||
presentation: "card",
|
||||
animation: "slide_from_right",
|
||||
contentStyle: { backgroundColor: isDark ? "#000" : "#f2f2f7" },
|
||||
}}
|
||||
/>
|
||||
<ScrollView
|
||||
style={[
|
||||
styles.container,
|
||||
{ backgroundColor: isDark ? "#000" : "#f2f2f7" },
|
||||
]}
|
||||
>
|
||||
<View
|
||||
style={[
|
||||
styles.content,
|
||||
{ backgroundColor: isDark ? "#1c1c1e" : "#fff" },
|
||||
]}
|
||||
>
|
||||
<ThemedText style={styles.title}>{t("privacy.page_title")}</ThemedText>
|
||||
|
||||
<ThemedText style={styles.sectionTitle}>{t("privacy.section1_title")}</ThemedText>
|
||||
<ThemedText style={styles.text}>
|
||||
{t("privacy.section1_text")}
|
||||
</ThemedText>
|
||||
|
||||
<ThemedText style={styles.sectionTitle}>{t("privacy.section2_title")}</ThemedText>
|
||||
<ThemedText style={styles.text}>
|
||||
{t("privacy.section2_text")}
|
||||
</ThemedText>
|
||||
|
||||
<ThemedText style={styles.sectionTitle}>{t("privacy.section3_title")}</ThemedText>
|
||||
<ThemedText style={styles.text}>
|
||||
{t("privacy.section3_text")}
|
||||
</ThemedText>
|
||||
|
||||
<ThemedText style={styles.sectionTitle}>{t("privacy.section4_title")}</ThemedText>
|
||||
<ThemedText style={styles.text}>
|
||||
{t("privacy.section4_text")}
|
||||
</ThemedText>
|
||||
|
||||
<ThemedText style={styles.sectionTitle}>{t("privacy.section5_title")}</ThemedText>
|
||||
<ThemedText style={styles.text}>
|
||||
{t("privacy.section5_text")}
|
||||
</ThemedText>
|
||||
|
||||
<ThemedText style={styles.sectionTitle}>{t("privacy.section6_title")}</ThemedText>
|
||||
<ThemedText style={styles.text}>
|
||||
{t("privacy.section6_text")}
|
||||
</ThemedText>
|
||||
|
||||
<ThemedText style={styles.updateText}>
|
||||
{t("privacy.last_updated")}
|
||||
</ThemedText>
|
||||
</View>
|
||||
</ScrollView>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
},
|
||||
content: {
|
||||
margin: 16,
|
||||
padding: 20,
|
||||
borderRadius: 12, // 稍微增加圆角,更现代
|
||||
marginBottom: 40, // 底部留白
|
||||
},
|
||||
title: {
|
||||
fontSize: 24,
|
||||
fontWeight: "bold",
|
||||
marginBottom: 8,
|
||||
},
|
||||
sectionTitle: {
|
||||
fontSize: 18,
|
||||
fontWeight: "700",
|
||||
marginTop: 24,
|
||||
marginBottom: 10,
|
||||
},
|
||||
text: {
|
||||
fontSize: 15,
|
||||
lineHeight: 22,
|
||||
opacity: 0.9,
|
||||
},
|
||||
updateText: {
|
||||
fontSize: 13,
|
||||
opacity: 0.5,
|
||||
marginTop: 32,
|
||||
textAlign: "center",
|
||||
},
|
||||
});
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as AppleAuthentication from "expo-apple-authentication";
|
||||
import Constants from "expo-constants";
|
||||
import { Image } from "expo-image";
|
||||
import { Stack } from "expo-router";
|
||||
import { Stack, useRouter } from "expo-router";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
@@ -25,6 +25,7 @@ export default function ProfileScreen() {
|
||||
const { theme, toggleTheme, setTheme, isSystemTheme, useSystemTheme } =
|
||||
useTheme();
|
||||
const { t, i18n } = useTranslation();
|
||||
const router = useRouter();
|
||||
const isDark = theme === "dark";
|
||||
const [appleAvailable, setAppleAvailable] = React.useState(false);
|
||||
const [user, setUser] = React.useState<UserProfile | null>(null);
|
||||
@@ -277,6 +278,36 @@ export default function ProfileScreen() {
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<View
|
||||
style={[
|
||||
styles.settingItem,
|
||||
{
|
||||
borderTopWidth: StyleSheet.hairlineWidth,
|
||||
borderTopColor: isDark ? "#38383a" : "#c6c6c8",
|
||||
},
|
||||
]}
|
||||
>
|
||||
<TouchableOpacity
|
||||
style={styles.settingItemContent}
|
||||
onPress={() => router.push("/privacy" as any)}
|
||||
>
|
||||
<View style={styles.settingLabel}>
|
||||
<IconSymbol
|
||||
name="document"
|
||||
size={20}
|
||||
color={iconColor}
|
||||
style={{ marginRight: 10 }}
|
||||
/>
|
||||
<ThemedText>{t("profile.privacy")}</ThemedText>
|
||||
</View>
|
||||
<IconSymbol
|
||||
name="chevron-forward"
|
||||
size={16}
|
||||
color={subTextColor}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
{/* <ThemedText style={styles.sectionTitle}>登录</ThemedText>
|
||||
@@ -407,6 +438,12 @@ const styles = StyleSheet.create({
|
||||
justifyContent: "space-between",
|
||||
paddingVertical: 12,
|
||||
},
|
||||
settingItemContent: {
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
flex: 1,
|
||||
},
|
||||
settingLabel: {
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
|
||||
@@ -39,7 +39,25 @@
|
||||
"profile": {
|
||||
"title": "My Profile",
|
||||
"name": "User Name",
|
||||
"settings": "Settings"
|
||||
"settings": "Settings",
|
||||
"privacy": "Privacy Policy"
|
||||
},
|
||||
"privacy": {
|
||||
"title": "Privacy Policy",
|
||||
"page_title": "ScoreNow Privacy Policy",
|
||||
"section1_title": "1. Information Collection",
|
||||
"section1_text": "ScoreNow collects information including: account information provided during registration; your preferences for teams and leagues you follow; and device identifiers and network logs when using the live score feature.",
|
||||
"section2_title": "2. Information Use",
|
||||
"section2_text": "We use this information to send you match reminders you're interested in, optimize the display order of news and information, and ensure real-time and accurate distribution of match data.",
|
||||
"section3_title": "3. Third-Party Services",
|
||||
"section3_text": "To provide accurate match data and analysis, we may collaborate with third-party data providers. We do not share your personal identity information, only anonymized statistical data.",
|
||||
"section4_title": "4. Permissions",
|
||||
"section4_text": "We request notification permissions to send goal alerts; storage permissions to cache match images and content, saving your data usage.",
|
||||
"section5_title": "5. Data Security",
|
||||
"section5_text": "ScoreNow uses industry-standard encryption technology to protect your data, preventing unauthorized access to your viewing preferences or account history.",
|
||||
"section6_title": "6. Your Rights",
|
||||
"section6_text": "You can manage your notification preferences, clear search history, or delete your account at any time in settings.",
|
||||
"last_updated": "Last updated: January 2026"
|
||||
},
|
||||
"detail": {
|
||||
"title": "Match Details",
|
||||
@@ -87,7 +105,7 @@
|
||||
},
|
||||
"odds_card": {
|
||||
"title": "Match Odds",
|
||||
"disclaimer": "18+. Please gamble responsibly. Odds are subject to change."
|
||||
"disclaimer": ""
|
||||
},
|
||||
"stats_card": {
|
||||
"title": "Statistics",
|
||||
|
||||
@@ -39,7 +39,25 @@
|
||||
"profile": {
|
||||
"title": "我的",
|
||||
"name": "用户名",
|
||||
"settings": "设置"
|
||||
"settings": "设置",
|
||||
"privacy": "隐私协议"
|
||||
},
|
||||
"privacy": {
|
||||
"title": "隐私协议",
|
||||
"page_title": "ScoreNow 隐私政策",
|
||||
"section1_title": "1. 信息收集",
|
||||
"section1_text": "ScoreNow 收集的信息包括:您注册时提供的账户信息;您关注的球队、联赛等偏好设置;以及在使用即时比分功能时的设备标识符和网络日志。",
|
||||
"section2_title": "2. 信息使用",
|
||||
"section2_text": "我们使用这些信息来为您推送您感兴趣的赛事提醒、优化新闻资讯的展示顺序,并确保比赛数据的实时准确分发。",
|
||||
"section3_title": "3. 第三方服务",
|
||||
"section3_text": "为提供精准的赛事数据和分析,我们可能与第三方数据供应商合作。我们不会共享您的个人身份信息,仅共享经过匿名化处理的统计数据。",
|
||||
"section4_title": "4. 权限说明",
|
||||
"section4_text": "我们会申请通知权限以发送进球提醒;申请存储权限以缓存赛事图片和资讯内容,从而节省您的流量。",
|
||||
"section5_title": "5. 数据安全",
|
||||
"section5_text": "ScoreNow 采用行业标准的加密技术保护您的数据,防止您的观赛偏好或账户历史被非法获取。",
|
||||
"section6_title": "6. 您的权利",
|
||||
"section6_text": "您可以在设置中随时管理您的通知偏好、清除搜索记录,或注销您的账户。",
|
||||
"last_updated": "最后更新:2026年1月"
|
||||
},
|
||||
"detail": {
|
||||
"title": "比赛详情",
|
||||
@@ -87,7 +105,7 @@
|
||||
},
|
||||
"odds_card": {
|
||||
"title": "比赛赔率",
|
||||
"disclaimer": "18+. 请负责任地赌博。赔率可能会变动。"
|
||||
"disclaimer": ""
|
||||
},
|
||||
"stats_card": {
|
||||
"title": "统计数据",
|
||||
|
||||
Reference in New Issue
Block a user