-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangePasswordRequestScreen.js
More file actions
72 lines (67 loc) · 1.86 KB
/
ChangePasswordRequestScreen.js
File metadata and controls
72 lines (67 loc) · 1.86 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// ChangePasswordRequestScreen.js
import React, { useState } from 'react';
import { View, Text, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
const ChangePasswordRequestScreen = ({ navigation }) => {
const [email, setEmail] = useState('');
const handleSubmit = () => {
// Lógica para enviar solicitação de alteração de senha
alert(`Solicitação de alteração de senha enviada para: ${email}`);
// Navegar de volta para a tela de perfil
navigation.goBack();
};
return (
<View style={styles.container}>
<Text style={styles.title}>Alterar Senha</Text>
<Text style={styles.subtitle}>Digite seu e-mail para receber instruções de alteração de senha.</Text>
<TextInput
style={styles.input}
placeholder="Digite seu e-mail"
value={email}
onChangeText={(text) => setEmail(text)}
/>
<TouchableOpacity style={styles.submitButton} onPress={handleSubmit}>
<Text style={styles.submitButtonText}>Enviar Solicitação</Text>
</TouchableOpacity>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
padding: 20,
},
title: {
fontSize: 24,
fontWeight: 'bold',
textAlign: 'center',
color: '#3498db',
marginBottom: 10,
},
subtitle: {
fontSize: 16,
textAlign: 'center',
color: '#333',
marginBottom: 20,
},
input: {
height: 40,
borderColor: '#ccc',
borderWidth: 1,
borderRadius: 8,
marginBottom: 20,
paddingHorizontal: 10,
},
submitButton: {
backgroundColor: '#3498db',
padding: 15,
borderRadius: 8,
alignItems: 'center',
},
submitButtonText: {
color: '#fff',
fontSize: 16,
fontWeight: 'bold',
},
});
export default ChangePasswordRequestScreen;