I'm using react-native-image-picker to load photos. This seems to work well for photos pulled out of the camera roll, but if the user chooses to take a photo, there's no data in the response, just an empty string.
I'm using these options:
{
title: 'Upload Photo',
cancelButtonTitle: 'Cancel',
takePhotoButtonTitle: 'Take Photo...',
chooseFromLibraryButtonTitle: 'Choose from Library...',
noData: false,
mediaType: 'photo',
quality: 0.2,
}
and launching the image picker with:
UIImagePickerManager.showImagePicker(options, (response) => {
console.log(response);
});
will work fine for images picked out of the camera roll, but will give me an empty string for response.data
when an new image is taken with the camera.
What gives?