GithubHelp home page GithubHelp logo

Comments (8)

latobibor avatar latobibor commented on July 17, 2024 2

@JoaoSoaresDev and @har0ld-scl
It seems that react-native-vision-camera is going to ship with QR code reader. However, it's not a priority as yet. I asked if there's any combination in which I can have a working camera with a QR code reader for RN versions 0.70+ and @metrix_hu was kind enough to share their method:

mrousavy/react-native-vision-camera#1662 (comment)

from vision-camera-code-scanner.

JoaoSoaresDev avatar JoaoSoaresDev commented on July 17, 2024 1

Any updates on this? Haven't found any forks of this repo anywhere.

from vision-camera-code-scanner.

har0ld-scl avatar har0ld-scl commented on July 17, 2024

Same problem here, it seems that this repo is already dead. I've waiting for this PR127 to be merged for several weeks.

I'm afraid that this dependency could block my project to upgrade to newer versions of React Native (0.72 and above).

from vision-camera-code-scanner.

DeveloperMCD avatar DeveloperMCD commented on July 17, 2024

I am looking for the same thing -- I want the latest React Native, but I need CROSS-PLATFORM barcode scanning which forces me to use React Native Vision Camera. There's a great barcode scanning library for Android-only, which I had working in my app just fine. But that's not good enough; I need iOS too.

There are only (2) "Frameprocessor" plugins for doing barcode scanning with RNVC. One of them is proprietary/commercial, and so expensive the price is "Call for a quote". And then there's this one! So not a lot of choices there.
https://www.react-native-vision-camera.com/docs/guides/frame-processor-plugin-list

This man has supposedly forked and updated this repo to work with "RNVC v3" circa April 2023. I assume the chances to RNVC since April are minor, so that's a good bit of progress.
https://github.com/rkmackinnon/vision-camera-code-scanner/tree/react-native-vision-camera-v3

from vision-camera-code-scanner.

maxinminax avatar maxinminax commented on July 17, 2024

I have tried and it's work on version rc.3 but in last rc.5, it have errors in the swift file when build

from vision-camera-code-scanner.

DeveloperMCD avatar DeveloperMCD commented on July 17, 2024

"I have tried and it works on version rc.3 but in last rc.5, it has errors in the swift file during build."

Is it possible to get those errors fixed?

from vision-camera-code-scanner.

DeveloperMCD avatar DeveloperMCD commented on July 17, 2024

For what it's worth, I tried the mackinnon fork (which I forked to my own repo, but I digress) on 3.0.0-rc5, and it doesn't build successfully on Android either.

/home/matthew/dev/stackbayapp/node_modules/vision-camera-v3-barcode-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:40: error: VisionCameraCodeScannerPlugin is not abstract and does not override abstract method callback(Frame,ReadableNativeMap) in FrameProcessorPlugin
public class VisionCameraCodeScannerPlugin extends FrameProcessorPlugin {
^
/home/matthew/dev/stackbayapp/node_modules/vision-camera-v3-barcode-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:62: error: method does not override or implement a method from a supertype
@OverRide
^
/home/matthew/dev/stackbayapp/node_modules/vision-camera-v3-barcode-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:251: error: constructor FrameProcessorPlugin in class FrameProcessorPlugin cannot be applied to given types;
super("scanCodes");
^
required: no arguments
found: String
reason: actual and formal argument lists differ in length
/home/matthew/dev/stackbayapp/node_modules/vision-camera-v3-barcode-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPluginPackage.java:19: error: cannot find symbol
FrameProcessorPlugin.register(new VisionCameraCodeScannerPlugin());
^
symbol: method register(VisionCameraCodeScannerPlugin)
location: class FrameProcessorPlugin
4 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':vision-camera-v3-barcode-scanner:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

from vision-camera-code-scanner.

DeveloperMCD avatar DeveloperMCD commented on July 17, 2024

By the way, I couldn't get it to work on 3.0.0-rc3 either.

from vision-camera-code-scanner.

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.