From ccf8fa0159c8cc493a2506b015b19f6c9daa2cf8 Mon Sep 17 00:00:00 2001 From: timzaak Date: Thu, 5 May 2016 23:35:57 +0800 Subject: [PATCH] fix 0.25.1 version --- lib/Canvas.js | 4 ++-- lib/QRCode.js | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/Canvas.js b/lib/Canvas.js index d23472f..51d967f 100644 --- a/lib/Canvas.js +++ b/lib/Canvas.js @@ -1,10 +1,10 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); var { View, WebView -} = React; +} = require('react-native'); var Canvas = React.createClass({ propTypes: { diff --git a/lib/QRCode.js b/lib/QRCode.js index e5009fa..cdbfb59 100644 --- a/lib/QRCode.js +++ b/lib/QRCode.js @@ -1,13 +1,11 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); var Canvas = require('./Canvas.js'); var qr = require('qr.js'); var { - Text, - WebView, - View -} = React; + View, +} = require('react-native'); function renderCanvas(canvas) { var ctx = canvas.getContext('2d');