How can I log a variable in React Native, like using console.log when developing for web?
console.log
Use console.debug("text");
console.debug("text");
You will see the logs inside the terminal.
Steps:
react-native run-ios # For iOS react-native run-android # For Android
react-native log-ios # For iOS react-native log-android # For Android