redux-persist-react-native-fs
React Native File System adapter for redux-persist storage. Learn more.
Installation
- Install react-native-fs and link it to native android, ios, etc.
npm i --save react-native-fs
react-native link react-native-fs
- Install this library
npm i --save redux-persist
Usage
/*** For redux-persist*/const persistConfig = storage: NativeStorage // ...other config const persistor = /*** Stand alone or for testing*/await NativeStorageawait NativeStorageawait NativeStorageconsoleNativeStorageconsoleconsole