Skip to content

Instantly share code, notes, and snippets.

@ChettaDarkkill
Created September 5, 2018 08:39
Show Gist options
  • Save ChettaDarkkill/092774b152d3cf280bf9acec610a6798 to your computer and use it in GitHub Desktop.
Save ChettaDarkkill/092774b152d3cf280bf9acec610a6798 to your computer and use it in GitHub Desktop.
async testFeed() {
const token = await AsyncStorage.getItem("token")
axios.get('http://demo.com/api/v1/feed',
{ headers: { 'x-access-token': token } })
.then(response => {
const result = response.data.result
console.log(result)
})
.catch(error => {
console.log(error);
}); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment