How can I log a variable in React Native, like using console.log
when developing for web?
37 Answers
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