How do you debug React Native?

后端 未结 30 2782
无人共我
无人共我 2020-11-27 10:19

How does one debug their React code with React Native while the app is running in app simulator?

30条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 10:36

    Debugging react-native 0.40.0 on Debian 8 (Jessie) can be done by navigating to http://localhost:8081/debugger-ui in Chromium or Firebug while your app is running in the android simulator. To access the in-app developer menu, run the following command in another terminal window, as pointed out here:

    adb shell input keyevent 82

提交回复
热议问题