From 6a76594f71ffba95a3480e57f4a4243e212e09ba Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 17 Oct 2024 20:39:35 +0530 Subject: Added styling to the Cart and Checkout page --- src/screens/Auth/LoginScreen.js | 2 +- src/screens/Cart/CartScreen.js | 55 +++++++++++++++++++++---- src/screens/Checkout/CheckoutScreen.js | 75 +++++++++++++++++++++++++++++++--- 3 files changed, 119 insertions(+), 13 deletions(-) diff --git a/src/screens/Auth/LoginScreen.js b/src/screens/Auth/LoginScreen.js index c74fed4..3912e65 100644 --- a/src/screens/Auth/LoginScreen.js +++ b/src/screens/Auth/LoginScreen.js @@ -22,7 +22,7 @@ const LoginScreen = ({ navigation }) => { }; const handleTesting = () => { - console.log("Navigating to Forgot Password"); + console.log("Navigating to Testing channel"); // Navigate to the forgot password screen navigation.navigate('MallSelection'); }; diff --git a/src/screens/Cart/CartScreen.js b/src/screens/Cart/CartScreen.js index 392e665..b8ca0e4 100644 --- a/src/screens/Cart/CartScreen.js +++ b/src/screens/Cart/CartScreen.js @@ -1,5 +1,5 @@ import React, { useContext } from 'react'; -import { View, Text, Button } from 'react-native'; +import { View, Text, Button, StyleSheet, ScrollView } from 'react-native'; import { CartContext } from '../../context/CartContext'; const CartScreen = ({ navigation }) => { @@ -8,16 +8,57 @@ const CartScreen = ({ navigation }) => { const handleCheckout = () => navigation.navigate('Checkout'); return ( - + {cart.map((item, index) => ( - - {item.name} - Quantity: {item.quantity} -