Skip to content

Commit 876df04

Browse files
committed
remove bridge script injection
this is now handled on the native side
1 parent 1714f78 commit 876df04

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

webview-bridge/index.android.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,6 @@ var WebViewBridge = React.createClass({
174174
);
175175
},
176176

177-
injectBridgeScript: function () {
178-
UIManager.dispatchViewManagerCommand(
179-
this.getWebViewBridgeHandle(),
180-
UIManager.RCTWebViewBridge.Commands.injectBridgeScript,
181-
null
182-
);
183-
},
184-
185177
/**
186178
* We return an event with a bunch of fields including:
187179
* url, title, loading, canGoBack, canGoForward
@@ -197,7 +189,6 @@ var WebViewBridge = React.createClass({
197189
},
198190

199191
onLoadingStart: function(event) {
200-
this.injectBridgeScript();
201192
var onLoadStart = this.props.onLoadStart;
202193
onLoadStart && onLoadStart(event);
203194
this.updateNavigationState(event);

0 commit comments

Comments
 (0)