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