diff options
Diffstat (limited to 'app/+not-found.tsx')
-rw-r--r-- | app/+not-found.tsx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/+not-found.tsx b/app/+not-found.tsx new file mode 100644 index 0000000..963b04f --- /dev/null +++ b/app/+not-found.tsx @@ -0,0 +1,32 @@ +import { Link, Stack } from 'expo-router'; +import { StyleSheet } from 'react-native'; + +import { ThemedText } from '@/components/ThemedText'; +import { ThemedView } from '@/components/ThemedView'; + +export default function NotFoundScreen() { + return ( + <> + <Stack.Screen options={{ title: 'Oops!' }} /> + <ThemedView style={styles.container}> + <ThemedText type="title">This screen doesn't exist.</ThemedText> + <Link href="/" style={styles.link}> + <ThemedText type="link">Go to home screen!</ThemedText> + </Link> + </ThemedView> + </> + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + alignItems: 'center', + justifyContent: 'center', + padding: 20, + }, + link: { + marginTop: 15, + paddingVertical: 15, + }, +}); |