How do you debug React Native?

后端 未结 30 2739
无人共我
无人共我 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:46

    if you want to debug using android device on Windows just open a command prompt then type ( make sure your adb working properly)

    adb shell input keyevent 82
    

    it will prompt a screen like the image

    then select

    debug JS Remotely
    

    it will automatically open a new window.then open inspect element or press F12 for console.

提交回复
热议问题