forked from lucas.delanier/MovieFinder
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.
37 lines
887 B
37 lines
887 B
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
|
import { Text, View } from '../components/Themed';
|
|
import { RootStackScreenProps } from '../types';
|
|
|
|
export default function NotFoundScreen({ navigation }: RootStackScreenProps<'NotFound'>) {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.title}>This screen doesn't exist.</Text>
|
|
<TouchableOpacity onPress={() => navigation.replace('Root')} style={styles.link}>
|
|
<Text style={styles.linkText}>Go to home screen!</Text>
|
|
</TouchableOpacity>
|
|
</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',
|
|
},
|
|
});
|