1.6.3 • Published 8 years ago

nwbridge v1.6.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

NWBridge

NPM version Downloads Build Status Dependency status Dev Dependency status Build with Panto

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.

Author