qrcode default size

This commit is contained in:
cssivision 2015-11-21 21:20:49 +08:00
parent b03e4db2ee
commit 20956402c2
1 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ var QRCode = React.createClass({
value: 'https://github.com/cssivision',
fgColor: 'white',
bgColor: 'black',
size: 128,
}
},
@ -62,7 +63,7 @@ var QRCode = React.createClass({
cells: qr(this.props.value).modules,
}}
render={renderCanvas}
style={{height: size + 2, width: size + 2}}
style={{height: size, width: size}}
/>
</View>
);