mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-28 16:49:39 +07:00
30 lines
634 B
TypeScript
30 lines
634 B
TypeScript
import { Link, Stack } from "expo-router";
|
|
import { StyleSheet, View, Text } from "react-native";
|
|
|
|
export default function NotFoundScreen() {
|
|
return (
|
|
<>
|
|
<Stack.Screen options={{ title: "Oops!" }} />
|
|
<View style={styles.container}>
|
|
<Text>This screen doesn't exist.</Text>
|
|
<Link href="/" style={styles.link}>
|
|
<Text>Go to home screen!</Text>
|
|
</Link>
|
|
</View>
|
|
</>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
padding: 20,
|
|
},
|
|
link: {
|
|
marginTop: 15,
|
|
paddingVertical: 15,
|
|
},
|
|
});
|