Option 1
console.log working. By default in iOS, it is registered in the debug panel inside Xcode. If you select the "Debug in Chrome" or "Debug in Safari" options from the shaking rage menu (โ+^+Z) , it will go to the browser console instead.
Option 2
With React Native 0.29, you can simply run the following to view the logs on the command line:
$ react-native log-ios $ react-native log-android
Option number 3
Step 1: cmd-d to bring up the debug menu
Step 2: disable "Debugging in Safari", and some messages will be printed in the output message, but not in the console messages. However, one of the magazine's messages says:
DEV === false, warning of the development level is disabled, performance optimization is enabled "This is due to the fact that I previously connected my project for testing on a real device using the command:
reaction-native package --minify This is included without "dev-mode". To enable dev messages, enable the -dev flag:
reactive native package --dev And console.log messages are back! If you are not attached to a real device, be sure to re-point jsCodeLocation in AppDelegate.m to localhost (I did!).
Annie gupta
source share