-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(client): route names and update initial route
- Loading branch information
Showing
9 changed files
with
70 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Redirect } from 'expo-router' | ||
import { Stack } from 'expo-router/stack' | ||
import { useAuth } from '@clerk/clerk-expo' | ||
|
||
export default function Layout() { | ||
const { isSignedIn } = useAuth() | ||
|
||
if (!isSignedIn) { | ||
return <Redirect href={'/auth/sign-in'} /> | ||
} | ||
|
||
return <Stack screenOptions={{ headerShown: false }} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Button, Text, View } from 'react-native' | ||
import { Container } from '@/components/ui/Container' | ||
|
||
export default function Page() { | ||
return ( | ||
<Container className="flex-1 bg-red-500"> | ||
<View> | ||
<Text>Welcome to bolhadev.chat</Text> | ||
<Text>Create your account and start learng english asap</Text> | ||
</View> | ||
<Button title="Sign Up" /> | ||
<Button title="Sign In" /> | ||
</Container> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.