import { View, Text, ScrollView, Dimensions } from "react-native"; import React from "react"; import fontSize from "../../constants/fontSize"; import tw from "tailwind-rn"; const { width } = Dimensions.get("window"); const ProductReviews = ({ list }) => { const Property = ({ prop }) => { return ( {persian[prop]} {list[prop]} ); }; return ( refRBSheet.current.open()} style={[ tw( "flex flex-row-reverse justify-between items-center mt-3 rounded-md px-2 py-3 mb-4" ), { backgroundColor: "#50A9FF33", }, ]} > مشخصات محصول {Object?.keys(list)?.map((prop, index) => ( ))} ); }; export default ProductReviews; ProductReviews.defaultProps = { list: { display: "IPS LCD 4K Samsung backlight", weight: "2 کیلوگرم", proccessor: "Intel core I7 11700H", graphic: "Nvidia 3090TI 6GB", audio: "Sonic master", keyboard: "جزیره ای", accessories: "کیف + کابل تبدیل برق شهری", }, }; const persian = { display: "صفحه نمایش", weight: "وزن", proccessor: "پردازنده", graphic: "پردازنده گرافیکی", audio: "کارت صدا", keyboard: "کیبرد", accessories: "متعلقات جعبه", };