import { Pressable, StyleSheet, Text, View } from 'react-native'; import React from 'react'; import OrderReceiptItem from '../components/OrderReceiptItem'; interface OrderHistoryCardProps { navigationHandler: any; CartList: any; CartListPrice: string; OrderDate: string; } const OrderReceiptCard: React.FC = ({ navigationHandler, CartList, CartListPrice, OrderDate, }) => { return ( {OrderDate} {CartList.map((data: any, index: any) => ( { navigationHandler({ index: data.index, id: data.id, type: data.type, }); }}> ))} Total Amount $ {CartListPrice} ) } export default OrderReceiptCard const styles = StyleSheet.create({})