finds.dev← search

// the find

moaazsidat/react-native-qrcode-scanner

★ 2,037 · JavaScript · MIT · updated May 2023

A QR code scanner component for React Native.

A thin React Native wrapper around react-native-camera that adds QR/barcode scanning with minimal props. The author has officially archived it and recommends migrating to react-native-vision-camera. This is a dead library.

The prop API is clean and well-documented — onRead, reactivate, cameraTimeout, topContent/bottomContent slots all make sense. It does solve the original problem of reducing boilerplate around react-native-camera. The TypeScript definitions (index.d.ts) exist, which was forward-thinking for its era. The reactivateTimeout pattern for debouncing repeated scans is a practical touch.

Archived and dead — the README itself tells you to use something else, so there's no reason to adopt this in 2024. It depends on react-native-camera which is also unmaintained and breaks on newer React Native versions (0.70+). The Android setup is painful: missingDimensionStrategy hacks and manual permission wiring that newer libraries handle automatically. No Expo support whatsoever, which cuts out a large chunk of the RN ecosystem.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →