A component for React. This library works with React and React Native (uses ART module).
yarn add react-qr-code
import React from "react";
import ReactDOM from "react-dom";
import QRCode from "react-qr-code";
ReactDOM.render(<QRCode value="hey" />, document.getElementById("Container"));
prop | type | default value |
---|---|---|
value |
string |
|
size |
number |
128 |
bgColor |
string |
‘#FFFFFF’ |
fgColor |
string |
‘#000000’ |
level |
string ('L' 'M' 'Q' 'H' ) |
‘L’ |
Author: rosskhanas
Demo: https://rosskhanas.github.io/react-qr-code/
Source Code: https://github.com/rosskhanas/react-qr-code
#react-native #react #mobile-apps