React Native - how to inspect the UI/ elements?

前端 未结 3 928
执念已碎
执念已碎 2021-02-13 11:00

I have installed the react dev tool. But I can\'t see it my Chrome browser when I launch my app on the emulator.

If you watch this youtube clip, you can see the

3条回答
  •  盖世英雄少女心
    2021-02-13 11:58

    Step 1: Install the react-devtools package globally using this command : npm install -g react-devtools

    Step 2: Goto your Project Directory and run project

    Step 3: Open other command prompt and goto at Project Directory and run following command react-devtools

    Step 4: It will open "React Developer Tools"

    Step 5: Now at Emulator press Ctrl+M and select Toggle Inspector

    Step 6: Now you can inspect in React Developer Tools

    for more information go at https://facebook.github.io/react-native/docs/debugging.html#react-developer-tools

    React Developer Tools

提交回复
热议问题