Library: How can i use this library in my App?

Created on 11 Jun 2018  路  8Comments  路  Source: zxing-js/library

Hello, I think this library is very cool. But how can i use in my app ? . Thank you. I'm from Vietnamese and i'm a student

react-native question

Most helpful comment

All 8 comments

No, I don't know. I think this library just use for browser. Because i don't see any example for React Native :( . And my last question is: When I select a qr code from the library then I want to decode it. that's fine Can you help me please :( ? Thank you very much

I import: import { BrowserCodeReader } from '@zxing/library'
use: BrowserCodeReader.decodeFromImage('img-to-decode', 'https://www.unitag.io/images/generator/templates/classic.png').then(result => console.log(result))
is that right ?

I'm afraid that BrowserCodeReader was built for browsers, not React Native. Try use the core MultiFormatReader. Sorry for the lack of details, I'm a little busy at the moment.

@helloo0-0oword do you want to decode from a live camera stream or you have a specific file you want to decode?

@helloo0-0oword use expo, already support barcode scanner
https://docs.expo.io/versions/latest/sdk/bar-code-scanner

Well, I'm closing because of no issuer activity.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lenny76 picture lenny76  路  10Comments

sethusuryateja picture sethusuryateja  路  6Comments

DKhalil picture DKhalil  路  8Comments

Hopingocean picture Hopingocean  路  3Comments

robbelroot picture robbelroot  路  6Comments