1.0.2 • Published 6 years ago

wyre-react-library v1.0.2

Weekly downloads
9
License
ISC
Repository
github
Last release
6 years ago

This is the React.js component for Wyre Verification.

Installation

npm install wyre-react-library

Usage

import the library

import WyreVerification from 'wyre-react-library';

The network you are using is decided base on metamask through web3-webpacked-react. If you are on mainnet it will go to production where tokens can be viewed here, on any testnet it will go to sandbox (currently sends tokens to kovan which can be viewed here

render the component

<WyreVerification myButton={myButton} apiKey={apiKey}/>

You will need to generate your own button and pass it in as a prop. One example implementation using the Material-Ui Button would be:

const myButton = OurButton

...then make a function to render it

const OurButton = (props) => {
  return (
    <Button {...props} variant="contained" color="primary">Open Wyre</Button>
  );
}