在react-native 项目中运行expo start(expo cli 2.6.14)时,它总是打开一个带有DevTools的浏览器窗口.这是一个很好的功能,但有时我不想让它发生.

控制台上写着:

Opening DevTools in the browser... (press shift-d to disable)
But pressing shift + d just types out capital D. So I don't get why it says that. Maybe it's because I'm on a Mac, but I've tried shift/ctrl/alt/cmd + d and none of those do anything regarding disabling opening the window.

我错过什么了吗?

推荐答案

我想出来了,一旦bundler实际启动并运行,就可以使用shift+d作为命令之一,还可以按d键手动打开DevTools.

奇怪的是,它告诉你在你真正能够使用它之前就要使用这个命令.

React-native相关问答推荐

react-native 根据状态隐藏显示按钮

从 React 原生 Js 代码调用 Android Native UI 组件方法

如何在 React Native 中正确地将组件导入到我的导航器中?

react-native react-native-vector-icons:如何使用字体真棒图标

可能的未处理promise 拒绝(id:0):错误: "getLoginData" is read-only

react-native 中的layout-only view removal优化是什么?

命令失败:gradlew.bat installDebug error whenever installing dependencies like navigation, firebase, icons etc in React-Native

Firebase检测用户是否存在

@react-navigation/stack 与 @react-navigation/native-stack 有什么区别?

在本react-native中具有异步和等待的箭头函数

背景图像在react中不起作用

在 React Native 视图上强制 onLayout

HighLight / ScrollTo - React-Native 上的 ListView、ScrollView

React Native - React Navigation导航转换

React Native Android 负边距(Margins)

按钮的标题属性必须是字符串

如何在android studio中导入react native元素

如何升级 react-native gradle 版本

无法读取未定义的属性 string| React.PropTypes | LayoutPropTypes.js

在 react-native 中使用捏拉zoom 的可滚动图像