Search code examples
javascriptandroidreactjsreact-nativereactive-programming

Where is console.log output when running app on android real device in react native


I am currently working on a project. In that project, I am printing console.log but no messages are printing anywhere.

I am using npm and react-native-cli to run on a real android device.

Thanks


Solution

  • If you use a simulator, you can press Cmd + M (on Android) or Cmd + D (on IOS) to see the "Debug JS Remotely",

    If you use a real device, you should shake the device and you can see the "Debug JS Remotely" option.

    "Debug JS Remotely" option will popup Chrome and from there you can use the Developer Tools.

    https://facebook.github.io/react-native/docs/debugging