siro-jsbridge
TypeScript icon, indicating that this package has built-in type declarations

1.0.27 • Public • Published

siro-jsbridge

Introduce

This project is based on the JS part of dsbridge, which is rewritten after engineering.I hope it's useful for you。

Project setup

npm install

Compiles and hot-reloads for development

npm start

Compiles and minifies for production

npm run build

How to use

In VUE main.js

import {SRJSBridge} from 'siro-jsbridge'
Vue.prototype.SRJSBridge = window.SRJSBridge;

then

SRJSBridge.invoke('getBluetoothDevice','getBluetoothDevice',(v)=>{
    console.log(v);
});

Readme

Keywords

none

Package Sidebar

Install

npm i siro-jsbridge

Weekly Downloads

16

Version

1.0.27

License

MIT

Unpacked Size

19.8 kB

Total Files

28

Last publish

Collaborators

  • liangxuhui