about summary refs log tree commit diff
path: root/src/view/screens/NotFound.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/NotFound.tsx')
-rw-r--r--src/view/screens/NotFound.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/view/screens/NotFound.tsx b/src/view/screens/NotFound.tsx
new file mode 100644
index 000000000..3f6dd7aa0
--- /dev/null
+++ b/src/view/screens/NotFound.tsx
@@ -0,0 +1,15 @@
+import React from 'react'
+import {Shell} from '../shell'
+import {Text, Button, View} from 'react-native'
+import type {RootTabsScreenProps} from '../routes/types'
+
+export const NotFound = ({navigation}: RootTabsScreenProps<'NotFound'>) => {
+  return (
+    <Shell>
+      <View style={{justifyContent: 'center', alignItems: 'center'}}>
+        <Text style={{fontSize: 20, fontWeight: 'bold'}}>Page not found</Text>
+        <Button title="Home" onPress={() => navigation.navigate('Home')} />
+      </View>
+    </Shell>
+  )
+}