Skip to content

Network Activity Plugin

The Network Activity panel in React Native DevTools

The Network Activity plugin brings a Chrome-DevTools-style network inspector into React Native DevTools: every HTTP/HTTPS request, WebSocket connection, and Server-Sent Event your app makes, in real time.

Make sure to go through the Getting Started guide before installing the plugin.

npm install -D @rozenite/network-activity-plugin
App.tsx
import { useNetworkActivityDevTools } from '@rozenite/network-activity-plugin';
function App() {
useNetworkActivityDevTools();
return <YourApp />;
}

To also capture requests made before your app finishes initializing, add this to your entry point:

index.js
import { withOnBootNetworkActivityRecording } from '@rozenite/network-activity-plugin';
withOnBootNetworkActivityRecording();

If your app uses nitro networking, install it too, and its HTTP and WebSocket traffic merges into the same panel automatically:

Terminal window
npm install react-native-nitro-fetch

Once configured, “Network Activity” appears in your React Native DevTools sidebar. The request list shows method, status, timing, and a Built-in / Nitro badge for where each request came from. Click any request for full details: headers, query parameters, and request/response bodies.

The response body view adapts to the content type, with a Preview / Raw toggle when both are useful:

  • Images and SVGs render inline; other binary formats (PDF, zip, audio, video, fonts) show a byte-level view instead, since there’s nothing to preview.
  • JSON and XML render as a collapsible, copyable tree, with the raw body pretty-printed in the Raw tab.
  • HTML renders in a sandboxed preview that can’t make outbound requests, with the source available in Raw.
  • Text formats (plain text, CSS, JS) render as monospace text.
  • Every binary response has a Download button; very large or empty responses show a placeholder instead of a preview.

By default all traffic types are monitored. Disable ones you don’t need — useful when a type is noisy or expensive to capture:

App.tsx
useNetworkActivityDevTools({
inspectors: {
http: true,
websocket: false,
sse: false, // requires http to be enabled
},
});

Next: Learn about Plugin Development, or explore other Official Plugins.