Merge pull request #12 from timzaak/fix0.25.1

fix react-native 0.25.1 version
This commit is contained in:
sivision.chen 2016-05-06 00:05:21 +08:00
commit 0d098edc66
2 changed files with 5 additions and 7 deletions

View File

@ -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: {

View File

@ -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');