Skip to content

Commit

Permalink
Merge pull request #271 from winadiw/master
Browse files Browse the repository at this point in the history
Fix React 15 createClass error
  • Loading branch information
chansuke authored Sep 18, 2018
2 parents e070577 + c73b2c4 commit 10f2a80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"homepage": "https://github.com/alinz/react-native-webview-bridge",
"dependencies": {
"invariant": "2.2.0",
"keymirror": "0.1.1"
"keymirror": "0.1.1",
"create-react-class": "15.6.3"
}
}
4 changes: 3 additions & 1 deletion webview-bridge/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
'use strict';

var React = require('react');
React.createClass = require('create-react-class');
var PropTypes = require('prop-types');
var ReactNative = require('react-native');
var invariant = require('invariant');
var keyMirror = require('keymirror');
Expand All @@ -33,7 +35,7 @@ var {
WebViewBridgeManager
}
} = ReactNative;
var { PropTypes } = React;
var { PropTypes } = PropTypes;

var RCT_WEBVIEWBRIDGE_REF = 'webviewbridge';

Expand Down
4 changes: 3 additions & 1 deletion webview-bridge/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'use strict';

var React = require('react');
React.createClass = require('create-react-class');
var PropTypes = require('prop-types');
var ReactNative = require('react-native');
var invariant = require('invariant');
var keyMirror = require('keymirror');
Expand All @@ -33,7 +35,7 @@ var {
WebViewBridgeManager
}
} = ReactNative;
var { PropTypes } = React;
var { PropTypes } = PropTypes;

var BGWASH = 'rgba(255,255,255,0.8)';
var RCT_WEBVIEWBRIDGE_REF = 'webviewbridge';
Expand Down

0 comments on commit 10f2a80

Please sign in to comment.