mirror of
https://github.com/status-im/react-native-qrcode.git
synced 2025-01-23 17:11:00 +00:00
Merge pull request #12 from timzaak/fix0.25.1
fix react-native 0.25.1 version
This commit is contained in:
commit
0d098edc66
@ -1,10 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var React = require('react-native');
|
var React = require('react');
|
||||||
var {
|
var {
|
||||||
View,
|
View,
|
||||||
WebView
|
WebView
|
||||||
} = React;
|
} = require('react-native');
|
||||||
|
|
||||||
var Canvas = React.createClass({
|
var Canvas = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var React = require('react-native');
|
var React = require('react');
|
||||||
var Canvas = require('./Canvas.js');
|
var Canvas = require('./Canvas.js');
|
||||||
var qr = require('qr.js');
|
var qr = require('qr.js');
|
||||||
var {
|
var {
|
||||||
Text,
|
View,
|
||||||
WebView,
|
} = require('react-native');
|
||||||
View
|
|
||||||
} = React;
|
|
||||||
|
|
||||||
function renderCanvas(canvas) {
|
function renderCanvas(canvas) {
|
||||||
var ctx = canvas.getContext('2d');
|
var ctx = canvas.getContext('2d');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user