From d7efde9115a0bd2d6a0309ac6fb1c018bf06dc30 Mon Sep 17 00:00:00 2001 From: Zack Story Date: Sun, 1 Sep 2019 18:44:33 -0600 Subject: [PATCH] (docs): add v6 migration instructions --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 0b7d6c6a9..88b91459f 100644 --- a/README.md +++ b/README.md @@ -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`