RN开发关闭所有黄色警告弹出(console.warn())
在index.js下的AppRegistry.registerComponent(appName, () => App) 前插入一下代码:console.ignoredYellowBox = [ 'Warning: BackAndroid is deprecated. Please use BackHandler instead.', 'source.uri should not be an empty string', 'Invalid props.style key',
原创
2021-03-10 15:09:06 ·
893 阅读 ·
0 评论