Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qr-code decoder from image file (react native)

Im looking for a Way to decode qr-code from image file in react native (ios specifically)... I know expo provides camera scanner solution ... But im in need for file decoder

Any help is very much appreciated.

like image 876
Hend El-Sahli Avatar asked Aug 19 '18 19:08

Hend El-Sahli


People also ask

How do I read a QR code from an image in react native?

You can use rn-qr-generator to decode a QR code in an image. import RNQRGenerator from 'rn-qr-generator'; RNQRGenerator. detect({ uri: PATH_TO_IMAGE, // local path of the image.

Can you open a QR code from a picture?

While you can use your camera to scan QR codes that aren't on your phone, you'll need to install an app to read QR codes from existing pictures. Fortunately, the best QR code apps are free and super easy to use!

How do I get the QR code for react native?

Generation of QR Code in React Native is very easy as we just have to install react-native-svg and react-native-qrcode-svg package, which will provide <QRCode/> component to make QRCode. QR Code is known as Quick Response Code is a trademark for a two-dimensional barcode.


1 Answers

You can use the jsQR library to read QR codes from image files. To choose a file from storage you can try the React Native Image Picker library.

like image 112
dols3m Avatar answered Oct 04 '22 23:10

dols3m