Package Exports
- react-native-network-logger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-network-logger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-network-logger
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
Features
- Log networks requests on iOS and Android
- View network requests made with in app viewer
- Debug network requests on release builds
- Individually view headers sent, received and body sent and received
- Zero native or JavaScript dependencies
- Built in TypeScript definitions
Install
yarn add react-native-network-logger
# OR
npm install --save react-native-network-loggerStart Logging
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);Display Requests and Responses
import NetworkLogger from 'react-native-network-logger';
const MyScreen = () => <NetworkLogger />;