Created
September 5, 2018 08:39
-
-
Save ChettaDarkkill/092774b152d3cf280bf9acec610a6798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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