File tree Expand file tree Collapse file tree 1 file changed +32
-32
lines changed
Expand file tree Collapse file tree 1 file changed +32
-32
lines changed Original file line number Diff line number Diff line change 1- import { Link , Stack } from " expo-router" ;
2- import { StyleSheet } from " react-native" ;
1+ import { Link , Stack } from ' expo-router' ;
2+ import { StyleSheet } from ' react-native' ;
33
4- import { Text , View } from " @/components/Themed" ;
4+ import { Text , View } from ' @/components/Themed' ;
55
66export default function NotFoundScreen ( ) {
7- return (
8- < >
9- < Stack . Screen options = { { title : " Oops!" } } />
10- < View style = { styles . container } >
11- < Text style = { styles . title } > This screen doesn't exist.</ Text >
7+ return (
8+ < >
9+ < Stack . Screen options = { { title : ' Oops!' } } />
10+ < View style = { styles . container } >
11+ < Text style = { styles . title } > This screen doesn't exist.</ Text >
1212
13- < Link href = "/" style = { styles . link } >
14- < Text style = { styles . linkText } > Go to home screen!</ Text >
15- </ Link >
16- </ View >
17- </ >
18- ) ;
13+ < Link href = { '/' as any } style = { styles . link } >
14+ < Text style = { styles . linkText } > Go to home screen!</ Text >
15+ </ Link >
16+ </ View >
17+ </ >
18+ ) ;
1919}
2020
2121const styles = StyleSheet . create ( {
22- container : {
23- flex : 1 ,
24- alignItems : " center" ,
25- justifyContent : " center" ,
26- padding : 20 ,
27- } ,
28- title : {
29- fontSize : 20 ,
30- fontWeight : " bold" ,
31- } ,
32- link : {
33- marginTop : 15 ,
34- paddingVertical : 15 ,
35- } ,
36- linkText : {
37- fontSize : 14 ,
38- color : " #2e78b7" ,
39- } ,
22+ container : {
23+ flex : 1 ,
24+ alignItems : ' center' ,
25+ justifyContent : ' center' ,
26+ padding : 20 ,
27+ } ,
28+ title : {
29+ fontSize : 20 ,
30+ fontWeight : ' bold' ,
31+ } ,
32+ link : {
33+ marginTop : 15 ,
34+ paddingVertical : 15 ,
35+ } ,
36+ linkText : {
37+ fontSize : 14 ,
38+ color : ' #2e78b7' ,
39+ } ,
4040} ) ;
You can’t perform that action at this time.
0 commit comments