updating to use clerk auth with new routing to signin page by default

This commit is contained in:
Will Baumbach
2025-08-05 15:34:07 -05:00
parent 409f15f233
commit 10815a9a81
17 changed files with 1670 additions and 247 deletions

18
app/index.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { SignedIn, SignedOut, useUser } from '@clerk/clerk-expo'
import { Redirect } from 'expo-router'
import { View } from 'react-native'
export default function Page() {
const { user } = useUser()
return (
<View>
<SignedIn>
<Redirect href={'/home'} />
</SignedIn>
<SignedOut>
<Redirect href={'/(auth)/sign-in'} />
</SignedOut>
</View>
)
}