From 71ced030cebda8f7991eb0ef431b372d7bde6e39 Mon Sep 17 00:00:00 2001 From: victorsosa Date: Sat, 7 May 2016 08:05:48 -0400 Subject: [PATCH] Added save to gallery option - IOS only --- camera/camera.ios.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/camera/camera.ios.ts b/camera/camera.ios.ts index 54d30d5b8..6887901d9 100644 --- a/camera/camera.ios.ts +++ b/camera/camera.ios.ts @@ -95,7 +95,9 @@ export var takePicture = function (options): Promise { } 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); }