13 lines
No EOL
299 B
TypeScript
13 lines
No EOL
299 B
TypeScript
|
|
import React, { useEffect } from 'react'
|
|
import { Redirect } from 'expo-router'
|
|
import { useAuth } from './contexts/AuthContext'
|
|
|
|
export default function index() {
|
|
const {authState} = useAuth()
|
|
|
|
return (
|
|
<Redirect href={authState?.authenticated ? "/home/" : "/login"}></Redirect>
|
|
|
|
)
|
|
} |