【发布时间】:2021-08-04 12:58:44
【问题描述】:
我正试图在 Visual Studio Code 的终端中禁用我的 react-native 应用程序中的所有黄色警告。我知道 LogBox,但这似乎适用于应用程序本身,而不是 IDE。现在不仅黄色警告妨碍了我试图登录到控制台的内容,而且同样的警告正在多次打印到终端。如何在 Visual Studio Code 的终端中简单地禁用来自 react-native 的警告打印?
以下是在 VSC 终端中多次打印的警告示例。我只是想完全隐藏这些。
It appears that you are using old version of react-navigation library. Please update @react-navigation/bottom-tabs, @react-navigation/stack and @react-navigation/drawer to version 5.10.0 or above to take full advantage of new functionality added to react-native-screens
at node_modules/react-native-screens/src/index.native.tsx:141:8 in Screen#render
at [native code]:null in performSyncWorkOnRoot
at [native code]:null in callFunctionReturnFlushedQueue
It appears that you are using old version of react-navigation library. Please update @react-navigation/bottom-tabs, @react-navigation/stack and @react-navigation/drawer to version 5.10.0 or above to take full advantage of new functionality added to react-native-screens
at node_modules/react-native-screens/src/index.native.tsx:141:8 in Screen#render
at [native code]:null in performSyncWorkOnRoot
at [native code]:null in callFunctionReturnFlushedQueue
【问题讨论】:
标签: reactjs react-native visual-studio-code