# expo-fsstorage

> Storage engine for Expo's FileSystem

Latest version **1.0.0-beta.1** (published 2017-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-fsstorage
pnpm add expo-fsstorage
yarn add expo-fsstorage
bun add expo-fsstorage
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.1 |
| Published | 2017-12-27 |
| First published | 2017-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Giau Tran Minh |
| Maintainers | giautm |

## Links

- npm: https://www.npmjs.com/package/expo-fsstorage
- Repository: https://github.com/giautm/expo-fsstorage
- Homepage: https://github.com/giautm/expo-fsstorage#readme
- Issues: https://github.com/giautm/expo-fsstorage/issues
- npm.io page: https://npm.io/package/expo-fsstorage

## Recent versions

- 1.0.0-beta.1 (latest) — 2017-12-27

## README

# Expo FS Storage

[Expo Persist](https://github.com/rt2zz/redux-persist/) storage engine for React Native file system

### Install

```
yarn add expo-fsstorage
```

### Usage

```js
import { persistStore } from 'redux-persist'
import { FSStorage } from 'expo-fsstorage';

const persistor = persistStore(store, {
  storage: FSStorage(),
});
```

The default storage location is a folder called `expo-fsstorage` in the document directory for your app on the device. You can specify folder for persistor:

```js
import { persistStore } from 'redux-persist'
import { FSStorage, CacheDir } from 'expo-fsstorage';

const cachePersistor = persistStore(store, {
  storage: FSStorage(CacheDir, 'myApp'),
});
```

This will create `myApp` folder in cache storage for iOS and Android devices. You may create multiple persistors on different directories.

---
_Source: https://npm.io/package/expo-fsstorage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
