From 47a956e679755e0377ab4f9e730c0c139be76d1f Mon Sep 17 00:00:00 2001 From: Filipe Date: Fri, 17 May 2019 16:25:45 +0100 Subject: [PATCH] AsyncStorage is now imported from the correct package --- package.json | 5 ++++- src/index.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9c1fa15..0fbb248 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-storage-engine-reactnativeasyncstorage", - "version": "1.0.5", + "version": "1.0.6", "description": "react-native/AsyncStorage based engine for redux-storage", "main": "build/index.js", "scripts": { @@ -41,5 +41,8 @@ "eslint-plugin-mocha-only": "0.0.3", "mocca": "^1.0.3", "release-it": "^2.3.1" + }, + "dependencies": { + "@react-native-community/async-storage": "^1.4.0" } } diff --git a/src/index.js b/src/index.js index 7d42098..062a9b3 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import { AsyncStorage } from 'react-native'; +import AsyncStorage from '@react-native-community/async-storage'; export default (key) => ({ load() {