Skip to content

Commit 476397b

Browse files
committed
Removing deprecated functionality.
1 parent 45a330f commit 476397b

File tree

5 files changed

+192
-25
lines changed

5 files changed

+192
-25
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.DS_Store

package-lock.json

Lines changed: 127 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 53 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,68 @@
11
{
2-
"name": "react-native-webview-bridge",
3-
"version": "0.33.0",
2+
"_from": "git+https://github.com/alinz/react-native-webview-bridge.git",
3+
"_id": "react-native-webview-bridge@0.33.0",
4+
"_inBundle": false,
5+
"_integrity": "sha1-FGO0lAKW/eKAgh/kgwqicIr6rTI=",
6+
"_location": "/react-native-webview-bridge",
7+
"_phantomChildren": {
8+
"loose-envify": "1.3.1"
9+
},
10+
"_requested": {
11+
"type": "git",
12+
"raw": "react-native-webview-bridge-updated@git+https://github.com/alinz/react-native-webview-bridge",
13+
"name": "react-native-webview-bridge-updated",
14+
"escapedName": "react-native-webview-bridge-updated",
15+
"rawSpec": "git+https://github.com/alinz/react-native-webview-bridge",
16+
"saveSpec": "git+https://github.com/alinz/react-native-webview-bridge.git",
17+
"fetchSpec": "https://github.com/alinz/react-native-webview-bridge.git",
18+
"gitCommittish": "master"
19+
},
20+
"_requiredBy": [
21+
"#USER",
22+
"/"
23+
],
24+
"_resolved": "git+https://github.com/alinz/react-native-webview-bridge.git#45a330f5a637a6b1df8e6a19e99068ca52642769",
25+
"_spec": "react-native-webview-bridge-updated@git+https://github.com/alinz/react-native-webview-bridge",
26+
"_where": "/Users/adrienne/Code/dani-rewiremed/rewiremed",
27+
"author": {
28+
"name": "Ali Najafizadeh"
29+
},
30+
"bugs": {
31+
"url": "https://github.com/alinz/react-native-webview-bridge/issues"
32+
},
33+
"bundleDependencies": false,
34+
"contributors": [
35+
{
36+
"name": "Hunter Medney"
37+
}
38+
],
39+
"dependencies": {
40+
"create-react-class": "^15.6.2",
41+
"invariant": "2.2.0",
42+
"keymirror": "0.1.1"
43+
},
44+
"deprecated": false,
445
"description": "React Native WebView Javascript Bridge",
5-
"main": "webview-bridge",
646
"directories": {
747
"example": "example",
848
"lib": "lib"
949
},
10-
"scripts": {
11-
"test": "echo \"Error: no test specified\" && exit 1"
12-
},
13-
"repository": {
14-
"type": "git",
15-
"url": "git@github.com:alinz/react-native-webview-bridge.git"
16-
},
50+
"homepage": "https://github.com/alinz/react-native-webview-bridge",
1751
"keywords": [
1852
"react-native",
1953
"react-component",
2054
"ios",
2155
"webview-bridge"
2256
],
23-
"author": "Ali Najafizadeh",
24-
"contributors": [
25-
"Hunter Medney"
26-
],
2757
"license": "MIT",
28-
"bugs": {
29-
"url": "https://github.com/alinz/react-native-webview-bridge/issues"
58+
"main": "webview-bridge",
59+
"name": "react-native-webview-bridge",
60+
"repository": {
61+
"type": "git",
62+
"url": "git+ssh://git@github.com/alinz/react-native-webview-bridge.git"
3063
},
31-
"homepage": "https://github.com/alinz/react-native-webview-bridge",
32-
"dependencies": {
33-
"invariant": "2.2.0",
34-
"keymirror": "0.1.1"
35-
}
64+
"scripts": {
65+
"test": "echo \"Error: no test specified\" && exit 1"
66+
},
67+
"version": "0.33.0"
3668
}

webview-bridge/index.android.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
*/
1414
'use strict';
1515

16+
import PropTypes from 'prop-types';
17+
18+
var createReactClass = require('create-react-class');
19+
1620
var React = require('react');
1721
var ReactNative = require('react-native');
1822
var invariant = require('invariant');
@@ -33,7 +37,7 @@ var {
3337
WebViewBridgeManager
3438
}
3539
} = ReactNative;
36-
var { PropTypes } = React;
40+
3741

3842
var RCT_WEBVIEWBRIDGE_REF = 'webviewbridge';
3943

@@ -48,7 +52,7 @@ var RCTWebViewBridge = requireNativeComponent('RCTWebViewBridge', WebViewBridge)
4852
/**
4953
* Renders a native WebView.
5054
*/
51-
var WebViewBridge = React.createClass({
55+
var WebViewBridge = createReactClass({
5256

5357
propTypes: {
5458
...RCTWebViewBridge.propTypes,

webview-bridge/index.ios.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ var {
3333
WebViewBridgeManager
3434
}
3535
} = ReactNative;
36-
var { PropTypes } = React;
36+
import PropTypes from 'prop-types';
37+
38+
var createReactClass = require('create-react-class');
3739

3840
var BGWASH = 'rgba(255,255,255,0.8)';
3941
var RCT_WEBVIEWBRIDGE_REF = 'webviewbridge';
@@ -90,7 +92,7 @@ var defaultRenderError = (errorDomain, errorCode, errorDesc) => (
9092
/**
9193
* Renders a native WebView.
9294
*/
93-
var WebViewBridge = React.createClass({
95+
var WebViewBridge = createReactClass({
9496
statics: {
9597
JSNavigationScheme: JSNavigationScheme,
9698
NavigationType: NavigationType,

0 commit comments

Comments
 (0)