This project is the result of an attempt to get a QRCODE scanner Android application working using React-native and the following packages:
- react-native-qrcode-scanner
- react-native-camera
Notice this was done in 9 July 2018. The purpose of this repository is to offer you an easy view about the changes that I had to do based on the initial state of a React-native application (the files produced by "react-native init MyApp"). Therefore this repository have only one major change:
The initial code refers to the files produced by the "react-native init YourAppName". You can see the initial code here.
Once you have the initial React-native -based app, let's install the required packages dased in the documentation from react-native-qrcode-scanner:
npm install react-native-camera --save
react-native link react-native-camera
npm install react-native-qrcode-scanner --save
react-native link react-native-qrcode-scanner
react-native link react-native-permissions
react-native run-android
According to Upgrade gradle for Android Projects it' was necessary to patch the gradle infrastructure.