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);
});
};
};
-
Notifications
You must be signed in to change notification settings - Fork 0
basarburak/ReactNative-Redux-Axios
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published