Giter Site home page Giter Site logo

Comments (5)

smeckler avatar smeckler commented on July 20, 2024

I have the same problem: Could this be a camel-case mismatch between the props onBarCodeScanned and onBarcodeScanned which are both used?

from expo.

sagark1510 avatar sagark1510 commented on July 20, 2024

same here! It works well on the mobile app but on the web it is not working and not scanning any QR code.

from expo.

sagark1510 avatar sagark1510 commented on July 20, 2024

@t0ma5h did you find any solution?

from expo.

t0ma5h avatar t0ma5h commented on July 20, 2024

@t0ma5h did you find any solution?

Not as of yet on SDK51. But just using sdk 50 for the time being should work

from expo.

entiendoNull avatar entiendoNull commented on July 20, 2024

I have the same problem: Could this be a camel-case mismatch between the props onBarCodeScanned and onBarcodeScanned which are both used?

Yes, it seems like the current version of camera (SDK51) is using types from the camera/legacy.

Some props have been renamed (such as onBarCodeScanned -> onBarcodeScanned and type -> facing) and simply no longer plays well with the current API.

This PR (originally there to fix the camera-facing-issue) has also targetted the onBarCodeScanned issue as a side-effect.

#30277

The current implementation only seem to work with QR-codes though. It should work if you feed the CameraView with barcodeScannerSettings (instead of barCodeScannerSettings) and onBarcodeScanned (and target QR-codes), but TypeScript will yell at you until this PR or any other fix is applied.

I believe this will get some attention pretty soon as the camera/legacy will be removed in SDK52 (if I remember correctly). In the meantime though, it would be good to get this patched up.

from expo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.