JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo Remove react-art Oct 7, 2017
src Remove react-art Oct 7, 2017
storybooks Remove react-art Oct 7, 2017
test Merge Greenkeeper Oct 21, 2017
.babelrc Remove react-art Oct 7, 2017
.eslintrc Init Jul 29, 2016
.gitignore Fixed deps and examples Dec 1, 2016
.travis.yml Add yarn to travis Jul 12, 2017
LICENSE Update LICENSE Feb 8, 2017
README.md README has screenshots Feb 15, 2018
demo-android.png
demo-ios.png README has screenshots Feb 15, 2018
demo-web.png README has screenshots Feb 15, 2018
jsconfig.json Update README Jul 8, 2017
package.json chore(package): update react-native to version 0.55.0 Apr 3, 2018
yarn.lock chore(package): update lockfile Apr 3, 2018

README.md

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