This commit is contained in:
Filip Rojek 2024-05-08 16:37:48 +02:00
parent 8e25ca5dd7
commit dc446fe8dc
3 changed files with 2 additions and 27 deletions

View File

@ -1,18 +0,0 @@
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { LoginForm } from "./screens/Login";
export default function App() {
return (
<View style={styles.container}>
<StatusBar style="light" />
<LoginForm />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});

View File

@ -1,9 +1,11 @@
import { Slot } from "expo-router"; import { Slot } from "expo-router";
import { StatusBar } from "expo-status-bar";
import { AuthProvider } from "./context/AuthContext"; import { AuthProvider } from "./context/AuthContext";
export default function Root() { export default function Root() {
return ( return (
<AuthProvider> <AuthProvider>
<StatusBar style="light" />
<Slot /> <Slot />
</AuthProvider> </AuthProvider>
); );

View File

@ -1,9 +0,0 @@
import { Redirect, Link } from "expo-router";
import { Text, View } from "react-native";
import { AuthProvider } from "./context/AuthContext";
function HomePage() {
return <Redirect href="/login" />;
}
export default HomePage;