React-native 开发选项未显示在安装在小米手机上的移动应用程序上 [英] React-native dev options not showing up on mobile app installed on Xiaomi Phone
问题描述
当我尝试在我的 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.
- 打开
Security
(Note 3 手机上默认安装的应用) - 点击
权限
- 找到您使用
React-Native
安装的应用,点击它. - 应该有一个权限
显示弹出窗口
,它会被阻止. - 按此权限并选择
接受
- Open
Security
(an app installed by default on Note 3 phone) - Click on
Permissions
- Find your app that you've installed using
React-Native
, click on it. - There should be a a permission
Display pop-up window
and it will be blocked. - 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屋!