aboutsummaryrefslogtreecommitdiffstats
path: root/src/screens/Auth/LoginScreen.js
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-17 20:01:29 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-17 20:01:29 +0530
commit74e3e3e6f65c86f842428927df43e422884de7cb (patch)
treec06fb16f540ace090d9830ed660434f69c298c60 /src/screens/Auth/LoginScreen.js
parent121caf3f3be5dcdd9b5b6f32a9785b3992ef53d5 (diff)
downloadmall-app-74e3e3e6f65c86f842428927df43e422884de7cb.tar.gz
mall-app-74e3e3e6f65c86f842428927df43e422884de7cb.tar.bz2
mall-app-74e3e3e6f65c86f842428927df43e422884de7cb.zip
Added testing button on loginscreen to navigate inside the application
Diffstat (limited to 'src/screens/Auth/LoginScreen.js')
-rw-r--r--src/screens/Auth/LoginScreen.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/screens/Auth/LoginScreen.js b/src/screens/Auth/LoginScreen.js
index 6ced78d..c74fed4 100644
--- a/src/screens/Auth/LoginScreen.js
+++ b/src/screens/Auth/LoginScreen.js
@@ -21,6 +21,12 @@ const LoginScreen = ({ navigation }) => {
navigation.navigate('ForgotPassword');
};
+ const handleTesting = () => {
+ console.log("Navigating to Forgot Password");
+ // Navigate to the forgot password screen
+ navigation.navigate('MallSelection');
+ };
+
return (
<View style={styles.container}>
<Text style={styles.title}>Login</Text>
@@ -43,6 +49,7 @@ const LoginScreen = ({ navigation }) => {
<View style={styles.buttonContainer}>
<Button title="Register" onPress={handleRegister} />
<Button title="Forgot Password?" onPress={handleForgotPassword} />
+ <Button title="Testing" onPress={handleTesting} />
</View>
</View>
);