disable yellow box react native

JavaScript
console.disableYellowBox = true;
//add it anywhere in any page to disable warnings in emulatorconsole.disableYellowBox = true;console.disableYellowBox = true;
// add this is main component of react native application
Source

Also in JavaScript: