npm install
Register a handler called call
return with Promise
Example:
call("forward", {type: 1}, function(data) { console.log(data); })
or call global object Example:
WebviewJsBridge.jsCallNative("forward", {type: 1}, function(data) { console.log(data); })
WebviewJsBridge.listenToNativeEmitMessage("networkStateChange", function(data) { console.log('network type: ' + data.networkType); })