vision-camera-code-scanner icon indicating copy to clipboard operation
vision-camera-code-scanner copied to clipboard

update version of react-native-vision-camera

Open Peege151 opened this issue 3 years ago • 5 comments

Feel free to take this or leave this...

The example wasn't able to run until I updated the version of react-native-vision-camera.

The install on yarn grabbed 2.9.4, which had the __scanCodes is undefined error. Maybe this was because of the yarn.lockfile in /example, not sure. Once I manually changed this version number in package.json, cleared cache and restarted the project the scanner worked properly.

Peege151 avatar Nov 17 '22 18:11 Peege151

This seems to be the fix for https://github.com/rodgomesc/vision-camera-code-scanner/issues/115 if possible let's merge this

JramR7 avatar Jan 02 '23 13:01 JramR7

Hi I'm still getting the __scanCodes error: https://github.com/rodgomesc/vision-camera-code-scanner/issues/121#issue-1518915635

Do you find a solution? Thank you

Pietro-Putelli avatar Jan 04 '23 13:01 Pietro-Putelli

I'm also running into the _scanCodes error, could this branch be merged?

allynsweet avatar Jan 05 '23 15:01 allynsweet

If you're looking for a solution, I suggest you expo-barcode-scanner, otherwise I can't fix the problem of this library.

Pietro-Putelli avatar Jan 06 '23 10:01 Pietro-Putelli

Hello, I have the same error with version 2.15.2, even after:

...
plugins: [
    [   
        "react-native-reanimated/plugin", { globals: ["__scanCodes"] }
    ],
]

as propose in #929

add one more parenthesis, even now it throws cannot read property 'useScanBarcodes' of undefined

aricanoMX avatar Jan 06 '23 18:01 aricanoMX