React Native - how to inspect the UI/ elements?

前端 未结 3 933
执念已碎
执念已碎 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:43

    Devtools "React" is currently not possible. This is due to a change in how the application scripts are evaluated in the devtools plugin. You can see more at https://facebook.github.io/react-native/docs/known-issues.html#devtools-react-tab-does-not-work

    However, you can still debug your UI within your application. To inspect elements, open your app in Simulator > press Cmd+D > select Show Inspector.

提交回复
热议问题