Skip to content

Commit

Permalink
Merge pull request #350 from usrbowe/feat/replace-async-storage
Browse files Browse the repository at this point in the history
replace RN AsyncStorage with community package
  • Loading branch information
calumpeak committed Aug 30, 2019
2 parents bf950fd + b2361a4 commit f2df3dd
Show file tree
Hide file tree
Showing 3 changed files with 563 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"@react-native-community/async-storage": "^1.6.1",
"redux-persist": "^4.6.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/defaults/persist.native.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow

// $FlowIgnore
import { AsyncStorage } from 'react-native'; // eslint-disable-line
import { persistStore } from 'redux-persist';
import AsyncStorage from '@react-native-community/async-storage';

export default (store: any, options: {}, callback: any) =>
persistStore(store, { storage: AsyncStorage, ...options }, callback);

0 comments on commit f2df3dd

Please sign in to comment.