Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

update version of react-native-vision-camera #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Peege151
Copy link

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.

@JramR7
Copy link

JramR7 commented Jan 2, 2023

This seems to be the fix for #115 if possible let's merge this

@Pietro-Putelli
Copy link

Hi I'm still getting the __scanCodes error: #121 (comment)

Do you find a solution?
Thank you

@allynsweet
Copy link

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

@Pietro-Putelli
Copy link

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

@aricanoMX
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants