react-snapcode (npm)
React Snapcode Component
$ npm install react-snapcode
import Snapcode from 'react-snapcode';
<Snapcode username="TestUsername"/>
import Snapcode from 'react-snapcode';
<Snapcode
username="TestSnapchatUsername"
width="500px"
height="500px"
dotsColor="#FF0000"
backgroundColor="#0000FF"
ghostColor="#008000"
/>
- Username props is required.
- Width, height, backgroundColor, ghostColor, dotsColor are optional.
- Height and width default is 320x320.