Zipline-Android-App/app/+not-found.tsx
2025-01-22 16:36:35 +01:00

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>
);
}