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

37 Answers
37

Use console.log, console.warn, etc.

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

Leave a Reply

Your email address will not be published. Required fields are marked *