14 lines
No EOL
303 B
TypeScript
14 lines
No EOL
303 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>
|
|
|
|
)
|
|
} |