Added photos reducer.
This commit is contained in:
@@ -2,12 +2,13 @@ import AsyncStorage from "@react-native-community/async-storage";
|
||||
import { combineReducers } from "redux";
|
||||
import { persistReducer } from "redux-persist";
|
||||
import appReducer from "./app/app.reducer";
|
||||
import photosReducer from "./photos/photos.reducer";
|
||||
import userReducer from "./user/user.reducer";
|
||||
|
||||
const persistConfig = {
|
||||
key: "root",
|
||||
storage: AsyncStorage,
|
||||
whitelist: [],
|
||||
whitelist: ["photos"],
|
||||
blacklist: ["user", "app"],
|
||||
// whitelist: ["messaging", "tech", "application"],
|
||||
// blacklist: ["user", "email", "modals"],
|
||||
@@ -16,6 +17,7 @@ const persistConfig = {
|
||||
const rootReducer = combineReducers({
|
||||
user: userReducer,
|
||||
app: appReducer,
|
||||
photos: photosReducer,
|
||||
});
|
||||
|
||||
export default persistReducer(persistConfig, rootReducer);
|
||||
|
||||
Reference in New Issue
Block a user