Skip to content

Commit

Permalink
(docs): add v6 migration instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rt2zz authored Sep 2, 2019
1 parent 06d69c8 commit d7efde9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ Persist and rehydrate a redux store.
[![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)
[![#redux-persist on Discord](https://img.shields.io/discord/102860784329052160.svg)](https://discord.gg/ExrEvmv)

## v6 upgrade
**Web**: no breaking changes
**React Native**: Users must now explicitly pass their storage engine in. e.g.
```js
import AsyncStorage from '@react-native-community/async-storage';

const persistConfig = {
//...
storage: AsyncStorage
}
```

## Quickstart
`npm install redux-persist`

Expand Down

0 comments on commit d7efde9

Please sign in to comment.