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