From d208f363b2cd2e87b94ece462656e117d92ed0b3 Mon Sep 17 00:00:00 2001 From: Cyber Majeed <73933962+cybermajeed@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:03:53 +0400 Subject: [PATCH] Add files via upload --- mobile/app/dashboard.js | 35 ++++++++++++++++++++++++------ mobile/app/login.js | 21 +++++++++--------- mobile/style.js | 48 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 16 deletions(-) diff --git a/mobile/app/dashboard.js b/mobile/app/dashboard.js index aa3e592..5b320e5 100644 --- a/mobile/app/dashboard.js +++ b/mobile/app/dashboard.js @@ -1,4 +1,6 @@ -import { SafeAreaView, Button, Text } from "react-native"; +import { StatusBar } from "expo-status-bar"; +import { Text, View, Image, TouchableOpacity } from "react-native"; +import { SafeAreaView } from "react-native-safe-area-context"; import { styles } from "../style"; import { auth, signOut, onAuthStateChanged } from "../auth"; import { useState } from "react"; @@ -6,7 +8,7 @@ export default function App({ navigation }) { const [name, setName] = useState(""); onAuthStateChanged(auth, (user) => { if (user) { - const name = user.email.split("@")[0]; + const name = user.email.split("@")[0].toUpperCase(); setName(name); } }); @@ -16,13 +18,34 @@ export default function App({ navigation }) { console.log("signed out"); }) .catch((error) => { - console.log(error); + console.log("signout error: " + error); }); }; return ( - - Hello {name} -