You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.5 KiB
33 lines
1.5 KiB
import { Stack } from 'expo-router';
|
|
import { StatusBar } from 'expo-status-bar';
|
|
import { RoleProvider } from '../src/context/RoleContext';
|
|
import { AuthProvider } from '../src/context/AuthContext';
|
|
|
|
/**
|
|
* 根布局:用 Stack 包裹整个应用,Tab 组不显示顶部 header
|
|
*/
|
|
export default function RootLayout() {
|
|
return (
|
|
<AuthProvider>
|
|
<RoleProvider>
|
|
<StatusBar style="dark" />
|
|
<Stack>
|
|
<Stack.Screen name="index" options={{ headerShown: false }} />
|
|
<Stack.Screen name="guide" options={{ headerShown: false }} />
|
|
<Stack.Screen name="register" options={{ headerShown: false }} />
|
|
<Stack.Screen name="onboarding" options={{ headerShown: false }} />
|
|
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
|
|
<Stack.Screen name="(enterprise)" options={{ headerShown: false }} />
|
|
<Stack.Screen name="jobs/[id]" options={{ headerShown: false }} />
|
|
<Stack.Screen name="settings" options={{ title: '设置' }} />
|
|
<Stack.Screen name="resume" options={{ title: '我的简历' }} />
|
|
<Stack.Screen name="resume-versions" options={{ title: '简历版本' }} />
|
|
<Stack.Screen name="favorites" options={{ title: '我的收藏' }} />
|
|
<Stack.Screen name="notifications" options={{ title: '通知' }} />
|
|
<Stack.Screen name="history" options={{ title: '浏览历史' }} />
|
|
<Stack.Screen name="assessment" options={{ title: '我的测评' }} />
|
|
</Stack>
|
|
</RoleProvider>
|
|
</AuthProvider>
|
|
);
|
|
}
|