# react-bitcoin-qr

> React component for a Bitcoin QR code. Supports optional attributes 'amount' and 'message' in addition to required attribute 'address'. Also acts as a link for browsers that support 'bitcoin:' format URIs.

Latest version **0.0.3** (published 2016-02-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install react-bitcoin-qr
pnpm add react-bitcoin-qr
yarn add react-bitcoin-qr
bun add react-bitcoin-qr
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-02-14 |
| First published | 2016-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Willy Bruns |
| Maintainers | willy-b |
| Keywords | bitcoin, qr, address, bitcore, payments |

## Links

- npm: https://www.npmjs.com/package/react-bitcoin-qr
- Repository: https://github.com/willy-b/react-bitcoin-qr
- Homepage: https://github.com/willy-b/react-bitcoin-qr#readme
- Issues: https://github.com/willy-b/react-bitcoin-qr/issues
- npm.io page: https://npm.io/package/react-bitcoin-qr

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^0.14.7
- [react-qr](https://npm.io/package/react-qr.md) ^0.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^0.14.7
- [bitcore-lib](https://npm.io/package/bitcore-lib.md) ^0.13.13

## Recent versions

- 0.0.3 (latest) — 2016-02-14
- 0.0.2 — 2016-02-11
- 0.0.1 — 2016-02-11

## README

# react-bitcoin-qr

React.js Bitcoin QR code component.

( Really just a bitcoin convenience wrapper for JP Richardson's wonderful [react-qr](https://github.com/jprichardson/react-qr) package )

## Installation

    npm i --save react-bitcoin-qr


## Usage (in React app)

```js
var BitcoinQRCode = require('react-bitcoin-qr')

var component = React.createClass({
  render: function() {
    return <BitcoinQRCode address='1PEoUKNxTZsc5rFSQvQjeTVwDE9vEDCRWm' amount='100000' message='One hundred thousand satoshi (1 mBTC) donation to BitGive' />
  }
})
```

## Standalone example

See [example/example.jsx](example/example.jsx) for a working example. 

To test this standalone example (local server), run `example/server.js` :

```
$ npm install
$ node example/server.js
Browserifying the example code... (confirm ./bundle.js is produced)
Bundling...
Bundling finished
Simple-Server listening to http://:::3000/ with directory /home/user/projs/git/react-bitcoin-qr/example
React Bitcoin QR demo page is hosted at http://localhost:3000/index.html
```

## License

MIT

---
_Source: https://npm.io/package/react-bitcoin-qr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
