将以下这两句话加在 index.JS(入口文件) 中, 放在 AppRegistry.registerComponent('App', () => App) 之前即可
- 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 // 关闭全部黄色警告
来源: http://www.bubuko.com/infodetail-3211987.html