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.
- Install: yarn add redux-persist-expo-filesystem
- Make sure expo is a peer dependency
- Usage below:
import ExpoFileSystemStorage from "redux-persist-expo-filesystem"
const persistConfig = {
key: "root",
storage: ExpoFileSystemStorage
};
const store = createStore(
persistReducer(persistConfig, rootReducer)
);
Confirmed with expo 29.0.0 and redux-persist 5.10.0