0.0.24 • Published 6 years ago

ark-qrcode-react v0.0.24

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ARK QR Code React Component

This is an unofficial spin-off of the official Ark web component to generate QR codes for ARK payments.

I wanted to be able to create Ark QR codes inside of my React app, which doesn't use TypeScript or Stencil.

Install

Node Modules

  • Run npm install ark-qrcode-react --save
  • Import the component import ArkQrCode from 'ark-qrcode-react';

Usage

Insert the element in your code and enter your custom properties:

<ArkQrCode
  address="AG2QPHeZhbaYvEhB2Sbng7HNDX2Sai1on1"
  amount={1}
  label="ArkMoon%20Donations"
  showLogo={true}
  size={200}
  vendorField="QR%20Code%20donation" />

Generates this QR code:

Properties

This package complies with the specifications described in AIP-13.

AttributeDescriptionTypeRequired
addressArk recipient address encoded in Base58.StringYes
amountAmount in ARK (Ѧ) or DARK (DѦ).NumberNo
labelRecipient label string.StringNo
sizeSize of the QR code (pixels)NumberNo
show-logoDisplay the ARK logo in QR codeBooleanNo
vendor-fieldVendor field string (encoded URI).StringNo

Authors

based off of the work of:

License

ARK QRCode React is licensed under the MIT License - see the LICENSE file for details.

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago