mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-10 18:05:52 +02:00
26 lines
No EOL
593 B
TypeScript
26 lines
No EOL
593 B
TypeScript
import { Pressable, Text, View } from "react-native";
|
|
import { useRouter } from "expo-router";
|
|
|
|
import { styles } from "@/styles/not-found";
|
|
|
|
export default function NotFoundScreen() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.code}>404</Text>
|
|
<Text style={styles.text}>This page doesn't exist</Text>
|
|
|
|
<Pressable
|
|
style={styles.button}
|
|
onPress={() => {
|
|
router.replace({
|
|
pathname: "/",
|
|
});
|
|
}}
|
|
>
|
|
<Text style={styles.buttonText}>Head to the Dashboard</Text>
|
|
</Pressable>
|
|
</View>
|
|
);
|
|
} |