Skip to content

Commit

Permalink
Merge pull request #3 from GenomeUS/FILTER-BY-CREATIONDATE
Browse files Browse the repository at this point in the history
Filter by creationDate
  • Loading branch information
joseguerrerov authored Apr 5, 2019
2 parents dfa04a1 + 8dec5c0 commit 65f51c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNCCameraRollManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static void RCTResolvePromise(RCTPromiseResolveBlock resolve,

// Predicate for fetching assets within a collection
PHFetchOptions *const assetFetchOptions = [RCTConvert PHFetchOptionsFromMediaType:mediaType];
assetFetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"modificationDate" ascending:NO]];
assetFetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"creationDate" ascending:NO]];

BOOL __block foundAfter = NO;
BOOL __block hasNextPage = NO;
Expand Down

0 comments on commit 65f51c2

Please sign in to comment.