React Native

React Native之从「UI元素直接定位代码」

2019-03-31  本文已影响0人  码农二哥

React Native之从「UI元素直接定位代码」

很多时候我们开发时想根据UI元素,直接知道对应的代码在哪个文件的哪个位置,react native开发的程序员是有这个福利的,下面我们具体来看看:

办法一(什么额外的软件都不安装)

youdao1.jpg

办法二(借助react-devtools)

官方文档:https://facebook.github.io/react-native/docs/debugging.html#chrome-developer-tools

安装

Downloading electron-v1.8.8-darwin-x64.zip
[=>             ] 6.4% of 48.34 MB (1.98 kB/s)

使用

youdao2.jpg
上一篇 下一篇

猜你喜欢

热点阅读