import { View, Text } from 'react-native'
import React, { useEffect } from 'react'
import { useAuth } from './contexts/AuthContext'
import { Redirect } from 'expo-router';

export default function login() {
  const {authState, onLogin} = useAuth();
  useEffect(() => {
    login()
  }, [])


  const login = async() => {
    onLogin!("test", "test");
  }
  return (
    <View>
      <Text>login</Text>
      <Redirect href={"/"}></Redirect>
    </View>
  )
}