Created
September 12, 2017 11:51
-
-
Save chuyihuang/2fafec0f03a5fcd14a6f856ab9c378e5 to your computer and use it in GitHub Desktop.
week_4_demo_3
This file contains 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 characters
import {createStore, applyMiddleware, compose} from 'redux'; | |
import thunk from 'redux-thunk'; | |
import indexReducer from './reducers/index'; | |
import {persistStore, autoRehydrate} from 'redux-persist'; | |
import {AsyncStorage} from 'react-native'; | |
const store = compose(applyMiddleware(thunk), autoRehydrate())(createStore)(indexReducer) | |
persistStore(store, {blacklist: [], storage: AsyncStorage}); | |
export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment