react-native-qrcode-svg
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "react-native-qrcode-svg", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A QR Code generator for React Native based on react-native-svg and javascript-qrcode.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,4 +7,20 @@ # react-native-qrcode-svg | ||
rnpm link react-native-svg | ||
npm install react-native-qrcode-svg --save | ||
``` | ||
``` | ||
... | ||
import QRCode from 'react-native-qrcode-svg'; | ||
... | ||
render( | ||
<QRCode | ||
size={300} | ||
value="this is a qr code." | ||
color="blue" | ||
backgroundColor="red" | ||
/> | ||
); | ||
... | ||
``` | ||
[react-native-svg](https://github.com/magicismight/react-native-svg) | ||
[javascript-qrcode](https://github.com/siciarek/javascript-qrcode) |
4714
5
26