Files
mindfulness/client/app/(app)/_layout.tsx
2026-01-29 19:09:36 +08:00

31 lines
609 B
TypeScript

import { Stack } from 'expo-router';
import { useTranslation } from 'react-i18next';
export default function AppLayout() {
const { t } = useTranslation();
return (
<Stack
screenOptions={{
headerTitleAlign: 'center',
}}
>
<Stack.Screen
name="home"
options={{
// 卡片页标题按设计留空(右上角为 icon 按钮)
title: '',
headerShadowVisible: false,
}}
/>
<Stack.Screen
name="settings"
options={{
title: t('settings.title'),
}}
/>
</Stack>
);
}