redux-persist-expo-filesystem
v3.0.0
Published
Redux-Persist storage engine using Expo filesystem that removes the need to eject Expo/CRNA app
Maintainers
Readme
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
- v3.0.0 uses the updated
expo-file-systemand is compatible withexpo54+. - v2.0.2 imports from
expo-file-systemunimodule and is compatible withexpo34 to 53 (inclusive). - v1.0.1 imports from
expoand is compatible withexpo27 to 33 (inclusive).
Setup
- Install
redux-persist-expo-filesystem. - Make sure
expois a peer dependency. - Sample usage below:
import ExpoFileSystemStorage from "redux-persist-expo-filesystem";
const persistConfig = {
key: "root",
storage: ExpoFileSystemStorage,
};
const store = createStore(persistReducer(persistConfig, rootReducer));