-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomePg.js
51 lines (48 loc) · 1.51 KB
/
HomePg.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
KeyboardAvoidingView,
Image,
Keyboard,
TextInput,
TouchableOpacity,
Button
} from 'react-native';
import{styles} from './Styles';
import {stylesCad} from './Styles';
import { TouchableWithoutFeedback } from 'react-native-gesture-handler'
import 'react-native-gesture-handler';
function Home({navigation}) {
return (
<KeyboardAvoidingView style={styles.background}>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<Text style={styles.welcomeText}>
Seja bem vindo(a) ao
</Text>
<View style={styles.containerLogo}>
<Image source={require('./assets/agind.png')}/>
</View>
<View style={styles.container}>
<TouchableOpacity style={styles.btnSubmit} onPress={() => navigation.navigate('CadastroCliente')}>
<Text style={styles.submitText}>
Quero lavar meu carro
</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.btnSubmit} onPress={() => navigation.navigate('CadastroLavador')}>
<Text style={styles.submitText}>
Tenho um lava-rápido
</Text>
</TouchableOpacity>
<Text style={styles.alreadySigned}>
Já tem uma conta?
<Text style={styles.loginText} onPress={() => navigation.navigate('Login')}> Fazer login.</Text>
</Text>
</View>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
);
}
export{Home};