blob: bf7f8f2f87674cd867005717ae645cf402494096 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>
)
}
|