Skip to content

Commit

Permalink
In iOS 14 didCancel: true is not returned when camera is cancelled vi…
Browse files Browse the repository at this point in the history
…a swipe gesture (#2170)
  • Loading branch information
JDrizzy committed Nov 22, 2023
1 parent eb986c4 commit 5a79ea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/ImagePickerManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ - (void)launchImagePicker:(NSDictionary *)options callback:(RCTResponseSenderBlo
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
[ImagePickerUtils setupPickerFromOptions:picker options:self.options target:target];
picker.delegate = self;
picker.presentationController.delegate = self;

if([self.options[@"includeExtra"] boolValue]) {
[self checkPhotosPermissions:^(BOOL granted) {
Expand Down

0 comments on commit 5a79ea8

Please sign in to comment.