Skip to content

Commit 5acf34b

Browse files
authored
Merge pull request #2 from Chinchila01/master
AsyncStorage is now imported from the correct package
2 parents 35b3319 + 47a956e commit 5acf34b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-storage-engine-reactnativeasyncstorage",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "react-native/AsyncStorage based engine for redux-storage",
55
"main": "build/index.js",
66
"scripts": {
@@ -41,5 +41,8 @@
4141
"eslint-plugin-mocha-only": "0.0.3",
4242
"mocca": "^1.0.3",
4343
"release-it": "^2.3.1"
44+
},
45+
"dependencies": {
46+
"@react-native-community/async-storage": "^1.4.0"
4447
}
4548
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AsyncStorage } from 'react-native';
1+
import AsyncStorage from '@react-native-community/async-storage';
22

33
export default (key) => ({
44
load() {

0 commit comments

Comments
 (0)