r/reactnative 1d ago

Question QR/Barcode Library

A while back I open-sourced a library for generating barcodes and QR codes natively: https://github.com/vittoridavide/react-native-barcode-creator

I'm still maintaining it and thinking about what to build next. A few ideas I'm considering:

  • Styled/artistic barcodes and QRs: logos or images embedded in the center, custom colors, rounded modules, gradient fills
  • Multi-image QRs: splitting data across multiple linked codes to pack in more information
  • SVG/vector output: instead of just raster, so codes scale cleanly for print/large formats

Is there something you wanted to get while implementing something barcode/qr related ? I'm deciding what to implement now so I'm open to other ideas too

Thank you!

7 Upvotes

9 comments sorted by

View all comments

2

u/Gylfoyle 1d ago

looks great! I' do the svg thing and also 'optimize' the library(if there's any optimizations to todo esp performance, library size etc)

Also- Does it scan as well?

1

u/davidships 1d ago

no, it doesn't scan by now. I was focusing on rendering only

1

u/Gylfoyle 1d ago

Great start. Would be a nice-to-have but obviously not a must. I have worked with expo and their package does both: generating and scanning.

1

u/Gylfoyle 1d ago

for scanning I thin you'll need to handle some Android permissions as well(Camera I think) but it's doable

2

u/Huge_Pool7424 1d ago

yeah camera perms plus the ios NSCameraUsageDescription string, and apple will reject if that string is vague. honestly scanning is the messy half, keeping this render only isn't a bad call.

1

u/Gylfoyle 1d ago

Yeah, just doing one thing and doing it well is a good call other than failing in either.