Compare commits
No commits in common. "c1805643c8bf7de0203ebeaaf937307e0db2549d" and "2041c8998a6cdaba694e18189efe01dfdb63ccd5" have entirely different histories.
c1805643c8
...
2041c8998a
@ -30,31 +30,27 @@ 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>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>
|
||||
<Text>Name: {item.name}</Text>
|
||||
<Text>Brand: {item.brand}</Text>
|
||||
<Text>Degree: {item.degree}</Text>
|
||||
<Text>Packaging: {item.packaging}</Text>
|
||||
</View>
|
||||
)}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user