From 20956402c23957b8222f67d1f888c454d2dc94b3 Mon Sep 17 00:00:00 2001 From: cssivision Date: Sat, 21 Nov 2015 21:20:49 +0800 Subject: [PATCH] qrcode default size --- lib/QRCode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/QRCode.js b/lib/QRCode.js index 8b2a7ee..c5224d7 100644 --- a/lib/QRCode.js +++ b/lib/QRCode.js @@ -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}} /> );