Skip to content

Commit

Permalink
fix(storage,ios): use long value for maxResults list option (fixes #2804
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Salakar committed Nov 25, 2019
1 parent 8b451b4 commit 9488103
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/storage/ios/RNFBStorage/RNFBStorageModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,14 @@ - (void)invalidate {
: (RCTPromiseRejectBlock) reject
) {
FIRStorageReference *storageReference = [self getReferenceFromUrl:url app:firebaseApp];
long *maxResults = [listOptions[@"maxResults"] pointerValue];
long maxResults = [listOptions[@"maxResults"] longValue];

id completionBlock = ^(FIRStorageListResult *result, NSError *error) {
if (error != nil) {
[self promiseRejectStorageException:reject error:error];
} else {
NSDictionary * dick = [RNFBStorageCommon listResultToDict:result];
// so we can see the result
resolve(dick);
NSDictionary *listResultDict = [RNFBStorageCommon listResultToDict:result];
resolve(listResultDict);
}
};

Expand Down

0 comments on commit 9488103

Please sign in to comment.