Skip to content

Commit d7efde9

Browse files
author
Zack Story
authored
(docs): add v6 migration instructions
1 parent 06d69c8 commit d7efde9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ Persist and rehydrate a redux store.
55
[![build status](https://img.shields.io/travis/rt2zz/redux-persist/master.svg?style=flat-square)](https://travis-ci.org/rt2zz/redux-persist) [![npm version](https://img.shields.io/npm/v/redux-persist.svg?style=flat-square)](https://www.npmjs.com/package/redux-persist) [![npm downloads](https://img.shields.io/npm/dm/redux-persist.svg?style=flat-square)](https://www.npmjs.com/package/redux-persist)
66
[![#redux-persist on Discord](https://img.shields.io/discord/102860784329052160.svg)](https://discord.gg/ExrEvmv)
77

8+
## v6 upgrade
9+
**Web**: no breaking changes
10+
**React Native**: Users must now explicitly pass their storage engine in. e.g.
11+
```js
12+
import AsyncStorage from '@react-native-community/async-storage';
13+
14+
const persistConfig = {
15+
//...
16+
storage: AsyncStorage
17+
}
18+
```
19+
820
## Quickstart
921
`npm install redux-persist`
1022

0 commit comments

Comments
 (0)