[RN] React Native 关闭所有黄色警告
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文件中,放在AppRegistry.registerComponent('App', () => App)之前。
本博客地址: wukong1688
本文原文地址:https://www.cnblogs.com/wukong1688/p/10823581.html
转载请著名出处!谢谢~~