title: How to reset Redux Reducer to Initial State
body: <p>How to reset a specific Redux Reducer to initial state<br />
  Is it possible to reset it to initial state?<br />
  I want when leave the register page, like go to Home or other pages the state of the register reducer back to initial state in React Native...</p>
  <pre><code>const initialState = {
    registerLoading: false,
    registerResult: null,
    registerError: null,
  };
  
  export default function (state = initialState, action) {
    switch (action.type) {
      case REGISTER_USER_ACTION:
        return {
          ...state,
          registerLoading: action.payload.loading,
          registerResult: action.payload.data,
          registerError: action.payload.errorMessage,
        };    
       default:
          return state;
    }
  }
  </code></pre>