Initial commit

Generated by create-expo-app 3.3.0.
This commit is contained in:
Dennis Hundertmark
2025-04-03 08:58:19 +02:00
commit 6ed3300183
113 changed files with 22036 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { ActivityIndicator, Pressable, Text, View } from "react-native";
import { useAuth } from "@/utils/AuthProvider";
export default function Index() {
const { login, isLoading: authLoading } = useAuth();
if (authLoading) {
return (
<View className="flex-1 justify-center items-center bg-white">
<ActivityIndicator size="large" />
</View>
);
}
return (
<View className="flex-1 bg-white px-4 justify-center items-center">
<Pressable
className="w-full flex-row justify-center items-center bg-black py-3 rounded-lg"
onPress={login}
>
<Text className="text-white text-center font-semibold ml-2">
Sign in with Keycloak
</Text>
</Pressable>
</View>
);
}