From 58af1c00a7dc2e9b4bd59993d002c1045a9bd22f Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Fri, 29 Mar 2019 07:35:38 +0200 Subject: [PATCH] Fix white background issue --- lib/QRCode.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/QRCode.js b/lib/QRCode.js index 7471f47..c0855dc 100644 --- a/lib/QRCode.js +++ b/lib/QRCode.js @@ -104,7 +104,7 @@ var QRCode = createReactClass({ render={renderCanvas} onLoad={this.props.onLoad} onLoadEnd={this.props.onLoadEnd} - style={{height: size, width: size}} + style={{height: size, width: size, backgroundColor: 'transparent'}} /> ); diff --git a/package.json b/package.json index c051fa9..8c56593 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-qrcode", - "version": "0.2.7", + "version": "0.2.8", "description": "react-native qrocode generator", "main": "index.js", "repository": {