Files
native-app/apps/expo/src/app/[...missing].tsx
2024-04-02 08:51:00 +02:00

26 lines
661 B
TypeScript

import * as Linking from "expo-linking";
import { Link, Stack } from "expo-router";
import { Text, View } from "tamagui";
export default function NotFoundScreen() {
if (Linking.useURL()) return null;
return (
<>
<Stack.Screen options={{ title: "Oops!" }} />
<View flex={1} alignItems="center" justifyContent="center" padding={5}>
<Text fontWeight="bold">This screen doesn&apos;t exist.</Text>
<Link
href="/"
style={{
marginTop: 16,
paddingVertical: 16,
}}
>
<Text color="skyblue">Go to home screen!</Text>
</Link>
</View>
</>
);
}