Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactNative-Redux-Axios

export const httpGet = (config) => {
  return (dispatch) => {
    myDispatcher(dispatch, SHOW_LOADING, true);
    axios({
      method: 'get',
      url: apiUrl + config.method,
      params: config.params
    }).then(res => {
      myDispatcher(dispatch, HTTP_SUCCESS, { response: res.data, state: config.state });
    }).catch(err => {
      myDispatcher(dispatch, HTTP_ERROR, err);
    });
  };
};

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages