mirror of
https://github.com/status-im/react-native-webview-bridge.git
synced 2026-08-31 13:21:15 +00:00
19 lines
340 B
JavaScript
19 lines
340 B
JavaScript
(function() {
|
|
'use strict';
|
|
var WebViewBridge = {};
|
|
|
|
function noop() {}
|
|
|
|
WebViewBridge = {
|
|
send: function (value) {
|
|
|
|
},
|
|
onMessage: noop
|
|
};
|
|
|
|
window.WebViewBridge = WebViewBridge;
|
|
var event = document.createEvent('Event');
|
|
event.initEvent('WebViewBridge', true, true);
|
|
document.dispatchEvent(event);
|
|
}());
|