diff --git a/README.md b/README.md
index ae43768..8c02c23 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,3 @@
-# THIS PROJECT IS NO LONGER MAINTAINED
-
# react-native-qrcode
A react-native component to generate [QRcode](http://en.wikipedia.org/wiki/QR_code), not only support English.
diff --git a/lib/Canvas.js b/lib/Canvas.js
index 3b1ab26..ef35722 100644
--- a/lib/Canvas.js
+++ b/lib/Canvas.js
@@ -14,29 +14,27 @@ var Canvas = createReactClass({
propTypes: {
style: PropTypes.object,
context: PropTypes.object,
- render: PropTypes.func.isRequired,
- onLoad: PropTypes.func,
- onLoadEnd: PropTypes.func,
+ render: PropTypes.func.isRequired
},
render() {
var contextString = JSON.stringify(this.props.context);
var renderString = this.props.render.toString();
+ var injectJS = "var canvas = document.querySelector('canvas');(" + renderString + ").call(" + contextString + ", canvas)";
return (
*{margin:0;padding:0;}canvas{transform:translateZ(0);}"}}
+ source={{html: ""}}
opaque={false}
underlayColor={'transparent'}
style={this.props.style}
javaScriptEnabled={true}
+ injectedJavaScript={injectJS}
+ mixedContentMode={'compatibility'}
scrollEnabled={false}
- onLoad={this.props.onLoad}
- onLoadEnd={this.props.onLoadEnd}
- originWhitelist={['*']}
/>
);
diff --git a/package.json b/package.json
index c051fa9..bcb2c80 100644
--- a/package.json
+++ b/package.json
@@ -1,22 +1,22 @@
{
- "name": "react-native-qrcode",
- "version": "0.2.7",
+ "name": "react-native-qrcode-render",
+ "version": "0.1.1",
"description": "react-native qrocode generator",
"main": "index.js",
"repository": {
"type": "git",
- "url": "https://github.com/cssivision/react-native-qrcode.git"
+ "url": "https://github.com/vinodkumar8/react-native-qrcode.git"
},
"keywords": [
"react-native",
"qrcode"
],
- "author": "sivision.chen ",
+ "author": "vinod ",
"license": "MIT",
"bugs": {
- "url": "https://github.com/cssivision/react-native-qrcode/issues"
+ "url": "https://github.com/vinodkumar8/react-native-qrcode/issues"
},
- "homepage": "https://github.com/cssivision/react-native-qrcode#readme",
+ "homepage": "https://github.com/vinodkumar8/react-native-qrcode#readme",
"dependencies": {
"create-react-class": "^15.6.0",
"prop-types": "^15.5.10",