bbbcf9f586
Adds necessary dependencies including axios and react-native-calendars to pnpm-lock.yaml. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7b0991ce-c7b8-4c82-9acc-fd3f9e762a01 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: dc1266fa-8375-43e1-aca0-9df31350f647 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/86064bd6-c937-4ca5-a5bf-bbef5749fb60/7b0991ce-c7b8-4c82-9acc-fd3f9e762a01/kWnlAIM Replit-Helium-Checkpoint-Created: true
46 lines
1006 B
TypeScript
46 lines
1006 B
TypeScript
import { Link, Stack } from "expo-router";
|
|
import { StyleSheet, Text, View } from "react-native";
|
|
|
|
import { useColors } from "@/hooks/useColors";
|
|
|
|
export default function NotFoundScreen() {
|
|
const colors = useColors();
|
|
|
|
return (
|
|
<>
|
|
<Stack.Screen options={{ title: "Oops!" }} />
|
|
<View style={[styles.container, { backgroundColor: colors.background }]}>
|
|
<Text style={[styles.title, { color: colors.foreground }]}>
|
|
This screen doesn't exist.
|
|
</Text>
|
|
|
|
<Link href="/" style={styles.link}>
|
|
<Text style={[styles.linkText, { color: colors.primary }]}>
|
|
Go to home screen!
|
|
</Text>
|
|
</Link>
|
|
</View>
|
|
</>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
padding: 20,
|
|
},
|
|
title: {
|
|
fontSize: 20,
|
|
fontWeight: "bold",
|
|
},
|
|
link: {
|
|
marginTop: 15,
|
|
paddingVertical: 15,
|
|
},
|
|
linkText: {
|
|
fontSize: 14,
|
|
},
|
|
});
|