|
|
|
@ -40,6 +40,7 @@ function Rates({ rate, productId, addVote, isBuyed = null, theme }) { |
|
|
|
|
type="star" |
|
|
|
|
ratingCount={5} |
|
|
|
|
imageSize={width / 25} |
|
|
|
|
ratingColor={Colors.theme1.grayE3} |
|
|
|
|
tintColor={ |
|
|
|
|
theme === "light" ? Colors.theme1.white : Colors.theme1.dark |
|
|
|
|
} |
|
|
|
@ -60,11 +61,11 @@ function Rates({ rate, productId, addVote, isBuyed = null, theme }) { |
|
|
|
|
</Pressable> |
|
|
|
|
<View style={[tw("flex flex-1"), { width: "60%" }]}> |
|
|
|
|
{[ |
|
|
|
|
{ name: "بخش ۱", value: 40 }, |
|
|
|
|
{ name: "بخش ۱", value: 20 }, |
|
|
|
|
{ name: "بخش ۱", value: 70 }, |
|
|
|
|
{ name: "بخش ۱", value: 10 }, |
|
|
|
|
{ name: "بخش ۱", value: 50 }, |
|
|
|
|
{ name: "یک ستاره", value: 40 }, |
|
|
|
|
{ name: "دو ستاره", value: 10 }, |
|
|
|
|
{ name: "سه ستاره", value: 10 }, |
|
|
|
|
{ name: "چهار ستاره", value: 30 }, |
|
|
|
|
{ name: "پنج ستاره", value: 10 }, |
|
|
|
|
].map((field, index) => ( |
|
|
|
|
<Progress key={index} data={field} theme={theme} /> |
|
|
|
|
))} |
|
|
|
|