as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
@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

  1. Add the JavaScript library dependency in the package.json file. Select the tab for your React Native version.
  1. Reinstall dependencies using npm install command.

Examples

The example below demonstrates how to write text to a file.
The example below demonstrates how to download or upload 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 Vega getTotalDiskCapacityAsync always returns 0. The deleteLegacyDocumentDirectoryAndroid is supported by non-operable on the Vega platform. Additionally, the following classes are not supported on Vega:
  • DownloadResumable
  • createDownloadResumable
  • FileSystemCancellableNetworkTask
  • UploadTask

Additional resources

For information on additional libraries, see Supported Third-Party Libraries and Services.
最后修改于 2026年8月3日