You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/react-native-devtools.md
+65-1Lines changed: 65 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import con
7
7
8
8
React Native DevTools is our modern debugging experience for React Native. Purpose-built from the ground up, it aims to be fundamentally more integrated, correct, and reliable than previous debugging methods.
9
9
10
-

10
+

11
11
12
12
React Native DevTools is designed for debugging React app concerns, and not to replace native tools. If you want to inspect React Native’s underlying platform layers (for example, while developing a Native Module), please use the debugging tools available in Android Studio and Xcode (see [Debugging Native Code](/docs/debugging-native-code)).
13
13
@@ -79,6 +79,70 @@ Breakpoints are a fundamental tool in your debugging toolkit!
79
79
- Use a `debugger;` statement to quickly set a breakpoint from your text editor. This will reach the device immediately via Fast Refresh.
80
80
- There are multiple kinds of breakpoints! For example, [Conditional Breakpoints and Logpoints](https://developer.chrome.com/docs/devtools/javascript/breakpoints#overview).

85
+
86
+
The Network panel allows you to view and inspect the network requests made by your app. Logged requests provide detailed metadata such as timings and headers sent/received, as well as response previews.
87
+
88
+
Network requests are recorded automatically when DevTools is open. We support most features from Chrome, with some exceptions. See more below.
Today, we record all network calls through `fetch()`, `XMLHttpRequest`, and `<Image>` — with support for custom networking libraries, such as Expo Fetch, coming later.
96
+
97
+
**Expo Network differences**
98
+
99
+
Because of this, apps using Expo will continue to see the "Expo Network" panel — a separate implementation by the Expo framework which will log these additional request sources but has slightly reduced features.
100
+
101
+
- Coverage for Expo-specific network events.
102
+
- No request initiator support.
103
+
- No Performance panel integration.
104
+
105
+
We're working with Expo to integrate Expo Fetch and third party networking libraries with our new Network inspection pipeline in future releases.
106
+
107
+
**Unimplemented features**
108
+
109
+
At launch, these are the features we don't yet support in React Native:
If you are inspecting a large volume of response data, please note that response previews are cached in an on-device buffer with a maximum size of 100MB. This means we may evict response previews (but not metadata) if the cache becomes too large, oldest request first.
121
+
122
+
</details>
123
+
124
+
#### Useful tips
125
+
126
+
- Use the Initiator tab to see the call stack of where a network request was initiated in your app.
127
+
- Network events will also be shown in the Network track in the Performance panel.

132
+
133
+
Performance tracing allows you to record a performance session within your app to understand how your JavaScript code is running and what operations took the most time. In React Native, we show JavaScript execution, React Performance tracks, Network events, and custom [User Timings](https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/User_timing), rendered in a single performance timeline.
134
+
135
+
#### Useful tips
136
+
137
+
- Use [Annotations](https://developer.chrome.com/docs/devtools/performance/annotations) to label and mark up a performance trace — useful before [downloading and sharing](https://developer.chrome.com/docs/devtools/performance/save-trace) with a teammate.
138
+
- Use the [`PerformanceObserver` API](./global-PerformanceObserver.md) in your app to observe performance events at runtime — useful if you want to capture performance telemetry.
0 commit comments