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

[QUESTION] How to use RNFetchBlob.fs.df() ? #302

Closed
@ValBerthe

Description

@ValBerthe

Using react-native-fetch-blob 0.10.2
Using xcode and iPhone 6S emulator, iOS 10.2
Using react-native 0.42


I am working on a project using RNFS, but since they recommend to use RNFetchBlob, I'm going to refactor everything. Among other features, I'm using RNFS's getFSInfo() in order to retrieve free storage space left. So, as 0.10.0 introduced df(), I would like to know how it works (wiki section is empty).

I have those noticeable differences :

// RNFS
{
  totalSpace: 248828264448 (~ 248 GBytes)
  freeSpace: 216244088832 (~ 216 GBytes)
}

// RNFetchBlob
{
  free: 1495726032 (~ 1.5 GBytes)
  total: -279838720 (~ -279 MBytes)
}

Why those differences ? Is it a matter of emulator's storage/laptop storage ? Why is RNFetchBlob's total a negative number ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions