react-native-file-manager
WARN: Not supported for ios for a minute
Simple file system access on iOS & Android.
Setup
Currently there is no easy setup with npm. It will be coming in the future when this project is in a working state.
Usage
For a full list of available methods, see the API Reference.
; //Create a folderfs; return Promise//Create Filefs; return Promise//Read filefs; return Promise//Delete File/Pathfs; return Promise//Check if file existfs; return Promise//List files in folderfs; return Promise//Get the directory a storage method gets put intofs; return Promise
Selecting a storage class
Data stored can be in one of may different classes. These classes defined how the device will handel the data when space gets low.
Files need to be read from the same storage class they're saved to, and two files can have the same name if they're located in different classes. The options are:
Class | Description |
---|---|
backedUp |
These files are automatically backed up on supported devices |
important |
Excluded from backup, but still kept around in low-storage situations |
auxiliary |
Files that the app can function without. Can be deleted by the system in low-storage situations. |
temporary |
For temporary files and caches. Can be deleted by the system any time. |