You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-qrcode-camera

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-qrcode-camera

A simple QR code wrapper of the React Native camera.

0.0.9
latest
Source
npmnpm
Version published
Weekly downloads
1
-90%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

react

FAQs

Package last updated on 27 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts