How to Disable Yellow Warning Box in React Native

This is How to Disable Yellow Warning Box in React Native. This Yellow warning box can be helpful if you want to know any warning but can be annoying at the same time if you know the issue and want to ignore that.

In the second case where you want to ignore the error and it is also blocking necessary pieces of the application, you can disable it.

Disable Yellow Warning Box in React Native

To disable warning in React Native you just need to add the following line in your App.js file

Example

So here is a demo code which has Yellow Warning (Suppose)

To disable the warning please add console.disableYellowBox = true;

So this is how to disable yellow warning box in React Native. If you have any problem or want to share anything then please comment below.

Hope you liked it. 🙂

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.