Wavelength/app/+not-found.tsx

33 lines
753 B
TypeScript
Raw Permalink Normal View History

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 16:58:50 -05:00
const NotFoundScreen = () => {
return (
<>
2024-10-08 16:58:50 -05:00
<Stack.Screen options={{ title: 'Page not found.' }} />
<ThemedView style={styles.container}>
2024-10-08 16:58:50 -05:00
<Link href='/'>
<ThemedText style={styles.button}>
Go back home.
</ThemedText>
</Link>
</ThemedView>
</>
);
2024-10-08 16:58:50 -05:00
};
export default NotFoundScreen;
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
2024-10-08 16:58:50 -05:00
alignItems: 'center',
},
2024-10-08 16:58:50 -05:00
button: {
fontSize: 24,
textDecorationLine: 'underline',
},
});