diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-06 22:53:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 22:53:58 -0500 |
commit | 2f519bd66e7f0eeb374dfcd59043ad020196140e (patch) | |
tree | 50d00b731bcb151c7af7b98cf67ffe37a4e74d72 /src/view/screens/TermsOfService.tsx | |
parent | a74919ef33df7b9a4750ae06d99205fb77be95dd (diff) | |
download | voidsky-2f519bd66e7f0eeb374dfcd59043ad020196140e.tar.zst |
Add tos, community guidelines, and copyright policy (#410)
* Add tos, community guidelines, and copyright policy * Fix lint
Diffstat (limited to 'src/view/screens/TermsOfService.tsx')
-rw-r--r-- | src/view/screens/TermsOfService.tsx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/view/screens/TermsOfService.tsx b/src/view/screens/TermsOfService.tsx new file mode 100644 index 000000000..804200e07 --- /dev/null +++ b/src/view/screens/TermsOfService.tsx @@ -0,0 +1,38 @@ +import React from 'react' +import {View} from 'react-native' +import {useFocusEffect} from '@react-navigation/native' +import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types' +import {ViewHeader} from '../com/util/ViewHeader' +import {useStores} from 'state/index' +import {ScrollView} from 'view/com/util/Views' +import {Text} from 'view/com/util/text/Text' +import {usePalette} from 'lib/hooks/usePalette' +import {s} from 'lib/styles' +import Html from '../../locale/en/terms-of-service' + +type Props = NativeStackScreenProps<CommonNavigatorParams, 'TermsOfService'> +export const TermsOfServiceScreen = (_props: Props) => { + const pal = usePalette('default') + const store = useStores() + + useFocusEffect( + React.useCallback(() => { + store.shell.setMinimalShellMode(false) + }, [store]), + ) + + return ( + <View> + <ViewHeader title="Terms of Service" /> + <ScrollView style={[s.hContentRegion, pal.view]}> + <View style={[s.p20]}> + <Text type="title-xl" style={[pal.text, s.bold, s.pb20]}> + Terms of Service + </Text> + <Html /> + </View> + <View style={s.footerSpacer} /> + </ScrollView> + </View> + ) +} |