Explorar el Código

Change fs.df return type

Ben Hsieh hace 8 años
padre
commit
dac901f160
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/ios/RNFetchBlobFS.m

+ 2
- 2
src/ios/RNFetchBlobFS.m Ver fichero

@@ -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."]);