console.ignoredYellowBox how do I know what prefix to use?

Viewed 8230

I have one general questions and two more specific ones.

  1. How can I tell from a yellowbox warning message how to ignore it in React-Native?
  2. How do I ignore this specific warning?

enter image description here 3. And how do I ignore this specific warning?

enter image description here

All that React-Native documentation says about ignoring specific warnings is:

"YellowBoxes can be disabled during development by using console.disableYellowBox = true;. Specific warnings can be ignored programmatically by setting an array of prefixes that should be ignored: console.ignoredYellowBox = ['Warning: ...'];."

So React-Native offers this piece of code, but I don't know how to specify the name of the warning:

console.ignoredYellowBox = ['Warning: ReactNative.createElement'];
2 Answers
Related