Fix QR Code style issue

This commit is contained in:
Diogo Moreira 2016-11-10 17:45:07 +00:00
parent 8a0729cc42
commit ff08e8689c

View File

@ -17,14 +17,13 @@ var Canvas = React.createClass({
var contextString = JSON.stringify(this.props.context);
var renderString = this.props.render.toString();
return (
<View>
<View style={this.props.style}>
<WebView
automaticallyAdjustContentInsets={false}
contentInset={{top: 0, right: 0, bottom: 0, left: 0}}
source={{html: "<style>*{margin:0;padding:0;}canvas{transform:translateZ(0);}</style><canvas></canvas><script>var canvas = document.querySelector('canvas');(" + renderString + ").call(" + contextString + ", canvas);</script>"}}
opaque={false}
underlayColor={'transparent'}
style={this.props.style}
javaScriptEnabled={true}
scrollEnabled={false}
/>