shifeng1993 / react-native-qr-scanner

一个二维码扫描组件,依赖react-native-camera
MIT License
116 stars 65 forks source link

Can I read barcode from an image in gallery using QRreader(path)? #40

Open dhawalsonawane opened 4 years ago

dhawalsonawane commented 4 years ago

I want to read barcode from an image in gallery. I am using react-native-image-picker to read from gallery and pass the path to QRreader, but it returns error "Not a valid QR".

QRreader(path) .then((data) => { console.log("Code: ", data); }) .catch((err) => { console.log(err); });

Can this be done using this library? If not, can you suggest any other option?

mohammed-alsiddeeq commented 4 years ago

@dhawalsonawane Did you came up with any thing? same issue here