react-native-qrcode-camera

0.0.9 • Public • Published

React Native QRCode Camera npm version npm downloads

Dependencies

React Native Camera

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 }} />
        );
    } 
}

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-native-qrcode-camera

    Weekly Downloads

    2

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    182 kB

    Total Files

    4

    Last publish

    Collaborators

    • jackall3n