react-native-qrcode-reader icon indicating copy to clipboard operation
react-native-qrcode-reader copied to clipboard

Camera not working when re-mounted

Open ishita-kothari opened this issue 7 years ago • 0 comments

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!

ishita-kothari avatar Aug 17 '17 13:08 ishita-kothari