mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 10:58:16 +00:00
bug fixed - check if the source URL is empty or nil
This commit is contained in:
parent
6b79866963
commit
b4e17df95d
@ -395,7 +395,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options
|
||||
- (NSDictionary*) createAttachmentResponse:(NSString*)filePath withSourceURL:(NSString*)sourceURL withLocalIdentifier:(NSString*)localIdentifier withFilename:(NSString*)filename withWidth:(NSNumber*)width withHeight:(NSNumber*)height withMime:(NSString*)mime withSize:(NSNumber*)size withData:(NSString*)data {
|
||||
return @{
|
||||
@"path": filePath,
|
||||
@"sourceURL": sourceURL,
|
||||
@"sourceURL": (sourceURL) ? sourceURL : @"",
|
||||
@"localIdentifier": (localIdentifier) ? localIdentifier : @"",
|
||||
@"filename": (filename) ? filename : @"",
|
||||
@"width": width,
|
||||
|
Loading…
x
Reference in New Issue
Block a user