mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
fix(storage,ios): use long value for maxResults list option (fixes #2804)
This commit is contained in:
@@ -164,15 +164,14 @@ RCT_EXPORT_METHOD(list:
|
||||
: (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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user