

To debug the JavaScript code in Chrome, select "Debug JS Remotely" from the Developer Menu. RedBoxes and YellowBoxes are automatically disabled in release (production) builds. In CI/Xcode, YellowBoxes can also be disabled by setting the IS_TESTING environment variable. Specific warnings can be ignored programmatically by setting an array of prefixes that should be ignored: console.ignoredYellowBox =. YellowBoxes can be disabled during development by using console.disableYellowBox = true. Click on the alerts to show more information or to dismiss them.Īs with a RedBox, you can use console.warn() to trigger a YellowBox.

Warnings will be displayed on screen with a yellow background. You can use console.error() to manually trigger one.
#RUN REACT NATIVE ON ANDROID EMULATOR MAC FULL#
In-app errors are displayed in a full screen alert with a red background inside your app.

Alternatively for Android, you can run the command adb shell input keyevent 82 to open the dev menu (82 being the Menu key code). You can also use the ⌘D keyboard shortcut when your app is running in the iOS Simulator, or ⌘M when running in an Android emulator. You can access the developer menu by shaking your device or by selecting "Shake Gesture" inside the Hardware menu in the iOS Simulator. To enable them, open the Hardware menu, select Keyboard, and make sure that "Connect Hardware Keyboard" is checked. React Native supports a few keyboard shortcuts in the iOS Simulator.
