feat: 添加饮水设置页面,支持每日饮水目标和快速添加默认值的配置

This commit is contained in:
richarjiang
2025-09-05 16:31:52 +08:00
parent 83805a4b07
commit 8d71d751d6
4 changed files with 781 additions and 133 deletions

View File

@@ -8,11 +8,11 @@ import 'react-native-reanimated';
import PrivacyConsentModal from '@/components/PrivacyConsentModal';
import { useAppDispatch, useAppSelector } from '@/hooks/redux';
import { clearAiCoachSessionCache } from '@/services/aiCoachSession';
import { backgroundTaskManager } from '@/services/backgroundTaskManager';
import { notificationService } from '@/services/notifications';
import { store } from '@/store';
import { rehydrateUser, setPrivacyAgreed } from '@/store/userSlice';
import { MoodNotificationHelpers, NutritionNotificationHelpers } from '@/utils/notificationHelpers';
import { backgroundTaskManager } from '@/services/backgroundTaskManager';
import React from 'react';
import RNExitApp from 'react-native-exit-app';
@@ -140,6 +140,7 @@ export default function RootLayout() {
<Stack.Screen name="legal/user-agreement" options={{ headerShown: true, title: '用户协议' }} />
<Stack.Screen name="legal/privacy-policy" options={{ headerShown: true, title: '隐私政策' }} />
<Stack.Screen name="article/[id]" options={{ headerShown: false }} />
<Stack.Screen name="water-settings" options={{ headerShown: false }} />
<Stack.Screen name="+not-found" />
</Stack>
<StatusBar style="dark" />