Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
scazzy committed Mar 20, 2018
2 parents 7159656 + 65d79a9 commit f2ab843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export default class MyWebView extends Component {
return (
<WebView
ref={(ref) => { this.webview = ref; }}
injectedJavaScript={'(' + String(injectedScript) + ')();'}
injectedJavaScript={'(' + String(injectedScript) + ')();' +
'window.postMessage = String(Object.hasOwnProperty).replace(\'hasOwnProperty\', \'postMessage\');'}
scrollEnabled={this.props.scrollEnabled || false}
onMessage={this._onMessage}
javaScriptEnabled={true}
Expand Down

0 comments on commit f2ab843

Please sign in to comment.