Skip to content

Commit 161f6ad

Browse files
Updated not found.
1 parent e9d01d8 commit 161f6ad

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

app/+not-found.tsx

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
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

66
export 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

2121
const 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
});

0 commit comments

Comments
 (0)