Open DevAress opened 4 years ago
hey, @DevAress I'll be glad to help with this, so let me know what's the content besides QR code? because it seems to be parsing problem caused by probably a really huge base64 content which is taking a longer time than usual to parse the code and call the callback with content. Even in this case, don't explains be so longer just in iOS instead of in Android as well, so I'm pretty sure that it needs more investigation to understand what's really going on.
So, in advance, could you provide for us, please, an example of a QR code like this causing this issue? It don't need to be really the same but would be nice to have a pretty much related.
By the way, to help you faster, it would be even better, to have a repo to reproduce this same issue, can you do this?
Let me know which workaround did you use or how are you facing that for now?
The process of barcode scanning on iOS devices is very slow. It takes more than just a few seconds(sometimes 20,25 sec) and the camera has to be held very very steady.The issue is persistent even on the latest iOS devices. On android the scan happens within fraction of seconds.
render() { return ( <QRCodeScanner ref={(node) => { this.scanner = node }} onRead={this.onSuccess.bind(this)} topContent={null} bottomContent={null} /> ); }
onSuccess(e) { var serial = e.data.replace(/-/g,"") console.log("barcode data : "+e.data+ " barcode type: "+e.type) }
Build details? iOS: 13.3.1 and 13.4 "dependencies": { "@react-native-community/async-storage": "^1.6.2", "react": "16.9.0", "react-native": "0.61.4", "react-native-camera": "^3.22.1", "react-native-permissions": "^2.1.1", "react-native-qrcode-scanner": "^1.4.0" },