Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-persist-expo-fs-storage

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-persist-expo-fs-storage

Redux-Persist storage engine for Expo file system

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
decreased by-38.57%
Maintainers
1
Weekly downloads
 
Created
Source

Redux Persist FS Storage for Expo

Redux Persist storage engine for React Native Expo file system, this will also work for Apollo Persist.

Credits to techwes for porting this to the Expo FileSystem.

Install

yarn add https://github.com/nohac/redux-persist-expo-fs-storage

note: Not yet published to npm

Usage

import { persistStore } from 'redux-persist'
import FSStorage from 'redux-persist-expo-fs-storage';

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

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

import { persistStore } from 'redux-persist'
import FSStorage, { CacheDir } from 'redux-persist-expo-fs-storage';

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.

Keywords

FAQs

Package last updated on 19 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc