From 6735364402a8e6e54360884094333f6a47c28362 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Sat, 5 Jan 2019 23:59:51 -0500 Subject: [PATCH] Revert "[iOS] Update permissions flow for iOS 11 UIImagePickerController (#819)" This reverts commit ab4d858bf1800a99146ff3b35200261961f95f2b. --- ios/ImagePickerManager.m | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/ios/ImagePickerManager.m b/ios/ImagePickerManager.m index f8f1636f4..28d58703f 100644 --- a/ios/ImagePickerManager.m +++ b/ios/ImagePickerManager.m @@ -204,19 +204,14 @@ - (void)launchImagePicker:(RNImagePickerTarget)target }]; } else { // RNImagePickerTargetLibrarySingleImage - if (@available(iOS 11.0, *)) { - // iOS 11 no longer requires permission to access single image - showPickerViewController(); - } else { - [self checkPhotosPermissions:^(BOOL granted) { - if (!granted) { - self.callback(@[@{@"error": @"Photo library permissions not granted"}]); - return; - } + [self checkPhotosPermissions:^(BOOL granted) { + if (!granted) { + self.callback(@[@{@"error": @"Photo library permissions not granted"}]); + return; + } - showPickerViewController(); - }]; - }; + showPickerViewController(); + }]; } }