diff --git a/src/content/learn/react-developer-tools.md b/src/content/learn/react-developer-tools.md index 4986dd5e96..348fbc8f7f 100644 --- a/src/content/learn/react-developer-tools.md +++ b/src/content/learn/react-developer-tools.md @@ -54,6 +54,7 @@ react-devtools ![React Developer Tools standalone](/images/docs/react-devtools-standalone.png) +<<<<<<< HEAD ## 移动端(React Native) {/*mobile-react-native*/} React 开发者工具同样可检查用 [React Native](https://reactnative.dev/) 构建的应用程序。 @@ -61,11 +62,15 @@ React 开发者工具同样可检查用 [React Native](https://reactnative.dev/) ```bash # Yarn yarn global add react-devtools +======= +## Mobile (React Native) {/*mobile-react-native*/} -# Npm -npm install -g react-devtools -``` +To inspect apps built with [React Native](https://reactnative.dev/), you can use [React Native DevTools](https://reactnative.dev/docs/debugging/react-native-devtools), the built-in debugger that deeply integrates React Developer Tools. All features work identically to the browser extension, including native element highlighting and selection. +>>>>>>> 3b02f828ff2a4f9d2846f077e442b8a405e2eb04 + +[Learn more about debugging in React Native.](https://reactnative.dev/docs/debugging) +<<<<<<< HEAD 接下来从终端打开开发者工具: ```bash react-devtools @@ -76,3 +81,6 @@ react-devtools > 如果几秒钟后开发者工具未连接,请尝试重新加载应用程序。 [了解有关调试 React Native 的更多信息](https://reactnative.dev/docs/debugging)。 +======= +> For versions of React Native earlier than 0.76, please use the standalone build of React DevTools by following the [Safari and other browsers](#safari-and-other-browsers) guide above. +>>>>>>> 3b02f828ff2a4f9d2846f077e442b8a405e2eb04