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.
29 lines
703 B
29 lines
703 B
import { Link } from 'expo-router'; |
|
import { StyleSheet } from 'react-native'; |
|
|
|
import { ThemedText } from '@/components/themed-text'; |
|
import { ThemedView } from '@/components/themed-view'; |
|
|
|
export default function ModalScreen() { |
|
return ( |
|
<ThemedView style={styles.container}> |
|
<ThemedText type="title">This is a modal</ThemedText> |
|
<Link href="/" dismissTo style={styles.link}> |
|
<ThemedText type="link">Go to home screen</ThemedText> |
|
</Link> |
|
</ThemedView> |
|
); |
|
} |
|
|
|
const styles = StyleSheet.create({ |
|
container: { |
|
flex: 1, |
|
alignItems: 'center', |
|
justifyContent: 'center', |
|
padding: 20, |
|
}, |
|
link: { |
|
marginTop: 15, |
|
paddingVertical: 15, |
|
}, |
|
});
|
|
|