diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 16:32:03 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 16:32:03 -0500 |
commit | fc3b2952bb59b80665ebb53ffb3377f647ccdbd3 (patch) | |
tree | 37477c0803459ff55f0e26ae27c8231305e6856a /src/screens/NotFound.tsx | |
parent | d6942bffab68ce80d5cb26b42710dd9276f62ded (diff) | |
download | voidsky-fc3b2952bb59b80665ebb53ffb3377f647ccdbd3.tar.zst |
Add routes and core views
Diffstat (limited to 'src/screens/NotFound.tsx')
-rw-r--r-- | src/screens/NotFound.tsx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/screens/NotFound.tsx b/src/screens/NotFound.tsx new file mode 100644 index 000000000..afb91b402 --- /dev/null +++ b/src/screens/NotFound.tsx @@ -0,0 +1,27 @@ +import React from 'react' +import { + SafeAreaView, + ScrollView, + StatusBar, + Text, + Button, + useColorScheme, + View, +} from 'react-native' +import type {RootStackScreenProps} from '../routes/types' + +export const NotFound = ({navigation}: RootStackScreenProps<'NotFound'>) => { + const isDarkMode = useColorScheme() === 'dark' + + return ( + <SafeAreaView> + <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} /> + <ScrollView contentInsetAdjustmentBehavior="automatic"> + <View> + <Text>Page not found</Text> + <Button title="Home" onPress={() => navigation.navigate('Primary')} /> + </View> + </ScrollView> + </SafeAreaView> + ) +} |