react-native-requests-logger
v1.1.5
Published
Log all network requests made in react native apps into chrome dev tools network tab.
Downloads
17
Maintainers
Readme
React native requests logger
Log all network requests made in react native apps into chrome dev tools network tab.
Install
npm install --save react-native-requests-logger
Usage
import React, {Component} from 'react';
import {AppRegistry} from 'react-native';
import {logRequests} from 'react-native-requests-logger';
class App extends Component {
constructor() {
super();
logRequests();
// Your app constructor code
}
render() {
// Your app render code
}
}
AppRegistry.registerComponent('App', () => App);
Or use it as a component
import React, {Component} from 'react';
import {AppRegistry} from 'react-native';
import RequestsLogger from 'react-native-requests-logger';
class App extends Component {
render() {
<RequestsLogger />
}
}
AppRegistry.registerComponent('App', () => App);