Yellow box warnings in react native can be intrusive. We will use console.disableYellowBox to disable the yellow box entirely. We'll also use console.ignoredYellowBox to selectively disabled warnings.

 

Disable all the yellow box warning:

console.disableYellowBox

 

Disable some of them:

console.ignoredYellowBox = ['Warning: Each', "Warning: Failed prop type"];

 

相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-09-27
  • 2021-08-20
猜你喜欢
  • 2021-09-06
  • 2021-06-20
  • 2021-10-16
  • 2021-11-21
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案