You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mobile/app/index.tsx

16 lines
350 B

import { useSession } from "@/ctx";
import { Redirect } from "expo-router";
import Loading from "./loading";
export default function Index() {
const { session, isLoading } = useSession();
if (isLoading) return <Loading />;
if (session) {
return <Redirect href="/(tabs)/(home)/HomeScreen" />;
}
return <Redirect href="/log-in" />;
}