How do you debug React Native?

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

    By default, my ios simulator wasn't picking up the keystrokes which is why cmd-D didn't work. I had to turn on the settings for the keyboard using simulator's menu:

    Hardware > Keyboard > Connect Keyboard

    Now cmd-D launches chrome debugging.

提交回复
热议问题