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/Cart/CartScreen.js | 55 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 7 deletions(-) (limited to 'src/screens/Cart') 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} -