How can I log a variable in React Native, like using console.log
when developing for web?
There are two options to debug or get output of your react native application when using
Emulator or Real Device
For First Using Emulator: use
react-native log-android or react-native log-ios
to get the log output
on real device.shake your device
so the menu will come from where you select remote debug and it will open this screen in your browser. so you can see your log output in console tab.