// 把下面这两句代码加入到入口文件(index.js中)
console.ignoredYellowBox =['Warning: BackAndroid is deprecated. Please use BackHandler instead.','source.uri should not be an empty string','Invalid props.style key'];
console.disableYellowBox =true// 关闭全部黄色警告
小技巧关闭黄色警告// 把下面这两句代码加入到入口文件(index.js中)console.ignoredYellowBox = ['Warning: BackAndroid is deprecated. Please use BackHandler instead.','source.uri should not be an empty string','Invalid props.style key']; console.disableYellowBox = true // 关闭全部黄色警告