You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
632 B
31 lines
632 B
import { Link, Stack, usePathname } from 'expo-router';
|
|
import {StyleSheet, Text, View} from 'react-native';
|
|
|
|
|
|
export default function NotFoundScreen() {
|
|
const pathname = usePathname();
|
|
|
|
return (
|
|
<>
|
|
<Stack.Screen options={{ title: 'Oops!' }} />
|
|
<View style={styles.container}>
|
|
<Text>This screen doesn't exist: {pathname}</Text>
|
|
<Text>Go to home screen!</Text>
|
|
</View>
|
|
</>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
padding: 20,
|
|
},
|
|
link: {
|
|
marginTop: 15,
|
|
paddingVertical: 15,
|
|
},
|
|
});
|