-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgotPassword.js
99 lines (93 loc) · 2.79 KB
/
forgotPassword.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import React, { useState } from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, TouchableOpacity, ScrollView } from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
import { SafeAreaView } from 'react-native-safe-area-context';
import { Header, Input } from './components';
import { colors } from './theme/colors';
import { moderateScale } from 'react-native-size-matters';
export default ForgotPassword = () => {
return (
<SafeAreaView style={styles.container} forceInset={{ top: "always" }}>
<StatusBar style="dark" />
<ScrollView style={{
paddingTop: moderateScale(60)
}}>
<Header
title="Forget Password"
text="Please enter your registered email address to recover your password"
/>
<View style={styles.inputBox}>
<Input
label="Email"
errorMessage="Enter your valid email address"
containerStyle={styles.inputStyle}
right={() =>
<MaterialIcons name="error" size={20} color={colors.error} />
}
/>
</View>
<View style={styles.footer}>
<TouchableOpacity
style={styles.btn}
onPress={() => { }}
activeOpacity={0.7}
>
<Text style={styles.btnText}>
Send
</Text>
</TouchableOpacity>
</View>
</ScrollView>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
inputBox: {
paddingHorizontal: "5%",
marginTop: "5%"
},
inputStyle: {
marginBottom: "8%"
},
otpBox: {
marginTop: "14%"
},
passwordStyle: {
color: colors.primary,
fontSize: moderateScale(14),
fontWeight: "600"
},
footerText: {
color: "#A1A5AC",
fontSize: moderateScale(14),
fontWeight: "400",
textAlign: "center"
},
link: {
color: colors.primary,
fontWeight: "bold"
},
btn: {
backgroundColor: colors.primary,
justifyContent: "center",
alignItems: "center",
paddingVertical: "5%",
borderRadius: 10,
marginTop: "10%",
marginBottom: "10%"
},
btnText: {
color: "white",
fontSize: moderateScale(16),
fontWeight: "600"
},
footer: {
paddingHorizontal: "5%",
marginTop: "4%"
}
});