import React, { useContext } from 'react'; import { View, Text, Button, StyleSheet, ScrollView } from 'react-native'; import { CartContext } from '../../context/CartContext'; const CartScreen = ({ navigation }) => { const { cart, updateQuantity } = useContext(CartContext); const handleCheckout = () => navigation.navigate('Checkout'); return ( {cart.map((item, index) => ( {item.name} Quantity: {item.quantity}