forked from getreup/react-native-qrcode-view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
32 lines (32 loc) · 2.64 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name": "react-native-qrcode-view",
"version": "1.0.4",
"description": "<h2 align=\"center\">react-native-qrcode-view</h2>\n\n<p align=\"center\">\nA React Native View to display QR Codes in.\n</p>\n\n<p align=\"center\">\n<a href=\"https://badge.fury.io/js/react-native-qrcode-view\"><img src=\"https://badge.fury.io/js/react-native-qrcode-view.svg\" alt=\"npm version\" height=\"18\"></a>\n\n</p>\n\n\n### TODO\n- [ ] Native Support\n- [x] Android Support\n- [x] IOS Support\n\n### Installation\n\nAll that is needed is installing through npm:\n\n`npm i react-native-qrcode-view --save`\n\n### Usage\n\n```JSX\nvar React = require('react-native');\n\nvar QRCodeView = require('react-native-qrcode-view');\n\nvar {\nAppRegistry,\nStyleSheet,\nView,\n} = React;\n\nvar myQRCodeString = \"Hi, please turn me into a qr code!\";\n\nvar QRCodeDemo = React.createClass(\n{\n\nrender: function()\n{\n\nreturn (\n<View style={styles.container}>\n\n<QRCodeView data={myQRCodeString} dimension={dimension} style={styles.qrcode} />\n\n</View>\n);\n}\n});\n\nvar styles = StyleSheet.create({\ncontainer:{\nflex: 1,\nalignItems: 'stretch',\nflexDirection: 'column',\n},\nqrcode: {\npadding: 50,\nalignItems:'center',\n},\n});\n\nmodule.exports = QRCodeDemo;\n\n\n```\n\n### Methods\n\n`setData`\n\nTakes a string and generates a new QRCode. The data can be set by a prop or through this method after being rendered.\n\n### Options\n\nConfiguration options are specified as attributes on the `<QRCodeView />` element.\n\n#### Dimension (MANDATORY)\n\nProp `dimension`\n\nThis prop is mandatory and determines the width/height of the qrcode grid.\n\n#### Data (OPTIONAL)\n\nProp: `data`\n\nA plain string to be converted into a qrcode. May be set after rendering with the 'setData' method. Defaults to an empty string.\n\n#### Positive Color (OPTIONAL)\n\nProp `positiveColor`\n\n**Defaults to black**\n\nThis is the positive color in the qrcode.\n\n#### Negative Color (OPTIONAL)\n\nProp `negativeColor`\n\n**Defaults to white**\n\nThis is the negative color in the qrcode.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/KelseyRegan/react-native-qrcode-view.git"
},
"keywords": [
"react",
"native",
"qrcode",
"rn",
"ios",
"android",
"view",
"react-component"
],
"author": "Kelsey Regan",
"license": "ISC",
"bugs": {
"url": "https://github.com/KelseyRegan/react-native-qrcode-view/issues"
},
"homepage": "https://github.com/KelseyRegan/react-native-qrcode-view#readme",
"dependencies": {
"javascript-qrcode": "^1.0.7"
}
}