diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 17:13:29 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 17:13:29 -0500 |
commit | 802222fe7181303d710607129e1c74427f07c97c (patch) | |
tree | 169b0878ed5d60f511fcf188df5118c0f446a37d /src/screens/Signup.tsx | |
parent | fc3b2952bb59b80665ebb53ffb3377f647ccdbd3 (diff) | |
download | voidsky-802222fe7181303d710607129e1c74427f07c97c.tar.zst |
Add auth navigations
Diffstat (limited to 'src/screens/Signup.tsx')
-rw-r--r-- | src/screens/Signup.tsx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/screens/Signup.tsx b/src/screens/Signup.tsx new file mode 100644 index 000000000..bf7f8f2f8 --- /dev/null +++ b/src/screens/Signup.tsx @@ -0,0 +1,23 @@ +import React from 'react' +import {Text, Button, View, SafeAreaView} from 'react-native' +import type {RootStackScreenProps} from '../routes/types' +import {useStores} from '../state' + +export function Signup({navigation}: RootStackScreenProps<'Signup'>) { + const store = useStores() + return ( + <SafeAreaView style={{flex: 1}}> + <View style={{flex: 1}}> + <Text>Let's create your account</Text> + <Button + title="Create new account" + onPress={() => store.session.setAuthed(true)} + /> + <Button + title="Log in to an existing account" + onPress={() => navigation.navigate('Login')} + /> + </View> + </SafeAreaView> + ) +} |