在Expo for React Native App中禁用调试 [英] Disable Debugging in Expo For React Native App

查看:94
本文介绍了在Expo for React Native App中禁用调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我今天在Expo中打开了我的react-native应用程序(使用iOS模拟器),并且通过看起来像调试叠加的方式进行创建.

So I've opened up my react-native app in Expo today (using the iOS simulator) and I am creating by what looks like a debugging overlay.

此处的屏幕截图:

我不需要这个,它阻止了一些UI进行测试.

I don't need this and it's blocking some of the UI for testing.

如何将其关闭?

推荐答案

您已打开元素检查器.要关闭它,请执行以下任一操作:

You have the Element Inspector open. To toggle it off do either:

  • ⌘+D(如果您在模拟器中)
  • 如果您使用的是实际设备,请摇动手机
  • ⌘+D if you are in the simulator
  • Shake your phone if you are on an actual device

这将打开调试菜单.然后,您可以单击Toggle Element Inspector将其关闭.

This should open up the debugging menu. You can then click on Toggle Element Inspector to close it.

这篇关于在Expo for React Native App中禁用调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆