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 CRNA/Expo apps due to react-native linking.

Comes with typescript definitions.

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)
);

Compatibility

Confirmed with expo 29.0.0 and redux-persist 5.10.0