unioil-loyalty-rn-app/app/redux/store.js

15 lines
743 B
JavaScript

import { createStore, combineReducers, applyMiddleware } from "redux";
import thunk from 'redux-thunk';
import { appTermsAndConditionsReducer } from "./reducers/AppTermsAndConditionsReducer";
import { appUserInfoReducer } from "./reducers/AppUserInfoReducer";
import { appWhatshotAndPromosReducer } from "./reducers/AppWhatshotAndPromosReducer";
import { appThemeReducer } from "./reducers/AppThemeReducer";
const rootReducer = combineReducers({
appTermsAndConditionsReducer: appTermsAndConditionsReducer,
appUserInfoReducer: appUserInfoReducer,
appWhatshotAndPromosReducer: appWhatshotAndPromosReducer,
appThemeReducer: appThemeReducer
});
const store = createStore(rootReducer, applyMiddleware(thunk));
export default store;