summaryrefslogtreecommitdiffstats
path: root/src/screens/Auth/ForgotPasswordScreen.js
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-16 18:35:51 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-16 18:35:51 +0530
commit121caf3f3be5dcdd9b5b6f32a9785b3992ef53d5 (patch)
tree63be675651d51cc5ceb0604e90383f1bd8bed79a /src/screens/Auth/ForgotPasswordScreen.js
parentfd6e2805940bc6716d08e2190e66239914839f1a (diff)
downloadmall-app-121caf3f3be5dcdd9b5b6f32a9785b3992ef53d5.tar.gz
mall-app-121caf3f3be5dcdd9b5b6f32a9785b3992ef53d5.tar.bz2
mall-app-121caf3f3be5dcdd9b5b6f32a9785b3992ef53d5.zip
Added more navigation in SignUpScreen and in ForgotPasswordScreenHEADmaster
Diffstat (limited to 'src/screens/Auth/ForgotPasswordScreen.js')
-rw-r--r--src/screens/Auth/ForgotPasswordScreen.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/screens/Auth/ForgotPasswordScreen.js b/src/screens/Auth/ForgotPasswordScreen.js
index a768f20..0dd8c08 100644
--- a/src/screens/Auth/ForgotPasswordScreen.js
+++ b/src/screens/Auth/ForgotPasswordScreen.js
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { View, Text, TextInput, Button, StyleSheet, Alert } from 'react-native';
-const ForgotPasswordScreen = () => {
+const ForgotPasswordScreen = ({ navigation }) => {
const [email, setEmail] = useState('');
const handleForgotPassword = () => {
@@ -21,6 +21,9 @@ const ForgotPasswordScreen = () => {
autoCapitalize="none"
/>
<Button title="Reset Password" onPress={handleForgotPassword} />
+ <View style={styles.buttonContainer}>
+ <Button title="Back to Login" onPress={() => navigation.navigate('Login')} />
+ </View>
</View>
);
};
@@ -44,6 +47,10 @@ const styles = StyleSheet.create({
marginBottom: 12,
paddingHorizontal: 8,
},
+ buttonContainer: {
+ marginTop: 12,
+ },
});
export default ForgotPasswordScreen;
+