diff options
Diffstat (limited to 'src/view/screens/NotFound.tsx')
-rw-r--r-- | src/view/screens/NotFound.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/view/screens/NotFound.tsx b/src/view/screens/NotFound.tsx new file mode 100644 index 000000000..2483da1e6 --- /dev/null +++ b/src/view/screens/NotFound.tsx @@ -0,0 +1,13 @@ +import React from 'react' +import {Text, Button, View} from 'react-native' +import {useStores} from '../../state' + +export const NotFound = () => { + const stores = useStores() + return ( + <View style={{justifyContent: 'center', alignItems: 'center'}}> + <Text style={{fontSize: 20, fontWeight: 'bold'}}>Page not found</Text> + <Button title="Home" onPress={() => stores.nav.navigate('/')} /> + </View> + ) +} |