Package Exports
- expo-file-system
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (expo-file-system) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
expo-file-system
Provides access to the local file system on the device.
API documentation
Installation
This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.
For bare React Native projects, this package is included in @unimodules/core
, so if you use that then you already have this! If you are intentionally not using that package, follow the stpes below to install expo-file-system
manually.
Add the package to your npm dependencies
npm install expo-file-system
Configure for iOS
Add the dependency to your Podfile
and then run pod install
.
pod 'EXFileSystem', path: '../node_modules/expo-file-system/ios'
Configure for Android
- Append the following lines to
android/settings.gradle
:
include ':expo-file-system'
project(':expo-file-system').projectDir = new File(rootProject.projectDir, '../node_modules/expo-file-system/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:
api project(':expo-file-system')
- In
MainApplication.java
, import the package and add it to theReactModuleRegistryProvider
list:
import expo.modules.expo.modules.filesystem.FileSystemPackage;
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
// Your other packages will be here
new FileSystemPackage()
), Arrays.<SingletonModule>asList());
Contributing
Contributions are very welcome! Please refer to guidelines described in the contributing guide.