Skip to content

Commit

Permalink
Merge pull request #396 from zkrige/patch-1
Browse files Browse the repository at this point in the history
Fix crash when taking photo from camera on ios
  • Loading branch information
ivpusic authored Jul 31, 2017
2 parents ff18678 + d7bf02f commit f19e0a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/ImageCropPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ - (void) processSingleImagePick:(UIImage*)image withViewController:(UIViewContro
// Alert.alert in the .then() handler.
[viewController dismissViewControllerAnimated:YES completion:[self waitAnimationEnd:^{
self.resolve([self createAttachmentResponse:filePath
withLocalIdentifier: localIdentifier
withFilename: filename
withLocalIdentifier:(localIdentifier) ? localIdentifier : @""
withFilename:(filename) ? filename : @""
withWidth:imageResult.width
withHeight:imageResult.height
withMime:imageResult.mime
Expand Down

0 comments on commit f19e0a5

Please sign in to comment.