Update ImageCropPicker.m

fix camera request exception iOS 10 #79
This commit is contained in:
Vitaly Rotari 2016-09-23 12:19:15 +03:00 committed by GitHub
parent 362126ba99
commit 5a94230f56

View File

@ -108,7 +108,9 @@ RCT_EXPORT_METHOD(openCamera:(NSDictionary *)options
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
[[self getRootVC] presentViewController:picker animated:YES completion:nil];
dispatch_async(dispatch_get_main_queue(), ^{
[[self getRootVC] presentViewController:picker animated:YES completion:nil];
});
}];
#endif
}