1.1.1 • Published 8 years ago
react-snapcode v1.1.1
react-snapcode (npm)
React Snapcode Component
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.