Files
mindfulness/client/app/(onboarding)/_layout.tsx
2026-02-03 17:43:58 +08:00

19 lines
444 B
TypeScript

import { Stack } from 'expo-router';
import { useTranslation } from 'react-i18next';
export default function OnboardingLayout() {
const { t } = useTranslation();
return (
<Stack
screenOptions={{
headerTitleAlign: 'center',
headerShown: false, // 隐藏原生导航栏,使用自定义布局
}}
>
<Stack.Screen name="onboarding" options={{ title: t('onboarding.title') }} />
</Stack>
);
}