add yml file
RN APK Build / build (push) Failing after 23m47s

This commit is contained in:
2026-04-22 16:07:47 +05:30
commit 6fd0bee8a3
513 changed files with 251121 additions and 0 deletions
@@ -0,0 +1,29 @@
const initialState = {
loading: false,
badgeCount: 0,
notifications: {},
error: null,
};
const notificationReducer = (state = initialState, action) => {
// console.log('Action dispatched---', action);
switch (action.type) {
case 'SET_LOADING':
return { ...state, loading: action.data.loading };
case 'SET_BADGE_COUNT':
return { ...state, badgeCount: action.data.badgeCount};
case 'SET_NOTIFICATIONS':
console.log('Reducer - notifications:', action.data.notifications);
return { ...state, notifications: action.data.notifications};
case 'GET_NOTIFICATIONS':
return { ...state };
case 'FETCH_NOTIFICATIONS_FAILURE':
return { ...state, error: action.data.error };
default:
return state;
}
};
export default notificationReducer;