How to do logging in React Native?

前端 未结 30 3563
不思量自难忘°
不思量自难忘° 2020-11-30 17:08

How can I log a variable in React Native, like using console.log when developing for web?

30条回答
  •  情书的邮戳
    2020-11-30 17:23

    Press [command + control + Z] in Xcode Simulator, choose Debug JS Remotely, then press [command + option + J] to open Chrome developer tools.

    Xcode Simulator Img

    refer:Debugging React Native Apps

提交回复
热议问题