qrcode default size
This commit is contained in:
parent
b03e4db2ee
commit
20956402c2
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue