An HTTP traffic monitor for React Native including in app interface.
An alternative to Wormholy but for both iOS and Android and with zero native dependencies.
yarn add react-native-network-logger
or
npm install --save react-native-network-logger
Call startNetworkLogging
in your apps entry point to log every request, or call it on a button press to manually trigger it.
import { startNetworkLogging } from 'react-native-network-logger';
startNetworkLogging();
AppRegistry.registerComponent('App', () => App);
import NetworkLogger from 'react-native-network-logger';
const MyScreen = () => <NetworkLogger />;
You can change between the dark and light theme by passing the theme
prop with "dark"
or "light"
.
import NetworkLogger from 'react-native-network-logger';
const MyScreen = () => <NetworkLogger theme="dark" />;
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
Author: alexbrazier
Live Demo: https://github.com/alexbrazier/react-native-network-logger/tree/master/example
GitHub: https://github.com/alexbrazier/react-native-network-logger
#react-native #react #mobile-apps