diff --git a/app/(tabs)/(add)/AddScreen.tsx b/app/(tabs)/(add)/AddScreen.tsx index e420054..04f5310 100644 --- a/app/(tabs)/(add)/AddScreen.tsx +++ b/app/(tabs)/(add)/AddScreen.tsx @@ -1,13 +1,16 @@ import {SafeAreaView, View, Text} from "react-native"; import React from "react"; +import InternalError from "@/components/error/InternalErrorProblem"; export default function AddScreen() { return ( - Welcome to Add Screen - We will do it soon + ); -} \ No newline at end of file +} + +//Welcome to Add Screen +// We will do it soon \ No newline at end of file diff --git a/app/(tabs)/(help)/HelpsScreen.tsx b/app/(tabs)/(help)/HelpsScreen.tsx index 48e20f0..c478b22 100644 --- a/app/(tabs)/(help)/HelpsScreen.tsx +++ b/app/(tabs)/(help)/HelpsScreen.tsx @@ -1,12 +1,12 @@ import {SafeAreaView, Text, View} from "react-native"; import React from "react"; +import Blocked from "@/components/error/BlockedProblem"; export default function HelpsScreen() { return ( - Welcome to Help Screen - We will do it soon + diff --git a/app/(utility)/Error.tsx b/app/(utility)/Error.tsx new file mode 100644 index 0000000..259cedb --- /dev/null +++ b/app/(utility)/Error.tsx @@ -0,0 +1,37 @@ +import Text from "@/components/ui/Text"; +import React, {forwardRef} from "react"; +import {Image, View, ViewProps} from "react-native"; +import BackButton from "@/components/BackButton"; + +import {Entypo} from "@expo/vector-icons"; + +export interface ProblemProps extends ViewProps{ + picture: string; + problem: string; + description: string; + information: string; + isVisible?: boolean; +} + +export default forwardRef (({className, ...Props}, ref) => { + return ( + + + + + + + + + + {Props.problem} + {Props.description} + + + + {Props.information} + + + + ); +}); \ No newline at end of file diff --git a/app/+not-found.tsx b/app/+not-found.tsx index 04514bf..dcac0d4 100644 --- a/app/+not-found.tsx +++ b/app/+not-found.tsx @@ -1,55 +1,18 @@ -import React from "react"; -import { - Image, - SafeAreaView, - StatusBar, - Text, - TouchableOpacity, - View, -} from "react-native"; +import {Link, router, Stack, usePathname, useRouter} from 'expo-router'; +import {Button, StyleSheet, Text, View} from 'react-native'; -export default function NotFoundScreen() { - return ( - - - - {/* Back Button Area */} - - - - - {/* Main Content */} - - {/* Magnifying Glass Image */} - - {/* Error Text */} - Not Found - - {/* Error Message */} - - Whoops! Coach S can't find this page :( - - - {/* Status Code */} - - - :warning: Status Code: 404 - - +export default function NotFoundScreen() { + const pathname = usePathname(); + const router = useRouter(); - {/* Home Button */} - - - Take Me Home - - + return ( + <> + + + This screen {pathname} doesn't exist: {pathname} +