Преглед на файлове

Change fs.df return type

Ben Hsieh преди 8 години
родител
ревизия
dac901f160
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      src/ios/RNFetchBlobFS.m

+ 2
- 2
src/ios/RNFetchBlobFS.m Целия файл

@@ -738,8 +738,8 @@ NSMutableDictionary *fileStreams = nil;
738 738
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
739 739
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
740 740
         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]
743 743
                 }]);
744 744
     } else {
745 745
         callback(@[@"failed to get storage usage."]);