React Native (0.71.8) QR-Scanner Example
  • Java 32.7%
  • TypeScript 32.5%
  • Ruby 10.4%
  • Objective-C 10.2%
  • Shell 6%
  • Other 8.2%
Find a file
2023-05-12 19:55:24 +01:00
.bundle initial commit 2023-05-11 17:04:39 +01:00
__tests__ initial commit 2023-05-11 17:04:39 +01:00
android initial commit 2023-05-11 17:04:39 +01:00
ios initial commit 2023-05-11 17:04:39 +01:00
scripts initial commit 2023-05-11 17:04:39 +01:00
src refactor screens into individual files; adopt common layout 2023-05-11 21:18:30 +01:00
.eslintrc.js initial commit 2023-05-11 17:04:39 +01:00
.gitignore initial commit 2023-05-11 17:04:39 +01:00
.node-version initial commit 2023-05-11 17:04:39 +01:00
.prettierrc.js initial commit 2023-05-11 17:04:39 +01:00
.watchmanconfig initial commit 2023-05-11 17:04:39 +01:00
app.json initial commit 2023-05-11 17:04:39 +01:00
App.tsx refactor screens into individual files; adopt common layout 2023-05-11 21:18:30 +01:00
babel.config.js initial commit 2023-05-11 17:04:39 +01:00
Gemfile initial commit 2023-05-11 17:04:39 +01:00
index.js initial commit 2023-05-11 17:04:39 +01:00
LICENSE added license; note on ext. lib on readme 2023-05-12 19:55:24 +01:00
metro.config.js initial commit 2023-05-11 17:04:39 +01:00
package.json added license; note on ext. lib on readme 2023-05-12 19:55:24 +01:00
pnpm-lock.yaml initial commit 2023-05-11 17:04:39 +01:00
README.md added license; note on ext. lib on readme 2023-05-12 19:55:24 +01:00
screenshot.jpg added screenshot 2023-05-11 21:42:46 +01:00
tsconfig.json initial commit 2023-05-11 17:04:39 +01:00
yarn.lock initial commit 2023-05-11 17:04:39 +01:00

React Native QR-Code Reader

React Native has never been an entirely smooth experience but at the moment, even a simple QR-code reader is a bit of a pain in the a**.

Fortunately a few tweaks, and a fork, will get it working.

Screenshot

Versions

  • react-native: 0.71.8
  • react-native-vision-camera: 2.15.4
  • vision-camera-code-scanner: 2.15.4 + fixes

Install

yarn

Run

1st terminal:

npm start -- --reset-cache

2nd terminal:

export ANDROID_HOME=$HOME/Android/Sdk && \
export PATH=$PATH:$ANDROID_HOME/emulator && \
export PATH=$PATH:$ANDROID_HOME/platform-tools
npx react-native run-android

Note: Sometimes metro crashes; Simply start it again (npm start -- --reset-cache) and reload in the app.

Development

Since we're pulling vision-camera-code-scanner from git, the package is not pre-built. If you need type-hints:

cd node_modules/vision-camera-code-scanner
npm run prepare