eletrotupi / tcc/ frontend/app/modal.tsx31d5e0a428d4abeb45d3d08451c8e03af2590cc5
851 B | 39 lines Raw
1
import { Link } from 'expo-router';
2
import { StyleSheet } from 'react-native';
3

4
import { Text } from '@/components/ui/Text';
5
import { ThemedView } from '@/components/misc/themed-view';
6

7
export default function ModalScreen() {
8
  return (
9
    <ThemedView style={styles.container}>
10
      <Text style={styles.title}>This is a modal</Text>
11
      <Link href="/" dismissTo style={styles.link}>
12
        <Text style={styles.linkText}>Go to home screen</Text>
13
      </Link>
14
    </ThemedView>
15
  );
16
}
17

18
const styles = StyleSheet.create({
19
  container: {
20
    flex: 1,
21
    alignItems: 'center',
22
    justifyContent: 'center',
23
    padding: 20,
24
  },
25
  link: {
26
    marginTop: 15,
27
    paddingVertical: 15,
28
  },
29
  title: {
30
    fontSize: 32,
31
    fontWeight: 'bold',
32
    lineHeight: 32,
33
  },
34
  linkText: {
35
    lineHeight: 30,
36
    fontSize: 16,
37
    color: '#0a7ea4',
38
  },
39
});