expo / expo

An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.
https://docs.expo.dev
MIT License
34.19k stars 5.47k forks source link

Scanning GS1-128 barcode with expo camera barcode scnner #23975

Closed TabishTariq closed 1 year ago

TabishTariq commented 1 year ago

Minimal reproducible example

Scan data: https://barcode.tec-it.com/en/GS1-128?data=MyData

Summary

While scanning barcode of type GS1-128 android is appending ]C1 at start of scanned data. There is no way to find out that scanned data is of type GS1-128 so that we could remove ]C1 manually

Scan the following barcode on android with expo barcode scanner and you will find the issue: https://barcode.tec-it.com/en/GS1-128?data=MyData

Environment

npx: installed 2 in 3.668s

expo-env-info 1.0.5 environment info: System: OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish) Shell: 5.1.16 - /bin/bash Binaries: Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v14.21.3/bin/yarn npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm npmPackages: expo: ^46.0.0 => 46.0.21 react: 18.0.0 => 18.0.0 react-dom: 18.0.0 => 18.0.0 react-native: 0.69.6 => 0.69.6 react-native-web: ~0.18.7 => 0.18.12 npmGlobalPackages: expo-cli: 6.0.5 Expo Workflow: bare

expo-bot commented 1 year ago

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources