title: TypeError: dispatch on action execution
body: <p>In this my action the user's log out of my application is exported in react</p>
  
  <pre><code>export const logoutUser = () =&gt; {
    return dispatch =&gt; {
      dispatch(
        {
          type: LOGOUT_USER
        }
      )
        .then(() =&gt; {
          logoutUserSuccess(dispatch, )
        })
        .catch((err) =&gt; {
          logoutUserError(err, dispatch)
        })
    }
  }
  
  const logoutUserSuccess = (dispatch) =&gt; {
    dispatch(
      {
        type: LOGOUT_USER_SUCCESS
      }
    )
    AsyncStorage.removeItem('@token_jwt')
    console.log('saiu')
    Actions.loginScreen()
  }
  
  const logoutUserError = (err, dispatch) =&gt; {
    dispatch(
      {
        type: LOGOUT_USER_ERROR
      }
    )
    Alert.alert('Erro ao sair da conta')
    console.log(err)
  }
  </code></pre>
  
  <p>is my Reducer</p>
  
  <pre><code>case LOGOUT_USER:
  return {
      ...state
  }
          case LOGOUT_USER_SUCCESS:
  return {
      INITIAL_STATE
  }
          case LOGOUT_USER_ERROR:
  return {
      ...state
  }
  </code></pre>
  
  <p>is my screen to logout</p>
  
  <pre><code> onLogout() {
        this.props.logoutUser()
    }
  
  const mapStateToProps = state =&gt; (
    {
      email: state.Authentication.email
    }
  )
  
  export default connect(mapStateToProps, { logoutUser })(Home)
  </code></pre>
  
  <p>The return is the following error</p>
  
  <p><a href="https://i.stack.imgur.com/P4ApT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P4ApT.jpg" alt="Erro"></a></p>
  
  <p>I put the email on the mapStateToProps, because I don't know how to leave it blank, what matters to me is the logout</p>