Debugging Raw Scanned Barcode Data, added sample images and log to onBarcodeScan
@@ -149,11 +149,15 @@ const QRScannerScreen: React.FC<{ clearScanData: () => void }> = ({ clearScanDat
|
|||||||
<View style={styles.cameraContainer}>
|
<View style={styles.cameraContainer}>
|
||||||
{cameraVisible && (
|
{cameraVisible && (
|
||||||
<CameraView
|
<CameraView
|
||||||
onBarcodeScanned={scanned ? undefined : ({ data }) => handlePayload(data)}
|
onBarcodeScanned={scanned ? undefined : ({ data, type }) => {
|
||||||
barcodeScannerSettings={{ barcodeTypes: ['qr', 'pdf417'] }}
|
console.log("Barcode Type:", type); // Log the type of barcode scanned
|
||||||
|
console.log("Raw Scanned Barcode Data:", data); // Log the raw barcode data
|
||||||
|
handlePayload(data);
|
||||||
|
}}
|
||||||
style={styles.camera}
|
style={styles.camera}
|
||||||
enableTorch={enableTorch}
|
enableTorch={enableTorch}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<TouchableOpacity onPress={toggleTorch} style={styles.flashButton}>
|
<TouchableOpacity onPress={toggleTorch} style={styles.flashButton}>
|
||||||
|
|||||||
BIN
temp/Sample QR/EmailTO.png
Normal file
|
After Width: | Height: | Size: 241 KiB |
BIN
temp/Sample QR/Invalid ssl.png
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
temp/Sample QR/Phone.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
temp/Sample QR/SMSTO.png
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
temp/Sample QR/Text.png
Normal file
|
After Width: | Height: | Size: 403 KiB |
BIN
temp/Sample QR/WIFI no enc.png
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
temp/Sample QR/WIFI_WEP.png
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
temp/Sample QR/WIFI_WPA.png
Normal file
|
After Width: | Height: | Size: 155 KiB |
|
Before Width: | Height: | Size: 829 KiB After Width: | Height: | Size: 829 KiB |
BIN
temp/Sample QR/http_no_ssl.png
Normal file
|
After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 815 B |
BIN
temp/Sample QR/redirect link.png
Normal file
|
After Width: | Height: | Size: 120 KiB |
BIN
temp/Sample QR/whatsapp.png
Normal file
|
After Width: | Height: | Size: 200 KiB |