The way you make HTTP requests in React Native is with fetch. In this video, we'll add integration with the github API into our app using fetch.
How would you go about appending a header to your request?
The approach that I took was: https://gist.github.com/samuelcouch/5d2b860a11f395f250a0
But all I get is an error that says "Can't find variable Headers" referencing line 4.
In the video there is a sentence that fetch is not available in the browser yet. But there are polyfills if you want to use the same code in browser as in react-native, e.g. [[https://www.npmjs.com/package/isomorphic-fetch]]