@tradle/react-native-http

http module compatibility for react-native

Usage no npm install needed!

<script type="module">
  import tradleReactNativeHttp from 'https://cdn.skypack.dev/@tradle/react-native-http';
</script>

README

@tradle/react-native-http

The http module from node.js, but for React Native.

Fork of http-browserify

install

npm install @tradle/react-native-http

usage

To load this module when you require('http'), ensure you have a mapping in either the "browser" or "react-native" field in your package.json:

  "browser": {
    "http": "@tradle/react-native-http"
  }

or

  "react-native": {
    "http": "@tradle/react-native-http"
  }

license

MIT