Skip to content

Commit

Permalink
fix: preserved expo compatibility by using react-native AsyncStorage
Browse files Browse the repository at this point in the history
@react-native-community/async-storage is the way of the future, but not yet supported by expo
  • Loading branch information
nickineering committed Jan 29, 2020
1 parent 8d7198a commit 10276fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaults/persist.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

0 comments on commit 10276fa

Please sign in to comment.