Added save to gallery option - IOS only

This commit is contained in:
victorsosa
2016-05-07 08:05:48 -04:00
parent 09f4768fb6
commit 71ced030ce

View File

@ -95,7 +95,9 @@ 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) {
listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { saveToGallery: saveToGallery });
}
else {
listener = UIImagePickerControllerDelegateImpl.new().initWithCallback(resolve);
}