blob: 0305b907c1d021ae32e0d5c10aa5738e5e0d44e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import React from 'react';
import {RouteProp} from '@react-navigation/native';
import {StackNavigationProp} from '@react-navigation/stack';
import {View, Text, Button} from 'react-native';
import {RootStackParams} from '../routes';
type LoginScreenRouteProp = RouteProp<RootStackParams, 'Login'>;
type LoginScreenNavigationProp = StackNavigationProp<RootStackParams, 'Login'>;
interface LoginProps {
route: LoginScreenRouteProp;
navigation: LoginScreenNavigationProp;
}
const Login = ({navigation}: LoginProps) => {
return (
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
<Text style={{fontSize: 18}}>Welcome to Tagg! Login page goes here.</Text>
<Button
title="Register"
onPress={() => navigation.navigate('Registration')}
/>
</View>
);
};
export default Login;
|