Skip to content

thjjames/webview-js-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebviewJavascriptBridge

Usage

npm install

Javascript API

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); })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published