React-native 开发选项未显示在安装在小米手机上的移动应用程序上 [英] React-native dev options not showing up on mobile app installed on Xiaomi Phone

查看:62
本文介绍了React-native 开发选项未显示在安装在小米手机上的移动应用程序上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在我的 redmi note 3 手机上安装 react-native 应用程序时,它弹出一个错误,当我使用任何其他手机时都不会发生.我通过禁用 MIUI 优化解决了这个问题.但是在我这样做之后,当我摇晃我的手机时,我没有得到开发选项.

When I try installing react-native app on my redmi note 3 mobile phone, It pops up an error which doesn't happen when I use any other mobile phone. I fixed this issue by disabling MIUI optimization. But after I did this, I'm not getting dev options when I shake my mobile.

推荐答案

好的,对于像我一样不知道该怎么做的人.第一个答案是正确的,但如果您想知道该怎么做,就像我一样,请执行以下操作.

Ok, for anyone that like me didn't know what to do. The first answer is correct, but I if you are wondering what to do, just like I did, do the following.

  1. 打开Security(Note 3 手机上默认安装的应用)
  2. 点击权限
  3. 找到您使用 React-Native 安装的应用,点击它.
  4. 应该有一个权限显示弹出窗口,它会被阻止.
  5. 按此权限并选择接受
  1. Open Security (an app installed by default on Note 3 phone)
  2. Click on Permissions
  3. Find your app that you've installed using React-Native, click on it.
  4. There should be a a permission Display pop-up window and it will be blocked.
  5. Press on this permisson and select Accept

这应该可以解决问题.如果您没有看到 Developer options 菜单,请再次安装您的应用程序(我知道我安装了).希望这会有所帮助,快乐编码 ;)

This should do the trick. If, you do not see the Developer options menu, install your app again (I know I did). Hope this helps, Happy coding ;)

这篇关于React-native 开发选项未显示在安装在小米手机上的移动应用程序上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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