diff options
Diffstat (limited to 'src/screens/Auth/ForgotPasswordScreen.js')
-rw-r--r-- | src/screens/Auth/ForgotPasswordScreen.js | 9 |
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; + |