Search code examples
react-nativewarnings

How to disable warning in React Native ?


I know warnings are important. But I don't want them on screen for the specific reason. How to disable those yellow colored warnings appearing on screen


Solution

  • Its advisable to note that this won't show up on a release build...but if you want to remove the warnings, you can set console.disableYellowBox = true

    More info in the documentation:

    https://facebook.github.io/react-native/docs/debugging.html#warnings