2.0.15 • Published 1 year ago

react-qr-code v2.0.15

Weekly downloads
14,674
License
MIT
Repository
github
Last release
1 year ago

react-qr-code

npm package Dependency Status devDependency Status peerDependency Status

A component for React. This library works with React and React Native (using React Native SVG).

Screenshots

Web

Android & iOS

Installation

npm i react-qr-code

When using this library with React Native, you will also need to have react-native-svg installed.

npm i react-native-svg
cd ios && pod install

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"));

Note: If the QR code is likely to appear next to dark objects, you will need to wrap it in a light-colored container to preserve the 'quiet zone', e.g.

<div style={{ background: 'white', padding: '16px' }}>
  <QRCode ... />
</div>

Responsive QR code example:

// Can be anything instead of `maxWidth` that limits the width.
<div style={{ height: "auto", margin: "0 auto", maxWidth: 64, width: "100%" }}>
  <QRCode
    size={256}
    style={{ height: "auto", maxWidth: "100%", width: "100%" }}
    value={value}
    viewBox={`0 0 256 256`}
  />
</div>

API

proptypedefault valueplatform
bgColorstring'#FFFFFF'web, ios, android
fgColorstring'#000000'web, ios, android
levelstring ('L' 'M' 'Q' 'H')'L'web, ios, android
sizenumber256web, ios, android
titlestringweb
valuestringweb, ios, android

License

MIT

@borderfreefinancial/revo-core@borderfreefinancial/revo-core-apicustomer-query-front-endgimly-siop-qr-code-generator@infinitebrahmanuniverse/nolb-react-q@motionly/components@everything-registry/sub-chunk-2605oidc-auth-betasimple-modal-v2grk-lolweb3-wallet-selectorsupertokens-auth-reacttesting-pay-with-crypto-widgettestwidgetunificatedtest_truetoform_fit_widgetswapkit-providerthebadge-ui-librarythe-handsomestnerd-internalvite-radcod-reactvenom-connectcleaker.clientjrgcomponentskash-cash-sdkkwl-lib-betaifinix-custom-login18ifinix-custom-login25hemmeligharbest-backofficekyte-sdk@wavemaker/wavepulse-server@web3jskit/walletkit@xircus-web3/composer@u2uxyz/u2uconnect-core@tomo-inc/tomo-social-react@tomo-inc/tomo-web-sdk@tomo-wallet/uikit@thelanding/ui@thebadge/ui-library@tria-sdk/authenticate-react@url-scheme/shared@vscorpio/heliofi-react-bunnybytes@xtraa/tradesafe-components@zebrainy/react-components@zebrainy/react-components2@zebrainy/testallpasstrustaginteractiveanimated-mur-codeattilanapp-barcode-generator@pangolindex/components@pakt/payment-module@nnc-digital/nnc-design-system@nsfw-app/ui@nofrixion/components@oneauxilia/oneauxilia-react@openware/opendax-web-sdk@openeventkit/event-site@open-tender/ui@pioneer-platform/pioneer-react@polygram/wallet@pelcro/react-pelcro-js@owlprotocol/ui-reactfood-trace-xmugatherly-appgearboxdownloadmodal@shayanja/react-crypto-payment@stokr/components-library@subwallet/extension-koni-ui@swapcard/react-sdk@swisstronik/sdi-react-sdkdropzone-react-tailwind223300-qr@bluecheck/react-library@bytexbyte/berifyme-react-sdk@calebux/goldrush-kit@brilliant_emporium/ui@cds.id/splat-viewer@catena-network/catena-ui-module@catalabs/bitcoin-widget@chainfuse/ui@chimoney/offline-pay-with-crypto-widget@classon/nextui@bedrock-foundation/react-sdk@cardscan.ai/insurance-cardscan-reactcashier-library-digitaincashier-library-testconnextconnext-browser-sdkcash-kash-sdkcllkdecryption_component-kitbasket_deskberifymesdkbetter-auth-componentsbeyd-easypaybiometriawidgettestbonuspluscomponentsdev-test-mfadownloadmodal
2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

3 years ago

2.0.9

3 years ago

2.0.10

3 years ago

2.0.8

3 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.3

7 years ago

0.1.2

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.1-rc.7

9 years ago

0.0.1-rc.6

9 years ago

0.0.1-rc.5

9 years ago

0.0.1-rc.4

9 years ago

0.0.1-rc.3

9 years ago

0.0.1-rc.2

9 years ago

0.0.1-rc.1

9 years ago