A simple QR code wrapper of the React Native camera.
npm install react-native-qrcode-cameranpm i react-native-qrcode-camera --save
or
yarn add react-native-qrcode-camera
Please follow the instructions on installing the React Native Camera
``js
import React, { Component } from 'react';
import QRCodeCamera from 'react-native-qrcode-camera';
class Camera extends Component {
onScan = event => {
console.log(event.rawData);
}
render() {
return (
style={{ flex: 1 }} />
);
}
}
``