This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
interaktive-systeme/app/login.tsx
2023-12-08 14:51:05 +01:00

22 lines
No EOL
458 B
TypeScript

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>
)
}