I want to remove `console.warn` and all other warning messages that happen to appear on my react native app with a single line of code. Before I have achieved this by adding the following in my **App.js**

```
console.disableYellowBox = true;

```

But somehow it is not working now, the code still exists in my **App.js** but the warning on yellow box is still showing on the bottom of the screen. Since my app is large which uses several packages and I have also added `console.warn` in many places, I need a solution to disable this from a single place

Someone please kelp me to identify why `console.disableYellowBox = true;` is not working or please provide some alternate solution to fix this . 

> 
> My react native version is 0.60.5
> 
> 
> 

Any help would be much appreciated. 

Thanks in advance