Network Activity for Rozenite.
npm install @rozenite/network-activity-plugin[![mit licence][license-badge]][license] [![npm downloads][npm-downloads-badge]][npm-downloads] [![Chat][chat-badge]][chat] [![PRs Welcome][prs-welcome-badge]][prs-welcome]
The Rozenite Network Activity Plugin provides real-time network request monitoring, detailed request/response inspection within your React Native DevTools environment. It offers comprehensive network debugging capabilities similar to browser DevTools Network panel.
- Real-time Network Monitoring: Track all HTTP/HTTPS requests in real-time
- Request Details: View request headers, method, URL, and timing information
- Response Inspection: Examine response headers, status codes, and timing data
- Performance Analysis: Analyze request duration, connection timing, and performance metrics
- Request History: Maintain a searchable history of network activity
- Chrome DevTools Protocol: Built on CDP for accurate network event capture
- Production Safety: Automatically disabled in production builds
Install the Network Activity plugin as a dependency:
``bash`
npm install @rozenite/network-activity-plugin
`bash`
npm install @rozenite/network-activity-plugin
Add the DevTools hook to your React Native app:
`typescript
// App.tsx
import { useNetworkActivityDevTools } from '@rozenite/network-activity-plugin';
function App() {
// Enable Network Activity DevTools in development
useNetworkActivityDevTools();
return
}
`
Optional: To capture network requests before your React Native app initialization, add this to your entrypoint:
`ts
// index.js
import { withOnBootNetworkActivityRecording } from '@rozenite/network-activity-plugin';
withOnBootNetworkActivityRecording();
`
Start your development server and open React Native DevTools. You'll find the "Network Activity" panel in the DevTools interface.
rozenite` is an open source project and will always remain free to use. If you think it's cool, please star it 🌟.
[Callstack][callstack-readme-with-love] is a group of React and React Native geeks, contact us at hello@callstack.com if you need any help with these or just want to say hi!
Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥
[callstack-readme-with-love]: https://callstack.com/?utm_source=github.com&utm_medium=referral&utm_campaign=rozenite&utm_term=readme-with-love
[license-badge]: https://img.shields.io/npm/l/rozenite?style=for-the-badge
[license]: https://github.com/callstackincubator/rozenite/blob/main/LICENSE
[npm-downloads-badge]: https://img.shields.io/npm/dm/rozenite?style=for-the-badge
[npm-downloads]: https://www.npmjs.com/package/@rozenite/network-activity-plugin
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
[prs-welcome]: https://github.com/callstackincubator/rozenite/blob/main/CONTRIBUTING.md
[chat-badge]: https://img.shields.io/discord/426714625279524876.svg?style=for-the-badge
[chat]: https://discord.gg/xgGt7KAjxv