How to do logging in React Native?


console.log works.

By default on iOS, it logs to the debug pane inside Xcode.

From the IOS simulator press (+D) and press Remote JS Debugging . This will open a resource, http://localhost:8081/debugger-ui on localhost. From there use Chrome Developer tools javascript console to view console.log

As of React Native 0.29 you can simply run the following to see logs in the console:

$ react-native log-ios
$ react-native log-android