Fix: image was rendering inside buttons view
This commit is contained in:
parent
b6b9b989c7
commit
4fe4808b3c
@ -162,18 +162,12 @@ export default function BeerAdd() {
|
||||
textStyle={styles.imageTextButton}
|
||||
/>
|
||||
|
||||
{Platform.OS != "web" ? (
|
||||
<Button
|
||||
onPress={openCamera}
|
||||
title={"Open camera"}
|
||||
buttonStyle={styles.imageButton}
|
||||
textStyle={styles.imageTextButton}
|
||||
/>
|
||||
) : (
|
||||
false
|
||||
)}
|
||||
|
||||
{image && <Image source={{ uri: image }} style={styles.image} />}
|
||||
<Button
|
||||
onPress={openCamera}
|
||||
title="Open camera"
|
||||
buttonStyle={styles.imageButton}
|
||||
textStyle={styles.imageTextButton}
|
||||
/>
|
||||
</View>
|
||||
{image && <Image source={{ uri: image }} style={styles.image} />}
|
||||
<Button title="Add beer" color={colors.gold} onPress={addBeer} />
|
||||
|
Loading…
Reference in New Issue
Block a user