2024-10-08 16:58:50 -05:00
|
|
|
import { StyleSheet } from "react-native";
|
|
|
|
import { ThemedText } from "@/components/ThemedText";
|
|
|
|
import { ThemedView } from "@/components/ThemedView";
|
|
|
|
import { Link, Stack } from "expo-router";
|
2024-10-08 12:25:29 -05:00
|
|
|
|
2024-10-08 16:58:50 -05:00
|
|
|
const NotFoundScreen = () => {
|
2024-10-08 12:25:29 -05:00
|
|
|
return (
|
|
|
|
<>
|
2024-10-08 16:58:50 -05:00
|
|
|
<Stack.Screen options={{ title: 'Page not found.' }} />
|
2024-10-08 12:25:29 -05:00
|
|
|
<ThemedView style={styles.container}>
|
2024-10-08 16:58:50 -05:00
|
|
|
<Link href='/'>
|
|
|
|
<ThemedText style={styles.button}>
|
|
|
|
Go back home.
|
|
|
|
</ThemedText>
|
2024-10-08 12:25:29 -05:00
|
|
|
</Link>
|
|
|
|
</ThemedView>
|
|
|
|
</>
|
|
|
|
);
|
2024-10-08 16:58:50 -05:00
|
|
|
};
|
|
|
|
export default NotFoundScreen;
|
2024-10-08 12:25:29 -05:00
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'center',
|
2024-10-08 16:58:50 -05:00
|
|
|
alignItems: 'center',
|
2024-10-08 12:25:29 -05:00
|
|
|
},
|
2024-10-08 16:58:50 -05:00
|
|
|
button: {
|
|
|
|
fontSize: 24,
|
|
|
|
textDecorationLine: 'underline',
|
2024-10-08 12:25:29 -05:00
|
|
|
},
|
|
|
|
});
|