import { Link, Slot } from 'expo-router';
import { StyleSheet, View,Text } from 'react-native'

export default function NotFoundScreen() {
  return (
    <>
      <Slot options={{ title: 'Oops!' }} />
      <View style={styles.container}>
        <Text type="title">This screen doesn't exist.</Text>
        <Link href="/" style={styles.link}>
          <Text type="link">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,
  },
});
