title: React Native - Redux combineReducers not working
body: <p>I try to save three values in redux for counters. This is my file with the combineReducers:</p>
  <pre><code>import { combineReducers } from 'redux';
  
  const SET_FREUNDE = 'SET_FREUNDE';
  const SET_CHATS = 'SET_CHATS';
  const SET_VOTES = 'SET_VOTES';
  
  export function setFreunde(value) {
    return {
      type: SET_FREUNDE,
      value,
    }
  }
  
  export function setChats(value) {
    return {
      type: SET_CHATS,
      value,
    }
  }
  
  export function setVotes(value) {
    return {
      type: SET_VOTES,
      value,
    }
  }
  
  const defaults = [
    {
      countervotes: 1,
      counterchats: 1,
      counterfreunde: 1
    }
  ];
  
  
  function counter(state=defaults, action) {
    switch (action.type) {
      case SET_FREUNDE:
        return [
          ...state,
          {
            ...state.counterfreunde = action.value
          }
        ];
        case SET_CHATS:
          return [
            ...state,
            {
              ...state.counterchats = action.value
            }
          ];
          case SET_VOTES:
            return [
              ...state,
              {
                ...state.countervotes = action.value
              }
            ];
      default:
        return state;
    }
  }
  
  const counters = combineReducers({
    counter
  });
  
  export default counters;
  </code></pre>
  <p>In my App.tsx I create the store and want to get the values:</p>
  <pre><code>import { Provider, useSelector } from &quot;react-redux&quot;;
  import { createStore} from &quot;redux&quot;;
  import counters from './src/redux/counter';
  
  const store = createStore(counters);
  
  const AppStack = () =&gt; {
      const counterfreunde = useSelector((state)=&gt;state.counterfreunde);
      const counterchats = useSelector((state)=&gt;state.counterchats);
      const countervotes = useSelector((state)=&gt;state.countervotes);
      return(
        ...
      )
     }
  
  const App = () =&gt; {
  
    ...
      return(
          &lt;Provider store={store} &gt;
            &lt;AppStack/&gt;
          &lt;/Provider&gt;
      );
    
  }
  
  export default App;
  </code></pre>
  <p>But counterfreunde, ... are undefined. If I set the values directly in the store like this:</p>
  <pre><code>const store = createStore(() =&gt; ({
    counterfreunde: 1,
    counterchats: 1,
    counterfreunde: 1
  }));
  </code></pre>
  <p>all works fine. I think the problem is with the definition of the combineReducer.</p>