UNPKG

react-native-ecommerce-components

Version:

A compilation of components to optimize the development of your ecommerce

30 lines (29 loc) 753 B
import React from 'react'; interface Product { id: string; title: string; price: number; image: string; rating?: number; } interface ProductListProps { products: Product[]; onAddToCart: (product: Product) => void; onProductPress: (product: Product) => void; gridView?: boolean; title: string; subTitle?: string; styles?: { container?: object; productContainer?: object; productImage?: object; productTitle?: object; productPrice?: object; button?: object; buttonText?: object; title?: object; subTitle?: object; }; } declare const ProductList: React.FC<ProductListProps>; export default ProductList;