#react-native 关闭所有黄色警告窗口
console.ignoredYellowBox=['Warning: BackAndroid is deprecated. Please use BackHandler instead.','source.uri should not be an empty string','Invalid props.style key'];
// 关闭全部yellow警告console.disableYellowBox=true
这两句放入index.js 在AppRegistry.registerComponent('XMXApp', ()=> App)的前面执行.
网友评论