Fixes: #25 again

This commit is contained in:
Filip Rojek 2024-05-14 22:39:37 +02:00
parent 82c90c1ceb
commit 6d6afc6274

View File

@ -179,6 +179,7 @@ export default function BeerAdd() {
theme="DropdownTheme"
//searchable={true} //maybe we can use it later...
/>
<View style={styles.imageContainer}>
<Button
title="Open gallery"
@ -187,14 +188,19 @@ export default function BeerAdd() {
textStyle={styles.imageTextButton}
/>
{Platform.OS != "web" ? (
<Button
onPress={openCamera}
title="Open camera"
onPress={openCamera}
buttonStyle={styles.imageButton}
textStyle={styles.imageTextButton}
/>
) : (
false
)}
{image && <Image source={{ uri: image }} style={styles.image} />}
</View>
{image && <Image source={{ uri: image.uri }} style={styles.image} />}
<Button title="Add beer" color={colors.gold} onPress={addBeer} />
</View>
</View>