2020-04-17 22:03:04 +00:00
|
|
|
import { combineReducers } from "redux";
|
2020-04-18 19:59:05 +00:00
|
|
|
import walletReducer from "./WalletReducer";
|
|
|
|
import authKeyReducer from "./AuthKeyReducer";
|
|
|
|
import { persistCombineReducers } from "redux-persist";
|
|
|
|
import { AsyncStorage } from "react-native";
|
2020-04-17 22:03:04 +00:00
|
|
|
|
2020-04-18 19:59:05 +00:00
|
|
|
const persistConfig = {
|
|
|
|
key: 'root',
|
|
|
|
storage: AsyncStorage,
|
|
|
|
whitelist: ['authKeyReducer'],
|
|
|
|
blacklist: []
|
|
|
|
};
|
|
|
|
|
|
|
|
const rootReducer = persistCombineReducers(persistConfig, {
|
|
|
|
wallet: walletReducer,
|
|
|
|
authKey: authKeyReducer
|
2020-04-17 22:03:04 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export default rootReducer;
|