feat: whyrating - initial project from turbostarter boilerplate
This commit is contained in:
24
apps/mobile/src/app/(setup)/auth/_layout.tsx
Normal file
24
apps/mobile/src/app/(setup)/auth/_layout.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
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,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user