Skip to content

Commit

Permalink
Added name of the file with camera roll pictures
Browse files Browse the repository at this point in the history
Summary:
Added name parameter when delivering the camera roll images using react native CameraRoll library. Based on http://stackoverflow.com/questions/37283976/react-native-get-photo-name-from-camera-roll-ios
Closes #9961

Differential Revision: D3883582

Pulled By: majak

fbshipit-source-id: 5bfd1eb0601b3ce2ef1cdb4485060661d2fbad32
  • Loading branch information
mdrmuhaimin authored and Facebook Github Bot 8 committed Sep 18, 2016
1 parent 610c482 commit 9ee815f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/CameraRoll/RCTCameraRollManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,14 @@ static void RCTResolvePromise(RCTPromiseResolveBlock resolve,
CGSize dimensions = [result defaultRepresentation].dimensions;
CLLocation *loc = [result valueForProperty:ALAssetPropertyLocation];
NSDate *date = [result valueForProperty:ALAssetPropertyDate];
NSString *filename = [result defaultRepresentation].filename;
[assets addObject:@{
@"node": @{
@"type": [result valueForProperty:ALAssetPropertyType],
@"group_name": [group valueForProperty:ALAssetsGroupPropertyName],
@"image": @{
@"uri": uri,
@"filename" : filename,
@"height": @(dimensions.height),
@"width": @(dimensions.width),
@"isStored": @YES,
Expand Down

0 comments on commit 9ee815f

Please sign in to comment.