🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL


Documentation

react-qr-code

Greenkeeper badge Build Status npm package Dependency Status devDependency Status peerDependency Status

A component for React. This library works with React and React Native (uses ART module).

Screenshots

Web

Android & iOS

iOS

Installation

yarn add react-qr-code 

The Gist

import React from 'react'; import ReactDOM from 'react-dom'; import QRCode from 'react-qr-code';  ReactDOM.render(   <QRCode value="hey" />,   document.getElementById('Container') );

API

prop type default value
value string
size number 128
bgColor string (CSS color) '#FFFFFF'
fgColor string (CSS color) '#000000'
level string ('L' 'M' 'Q' 'H') 'L'

License

MIT


You May Also Like