score:7

Accepted answer

If you're using window, you can try hit CTRL+M, else in mac CMD+D to open debugging menu. Once it open, choose REMOTE JS DEBUGGING, it will automatically open chrome browser for you to debug js error. Android studio debugging will work if you're connected on real device.

Eg. of Debugging Menu

Debugging menu

I've found out the answer for genYmotion from How do you debug react-native?. Don't know whether it'll work for you, but worth for try.

For an Android App, if you're using Genymotion you can toggle the menu by pressing ctrl + m, but you may have to enable it in the menu by :

  • Untick untick widget
  • click on debug in chrome

enter image description here

score:0

Now i have resolved the issue with these above comments you can click

Ctrl + D and then click Ctrl + M for fetching the debugging contents

Then Run below command for checking logs

React-native log-android 

with this you will be able to see the console logs in android studio terminal log panel.

But before this you need to run command:

Npm start 

for checking latest changes by fetcing bundle directly in the simulator

Thank you

score:0

Instead of using simple console.log command

Use Reactoron for Logging Data Here is the link: https://github.com/infinitered/reactotron

Best thing for log in React Native.


Related Query

More Query from same tag