fixing add photo using camera
This commit is contained in:
parent
23ea592987
commit
87d37f9df9
3 changed files with 11 additions and 6 deletions
|
@ -22,7 +22,10 @@ export const PhotoCarouselPicker = observer(function PhotoCarouselPicker({
|
|||
<TouchableOpacity
|
||||
style={[styles.galleryButton, styles.photo]}
|
||||
onPress={() => {
|
||||
openCamera({multiple: true, maxFiles: 4}).then()
|
||||
openCamera({multiple: true, maxFiles: 4}).then(item => {
|
||||
console.log(item)
|
||||
setSelectedPhotos([item.path, ...selectedPhotos])
|
||||
})
|
||||
}}>
|
||||
<FontAwesomeIcon
|
||||
icon="camera"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue