From ff21a7ff19d0eb67016c1a3b297aa227c315c910 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Wed, 16 Oct 2024 16:29:28 +0530 Subject: Add ProductModal component for showing product details and add-to-cart functionality --- src/components/ProductModal.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/components/ProductModal.js b/src/components/ProductModal.js index e69de29..a78e86a 100644 --- a/src/components/ProductModal.js +++ b/src/components/ProductModal.js @@ -0,0 +1,40 @@ +import React from 'react'; +import { View, Text, Button, Modal, StyleSheet } from 'react-native'; + +const ProductModal = ({ visible, product, onClose, onAddToCart }) => ( + + + + {product.name} + {product.description} + Price: ${product.price} + +