react-native - 如何在 React Native 中禁用警告?

标签 react-native warnings

我知道警告很重要。但出于特定原因,我不希望它们出现在屏幕上。如何禁用出现在 screen 上的那些黄色警告

最佳答案

console.disableYellowBox = true;到 index.js .enjoy

关于react-native - 如何在 React Native 中禁用警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50293636/

相关文章:

javascript - 如果 React Native 中没有互联网连接,则获取存储数据

c# - C#忽略子字符串错误/警告

java - 我如何摆脱这些(未检查的调用)警告?

reactjs - 来自 antd 表的控制台警告。警告 : Each child in a list should have a unique "key" prop

reactjs - React-Native onScroll 事件没有被调用

ios - 连接到 Apple Music

button - react native : onPress: How can I toggle the button text and function call?

javascript - 无法在我的 iOS 设备上安装 React Native 应用程序

在 C 中使用 if 语句的编译器警告

android - Gradle 构建失败