Added with and height to getImagesForIds on ios

This commit is contained in:
Yedidya Kennard 2017-01-22 11:05:11 +02:00
parent f2a2a0059c
commit 3ebd21f14d
1 changed files with 2 additions and 0 deletions

View File

@ -211,6 +211,8 @@ RCT_EXPORT_METHOD(getImagesForIds:(NSArray*)imagesIdArray
NSUInteger originalArrayIndex = [imagesIdArray indexOfObject:assetLocalId]; NSUInteger originalArrayIndex = [imagesIdArray indexOfObject:assetLocalId];
[assetsArray replaceObjectAtIndex:originalArrayIndex withObject:@{@"uri": assetInfoDict[@"uri"], [assetsArray replaceObjectAtIndex:originalArrayIndex withObject:@{@"uri": assetInfoDict[@"uri"],
@"width": @(asset.pixelWidth),
@"height": @(asset.pixelHeight),
@"size": assetInfoDict[@"size"], @"size": assetInfoDict[@"size"],
@"name": assetInfoDict[@"name"], @"name": assetInfoDict[@"name"],
@"id": assetLocalId}]; @"id": assetLocalId}];