react-native-qrcode-reader
react-native-qrcode-reader copied to clipboard
Camera not working when re-mounted
Hello,
I am unable to run camera when the screen is once removed from the stack in navigation and then re mounted. I am using rnrf for navigation. The code is shown below:
_onBarCodeRead(result) { var $this = this; if (this.state.barCodeFlag) { this.setState({barCodeFlag: false}) Actions.pop(); Actions.result({id: result.data}) } }
This is the way I am changing my routes. When I come back to QR code page, I am unable to run camera. It shows me white screen with green box.
Please help me solve this issue.
Thanks!