`react-native-network-logger` is an HTTP traffic monitoring library designed for React Native applications. It provides an intuitive in-app user interface to visualize and debug network requests on both iOS and Android platforms, including in production/release builds. The current stable version is 2.0.1, with a consistent release cadence that has seen multiple updates in 2024 and 2025, indicating active maintenance and ongoing development. A key differentiator of this library is its complete absence of native dependencies, simplifying integration significantly compared to other tools. It allows developers to inspect detailed request and response headers and bodies, copy specific data, share cURL representations of requests, and export all captured logs in HAR (HTTP Archive) format. Built with TypeScript, it also supports advanced features like GraphQL operation name extraction and custom theming, providing a comprehensive and zero-configuration solution for network debugging.
npm install react-native-network-loggerVerified import paths — ran on the pinned version, not inferred.
This code demonstrates how to initialize `react-native-network-logger` to start intercepting HTTP requests and then render the `<NetworkLogger />` component within a modal to display the intercepted traffic. It includes basic styling and options for `startNetworkLogging` like `maxRequests` and `ignoredUrls`.
Review your project's import paths and module resolution settings. Ensure your build environment is compatible with modern React Native module formats. Update your `import` statements according to the new export structure (e.g., `NetworkLogger` is a default export).
Ensure you are using the latest `react-native-network-logger` version compatible with your React Native version. Version 2.0.0 provides a fallback for `XHRInterceptor` import paths, while 2.0.1 specifically resolves issues for React Native 0.80+.
Thoroughly test any custom theme implementations after upgrading `react-native-network-logger`. For more stable theming, consider using the built-in `dark` or `light` string options.
Update `react-native-network-logger` to version 2.0.0 or newer. Specifically, version 2.0.1 addresses compatibility issues with React Native 0.80.
Change the import statement from `import { NetworkLogger } from 'react-native-network-logger';` to `import NetworkLogger from 'react-native-network-logger';`.Ensure `react-native-network-logger` is updated to a version compatible with your `react-native` version (e.g., v2.0.1 for RN 0.80). Clear your Metro bundler cache (`npm start -- --reset-cache`) and reinstall node modules (`rm -rf node_modules && npm install`).
Use a type-only import: `import type { NetworkLoggerProps } from 'react-native-network-logger';`.