nwbridge
v1.6.3
Published
Native/Webview bridge for Hybrid
Downloads
1
Maintainers
Readme
NWBridge
JavaScript "bridge" for connecting Native and Webview on iOS/Android.
Build
$ make
Test
$ karma start
Usage
new NWBridge(nativeExport, webviewExport, scheme, hybridInitData);
Example:
var hybridInitData = {
platform: 'android',// or 'ios'
version: '7.4.0' // semver
};
new NWBridge('__js_bridge__', 'JsBridge', 'schema://', hybridInitData);
Then, two global object will be created: window.JsBridge
and window.__js_bridge__
。
See documentation for more details.
Build
Built with panto, just dog-fooding. You can use Webpack too.