Zipline-Android-App/app/+not-found.tsx
2025-02-11 11:50:37 +01:00

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