feat: 完善训练

This commit is contained in:
2025-08-16 14:15:11 +08:00
parent 5a4d86ff7d
commit 4c6a0e0399
17 changed files with 3079 additions and 166 deletions

View File

@@ -14,6 +14,7 @@ import React from 'react';
import RNExitApp from 'react-native-exit-app';
import Toast from 'react-native-toast-message';
import { DialogProvider } from '@/components/ui/DialogProvider';
import { Provider } from 'react-redux';
function Bootstrapper({ children }: { children: React.ReactNode }) {
@@ -50,7 +51,7 @@ function Bootstrapper({ children }: { children: React.ReactNode }) {
};
return (
<>
<DialogProvider>
{children}
<PrivacyConsentModal
visible={showPrivacyModal}
@@ -58,7 +59,7 @@ function Bootstrapper({ children }: { children: React.ReactNode }) {
onDisagree={handlePrivacyDisagree}
/>
<Toast />
</>
</DialogProvider>
);
}
@@ -82,6 +83,7 @@ export default function RootLayout() {
<Stack.Screen name="(tabs)" />
<Stack.Screen name="challenge" options={{ headerShown: false }} />
<Stack.Screen name="training-plan" options={{ headerShown: false }} />
<Stack.Screen name="workout" options={{ headerShown: false }} />
<Stack.Screen name="profile/edit" />
<Stack.Screen name="profile/goals" options={{ headerShown: false }} />
<Stack.Screen name="ai-coach-chat" options={{ headerShown: false }} />