Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit dac901f

Browse files
committed
Change fs.df return type
1 parent 9b792d1 commit dac901f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ios/RNFetchBlobFS.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,8 @@ +(void) df:(RCTResponseSenderBlock)callback
738738
totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
739739
totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
740740
callback(@[[NSNull null], @{
741-
@"free" : [NSNumber numberWithInt:totalFreeSpace],
742-
@"total" : [NSNumber numberWithInt:totalSpace]
741+
@"free" : [NSString stringWithFormat:@"%d", totalFreeSpace],
742+
@"total" : [NSString stringWithFormat:@"%d", totalSpace]
743743
}]);
744744
} else {
745745
callback(@[@"failed to get storage usage."]);

0 commit comments

Comments
 (0)