Created
November 20, 2020 14:13
-
-
Save GuilhermeLis/a7b35a73ef8f874efa740d2e6f522dcb to your computer and use it in GitHub Desktop.
Revisions
-
Guilherme Lisboa created this gist
Nov 20, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ import AsyncStorage from '@react-native-async-storage/async-storage'; import { persistReducer } from 'redux-persist'; export default (reducers: any) => { const persistedReducer = persistReducer( { key: 'redux-with-asyncstorage', storage: AsyncStorage, blacklist: [], }, reducers, ); return persistedReducer; };