Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Fix RNCamera bug #19

Open
zbreit opened this issue Mar 25, 2020 · 0 comments
Open

Fix RNCamera bug #19

zbreit opened this issue Mar 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@zbreit
Copy link
Collaborator

zbreit commented Mar 25, 2020

Currently, the react-native-camera module has an issue where the preview will render correctly the first time an emulator boots up, but then it will just show a black screen on all subsequent renders. I don't believe this is an issue on physical devices but can't test that theory.

The likely cause of this error is that react-native-camera doesn't deal well with multiple cameras or emulators. It is recommended that you unmount the <RNCamera/> component every time its screen loses focus, which we actually do. You can see the native errors being caused by running

$ adb logcat | grep camera

Attempt to fix this issue on emulators, or ensure that it is not a problem on any physical devices.

@zbreit zbreit added the bug Something isn't working label Mar 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant