Removed QRCodeProvider and moved hardcoded testfunctions to ScannedDataBox instead, Hardcoded data is now working for Demo

This commit is contained in:
2024-06-20 14:14:15 +08:00
parent c84c93df36
commit 69b2d72644
3 changed files with 44 additions and 67 deletions

View File

@@ -114,7 +114,7 @@ const QRScannerScreen: React.FC<QRScannerScreenProps> = ({ clearScanData }) => {
setDataType('');
};
// The function that takes data from <Cameraview onBarcodeScanned
// The function takes data from Cameraview.onBarcodeScanned
const handleQRCodeScanned = async ({ data }: { type: string; data: string }) => {
setScanned(true); //Flag is QR code already scanned