Compare commits
2 Commits
2041c8998a
...
c1805643c8
Author | SHA1 | Date | |
---|---|---|---|
c1805643c8 | |||
f1c296c0d3 |
@ -30,27 +30,31 @@ export default function Tab() {
|
||||
alert("Something went wrong");
|
||||
}
|
||||
}
|
||||
const opt3 = ["Bad", "Medium", "Excellent!"];
|
||||
const opt5 = [
|
||||
"Disgust",
|
||||
"Not great, not terrible",
|
||||
"Good",
|
||||
"Why not?",
|
||||
"Excellent!",
|
||||
];
|
||||
const opt2 = ["Yes", "No"];
|
||||
const sourness = ["Good", "Bad"];
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Button
|
||||
title="Add Review"
|
||||
color={colors.gold}
|
||||
onPress={() => {
|
||||
router.replace("/review/add");
|
||||
}}
|
||||
/>
|
||||
|
||||
<FlatList
|
||||
data={data}
|
||||
style={styles.reviewList}
|
||||
keyExtractor={(item) => String(item._id)}
|
||||
renderItem={({ item }) => (
|
||||
<View style={styles.item}>
|
||||
<Text>Name: {item.name}</Text>
|
||||
<Text>Brand: {item.brand}</Text>
|
||||
<Text>Degree: {item.degree}</Text>
|
||||
<Text>Packaging: {item.packaging}</Text>
|
||||
<Text>Foam → {opt3[item.foam - 1]}</Text>
|
||||
<Text>Bitter / Sweetness → {opt3[item.bitter_sweetness - 1]}</Text>
|
||||
<Text>Taste → {opt5[item.taste - 1]}</Text>
|
||||
<Text>Packaging → {opt5[item.packaging - 1]}</Text>
|
||||
<Text>Sourness → {sourness[item.sourness - 1]}</Text>
|
||||
<Text>Would again? → {opt2[item.would_again - 1]}</Text>
|
||||
</View>
|
||||
)}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user