react-native-network-proxy

Network proxy for react-native applications

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-native-network-proxy
1.0.16 years ago6 years agoMinified + gzip package size for react-native-network-proxy in KB

Readme

🛠 Network debug tool for react-native

Ever struggled with debugging network requests in React Native? Prefer console tools over GUI solutions (like reactotron)?
react-native-network-proxy

Getting started

  • Install react-native-network-proxy by running

```bash $ yarn add react-native-network-proxy ``` or ```bash $ npm i react-native-netowrk-proxy --save ```
  • Add react-native-network-proxy to your react-native application:

```js import { start as startNetworkDebugging } from 'react-native-network-proxy';
startNetworkDebugging({
host: 'localhost',
port: 6969,
});
// or just startNetworkDebugging(); ```
  • Start react-native-network-proxy server:

```bash $ yarn react-native-network-proxy ``` or ```bash $ npm run react-native-network-proxy ```
  • That's it! Run your app and make your fetch/XMLHttpRequest! The request should appear in the console where the server is running

Help

You can always reach me on twitter (@kureevalexey)