This repository has been archived by the owner on Apr 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 221
第一次进入路由页面没有相机权限就会直接闪退 #68
Comments
兄弟 那个版本的? |
^2.0.0,现在我用 react-native-camera 官方的 demo + 这个库的 |
需要先申请权限,再跳转扫码,否则会因为权限不足报错。你自己加个 react-native-permissions 库判断下应该就好了。 |
@MarnoDev 请问是判断 PERMISSIONS.ANDROID.CAMERA 吗 判断后在Android模拟器第一次打开正常,但是退出再次打开白屏,并且打包后Android真机闪退,是我判断错误还是需要判断别的权限
|
QRScanner.js
但是有一个很神奇的现象 连续开关七八次 就闪退了 |
用了你的代码,完美解决了我的问题啦,哈哈哈!!! |
@weiting918 不闪退吗? 增加 |
How to fix when we must request permission in qrcode scanner screen? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
第一次进入路由页面没有相机权限就会直接闪退,请问需要怎么处理?
The text was updated successfully, but these errors were encountered: