Added save to gallery option - IOS only

This commit is contained in:
victorsosa
2016-05-07 08:06:30 -04:00
parent 71ced030ce
commit 97cec87410

View File

@ -95,7 +95,7 @@ export var takePicture = function (options): Promise<any> {
}
if (reqWidth && reqHeight) {
listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { width: reqWidth, height: reqHeight, keepAspectRatio: keepAspectRatio, saveToGallery: saveToGallery });
} if (saveToGallery) {
} else if (saveToGallery) {
listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { saveToGallery: saveToGallery });
}
else {