Skip to content

Commit

Permalink
Filter by creationDate
Browse files Browse the repository at this point in the history
  • Loading branch information
joseguerrerov committed Apr 5, 2019
1 parent dfa04a1 commit 8dec5c0
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 8dec5c0

Please sign in to comment.