mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 15:33:26 +00:00
42 lines
900 B
TypeScript
42 lines
900 B
TypeScript
import { Link, Stack } from 'expo-router';
|
|
import { StyleSheet, View } from 'react-native';
|
|
import { BoldText, RegularText } from '../components/Styled';
|
|
|
|
export default function NotFoundScreen() {
|
|
return (
|
|
<>
|
|
<Stack.Screen options={{ title: 'Oops!' }} />
|
|
<View style={styles.container}>
|
|
<BoldText style={styles.title}>
|
|
This screen doesn't exist.
|
|
</BoldText>
|
|
|
|
<Link href="/" style={styles.link}>
|
|
<RegularText style={styles.linkText}>Go to home screen!</RegularText>
|
|
</Link>
|
|
</View>
|
|
</>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
padding: 20,
|
|
},
|
|
title: {
|
|
fontSize: 20,
|
|
fontWeight: 'bold',
|
|
},
|
|
link: {
|
|
marginTop: 15,
|
|
paddingVertical: 15,
|
|
},
|
|
linkText: {
|
|
fontSize: 14,
|
|
color: '#2e78b7',
|
|
},
|
|
});
|