fixing add photo using camera

This commit is contained in:
João Ferreiro 2022-11-29 16:11:17 +00:00
parent 23ea592987
commit 87d37f9df9
3 changed files with 11 additions and 6 deletions

View file

@ -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"