npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

@cqlinkoff/wk-bridge

1.1.2 • Public • Published

wk-bridge

Bridge between Native and Web, based on WKWebView and compatible Android

node npm license Build Status Standard - JavaScript Style Guide Coverage Status

Install

npm i @cqlinkoff/wk-bridge

Use

import WKBridge from '@cqlinkoff/wk-bridge'
 
const bridge = new WKBridge({
  namespace: 'namespace'
})
 
bridge.postMessage(handler, data)

API

new WKBridge(options)

create WKBridge instance

  • options:

    • namespace: namespace which inject by Android WebView

postMessage(handler, data)

call native method

  • handler: native method name
  • data: arguments

install

npm i @cqlinkoff/wk-bridge

Downloadsweekly downloads

8

version

1.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability