react-native-qrcode-camera
v0.0.9
Published
A simple QR code wrapper of the React Native camera.
Downloads
3
Maintainers
Readme
React Native QRCode Camera
Dependencies
Installation
npm i react-native-qrcode-camera --save
or
yarn add react-native-qrcode-camera
Please follow the instructions on installing the React Native Camera
Example Usage
import React, { Component } from 'react';
import QRCodeCamera from 'react-native-qrcode-camera';
class Camera extends Component {
onScan = event => {
console.log(event.rawData);
}
render() {
return (
<QRCodeCamera onScan={this.onScan}
vibrate={true}
style={{ flex: 1 }} />
);
}
}