31 lines
712 B
TypeScript
31 lines
712 B
TypeScript
import { Link, Stack } from 'expo-router'
|
|
import { StyleSheet, View } from 'react-native'
|
|
|
|
export default function NotFoundScreen() {
|
|
return (
|
|
<>
|
|
<Stack.Screen options={{ headerShown: false }} />
|
|
<View style={styles.container}>
|
|
<Link href='./' style={styles.button}>
|
|
Go back to Home screen!
|
|
</Link>
|
|
</View>
|
|
</>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: '#25292e',
|
|
justifyContent: 'center',
|
|
alignItems: 'center'
|
|
},
|
|
|
|
button: {
|
|
fontSize: 20,
|
|
textDecorationLine: 'underline',
|
|
color: '#fff'
|
|
}
|
|
})
|