@amazon-devices/expo-file-system provides access to file system of the device. It is also capable of downloading and uploading files from network URLs.
Installation
- Add the JavaScript library dependency in the
package.jsonfile. Select the tab for your React Native version.
- React Native 0.72
- React Native 0.83
- Reinstall dependencies using
npm installcommand.
Examples
The example below demonstrates how to write text to a file.API reference
Check out the documentation page for info about this library, API reference and more Official Expo documentation for expo-file-system.Constants
Methods
Supported URI schemes
In this table, you can see what type of URI can be handled by each method.Implementation details
On VegagetTotalDiskCapacityAsync always returns 0.
The deleteLegacyDocumentDirectoryAndroid is supported by non-operable on the Vega platform.
Additionally, the following classes are not supported on Vega:
DownloadResumablecreateDownloadResumableFileSystemCancellableNetworkTaskUploadTask

