Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kureev/react-native-network-proxy
Network debugger (logger) for React Native apps
https://github.com/kureev/react-native-network-proxy
Last synced: 3 months ago
JSON representation
Network debugger (logger) for React Native apps
- Host: GitHub
- URL: https://github.com/kureev/react-native-network-proxy
- Owner: Kureev
- License: mit
- Created: 2017-07-02T01:17:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-30T14:11:20.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T17:12:14.313Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 74
- Watchers: 4
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-stuff - **71**星
README
## 🛠 Network debug tool for react-native
Ever struggled with debugging network requests in React Native? Prefer console tools over GUI solutions (like [reactotron](https://github.com/infinitered/reactotron))?
![react-native-network-proxy](http://i.imgur.com/kNtLzUr.jpg)
## Getting started
- Install `react-native-network-proxy` by running
```bash
$ yarn add react-native-network-proxy
```
or
```bash
$ npm i react-native-network-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)](https://twitter.com/@kureevalexey)