Files
whyrating/apps/mobile/src/app/(setup)/auth/_layout.tsx
2026-02-04 01:55:00 +01:00

25 lines
547 B
TypeScript

import { router, Stack } from "expo-router";
import { pathsConfig } from "~/config/paths";
import { BaseHeader } from "~/modules/common/layout/header";
export default function AuthLayout() {
return (
<Stack
screenOptions={{
header: () => (
<BaseHeader
onBack={() =>
router.canGoBack()
? router.back()
: router.replace(pathsConfig.index)
}
/>
),
animation: "fade",
animationDuration: 200,
}}
/>
);
}