reactnative——关闭所有黄色警告的代码
·
把下面代码添加在index.js中的AppRegistry.registerComponent()前面
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 //关闭黄色警告
更多推荐
所有评论(0)