mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-15 22:04:29 +02:00
28 lines
595 B
TypeScript
28 lines
595 B
TypeScript
import { styles } from "@/styles/not-found";
|
|
import { Text, View } from "react-native";
|
|
import Button from "@/components/Button";
|
|
import { useRouter } from "expo-router";
|
|
|
|
export default function NotFoundScreen() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<View style={styles.mainContainer}>
|
|
<View>
|
|
<Text style={styles.code}>404</Text>
|
|
|
|
<Text style={styles.text}>This page does not exist.</Text>
|
|
|
|
<Button
|
|
onPress={() => {
|
|
router.replace({
|
|
pathname: "/",
|
|
});
|
|
}}
|
|
text="Head to the Dashboard"
|
|
color="#323ea8"
|
|
/>
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|