Home

Awesome

Redux-Persist for Expo Filesystem

Persist redux store to filesystem because of the following android limitation #199

Existing filesystem for redux-persist require ejecting of Expo apps due to react-native linking.

Comes with typescript definitions.

Compatibility

Setup

  1. Install: yarn add redux-persist-expo-filesystem
  2. Make sure expo is a peer dependency
  3. Usage below:
import ExpoFileSystemStorage from "redux-persist-expo-filesystem";
const persistConfig = {
  key: "root",
  storage: ExpoFileSystemStorage,
};
const store = createStore(persistReducer(persistConfig, rootReducer));