From 7eb8ccae48b0cc18a9dcaa9c3626a02df8e6d919 Mon Sep 17 00:00:00 2001 From: JustZvan Date: Fri, 6 Feb 2026 13:22:33 +0100 Subject: feat: initial commit! --- app/(auth)/_layout.tsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/(auth)/_layout.tsx (limited to 'app/(auth)/_layout.tsx') diff --git a/app/(auth)/_layout.tsx b/app/(auth)/_layout.tsx new file mode 100644 index 0000000..e18b629 --- /dev/null +++ b/app/(auth)/_layout.tsx @@ -0,0 +1,29 @@ +import { Redirect, Stack } from "expo-router"; +import { useAuth } from "../../lib/auth"; +import { colors } from "../../lib/theme"; +import { LoadingScreen } from "../../lib/ui"; + +export default function AuthLayout() { + const { isLoading, isAuthenticated } = useAuth(); + + if (isLoading) { + return ; + } + + if (isAuthenticated) { + return ; + } + + return ( + + + + + + ); +} -- cgit v1.2.3