1.1.1 • Published 8 years ago

react-snapcode v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

react-snapcode (npm)

npm version npm.io

React Snapcode Component

npm.io

Install

$ npm install react-snapcode

Usage (in code)

import Snapcode from 'react-snapcode';
<Snapcode username="TestUsername"/>

Examples

import Snapcode from 'react-snapcode';

<Snapcode
    username="TestSnapchatUsername"
    width="500px"
    height="500px"
    dotsColor="#FF0000"
    backgroundColor="#0000FF"
    ghostColor="#008000"
/>

Features

  • Username props is required.
  • Width, height, backgroundColor, ghostColor, dotsColor are optional.
  • Height and width default is 320x320.