react-native-camera-kit icon indicating copy to clipboard operation
react-native-camera-kit copied to clipboard

Not giving proper value in gs128 type barcode

Open Uzef1997 opened this issue 3 years ago • 0 comments

Describe the bug After scanning the gs128 barcode it is not giving the proper value if the barcode is gs128 then it must be started from "]C1" according to standards of barcode but the returned value is "C1010081628100244810LOT123" is like this library is using somekind of regex to return string values only if it is you have to change it

To Reproduce Steps to reproduce the behavior: Add the following code and try scanning GS128 type barcode

<CameraScreen
    scanBarcode={true}
    onReadCode={(event) => console.log(event.nativeEvent.codeStringValue)}
    showFrame={true} 
    laserColor='red'/>

Expected behavior It should return a proper value like this "]C1010081628100244810LOT123" if the barcode is gs128 type

Desktop (please complete the following information):

  • OS: Android
  • Version 8.0

Smartphone (please complete the following information):

  • Device: Honeywell CT60
  • OS: 8.0
  • React Native
  • Version 0.69

Uzef1997 avatar Aug 25 '22 10:08 Uzef1997