-
Notifications
You must be signed in to change notification settings - Fork 516
Camera Blackout in Android Version 8.1.0 #177
Comments
Hi All the issue is not of version.... This issue is raising only on Mi Devices with version 8.1.0 and version 6.0.1... This version is known till now... Actual issue... When setting aspect Ratio to 1:1... Request to take this issue on priority. Thanks |
Any update on this issue? |
I have the same problem with my Xiaomi MI 8 Lite. |
Hmm, seems like it's happening for some specific devices. Is anyone with a device this is not working on, able to debug further and find the root cause? Will accept PRs fixing the issue. |
It doesn't work for me too with my own device Xiaomi Redmi Note 4x and emulator Nexus 5 (28 SDK).
|
I've fixed it! |
infinitered/ignite-andross#277 moaazsidat/react-native-qrcode-scanner#161 moaazsidat/react-native-qrcode-scanner#177 moaazsidat/react-native-qrcode-scanner#136 react-native-camera/react-native-camera#1797 react-native-camera/react-native-camera#1686 react-native-camera/react-native-camera#1686 react-navigation/redux-helpers#87 react-navigation/redux-helpers#60 react-navigation/redux-helpers#53 https://www.youtube.com/watch?v=CnQ8N1KacJc Fixes #1326 The navigation actions were turned into ThunkActions and now directly call react-navigation's navigator.dispatch, which handles state internally Usages of the navigationActions were fixed Also QRcodeScanner was cleaned up a bit and hacked to properly re-enable the camera by re-rendering it (so it gets remounted). Now camera works again if you press back after scanning a QR code.
I've this black screen issue in all of the tested devices. I've used the scanner in tab navigation. It works for once. If I go to other tabs and get back to the qr scanner, The camera shows black background and scan doesn't work. "react": "16.8.6", For react navigation, tabs are not re-rendered upon subsequent visits. Is this the issue here? if I use it outside the tab it works all the time Code:
How can I solve it? |
I had this problem and it seems this was caused by a problem with react-navigation. Some details of what happens can be found at https://github.com/react-native-community/react-native-camera/blob/master/docs/react-navigation.md. The solution I used in my project was based on the suggestion in the link. First I create a new component:
and then I use
|
Please anyone with a fix that works react-navigation 5? |
What's happening?
In Android version 8.1.0, camera not opening i.e. camera view is blackout.
How can it be reproduced?
Build details?
Android version 8.1.0
"react-native-qrcode-scanner": "^1.1.2",
The text was updated successfully, but these errors were encountered: