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',
|
value: 'https://github.com/cssivision',
|
||||||
fgColor: 'white',
|
fgColor: 'white',
|
||||||
bgColor: 'black',
|
bgColor: 'black',
|
||||||
|
size: 128,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ var QRCode = React.createClass({
|
||||||
cells: qr(this.props.value).modules,
|
cells: qr(this.props.value).modules,
|
||||||
}}
|
}}
|
||||||
render={renderCanvas}
|
render={renderCanvas}
|
||||||
style={{height: size + 2, width: size + 2}}
|
style={{height: size, width: size}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue