Files
tattletires/app/(auth)/_layout.tsx

13 lines
304 B
TypeScript
Raw Normal View History

import { useAuth } from '@clerk/clerk-expo'
import { Redirect, Stack } from 'expo-router'
export default function AuthRoutesLayout() {
const { isSignedIn } = useAuth()
if (isSignedIn) {
return <Redirect href={'/'} />
}
return <Stack screenOptions={{ headerShown: false }} />
}