Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Holat committed Jul 25, 2023
1 parent dd0c06c commit feb9982
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
5 changes: 3 additions & 2 deletions app/[...missing].tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Link, Stack } from "expo-router";
import { StyleSheet, Text, View } from "react-native";
export default function () {

export default function MissingScreen() {
return (
<>
<Stack.Screen options={{ title: "Oops!" }} />
{/* <Stack.Screen name="[missing]" options={{ title: "Oops!" }} /> */}
<View style={styles.container}>
<Text style={styles.title}>This screen doesn't exist.</Text>

Expand Down
6 changes: 1 addition & 5 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ export default function RootLayout() {
<>
{/* Keep the splash screen open until the assets have loaded. In the future, we should just support async font loading with a native version of font-display. */}
{!loaded && <SplashScreen />}
{loaded && (
<>
<RootLayoutNav />
</>
)}
{loaded && <RootLayoutNav />}
</>
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useColorScheme,
} from "react-native";
import React, { useState, useEffect } from "react";
import { FontAwesome5 } from "@expo/vector-icons";
import { FontAwesome5, Ionicons } from "@expo/vector-icons";
import { useRouter } from "expo-router";
import AsyncStorage from "@react-native-async-storage/async-storage";

Expand Down
3 changes: 1 addition & 2 deletions app/loginScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ const LoginScreen = () => {
Alert.alert("Enter a username");
return;
}

await AsyncStorage.setItem("username", username);
router.push("index");
router.replace("/");
};

return (
Expand Down

0 comments on commit feb9982

Please sign in to comment.