npm, with a project
Available nowUse this when your app already has a package.json. Import WebView from the package and each plugin from its file.
$npm install @yandeu/js-bridge
import { WebView } from '@yandeu/js-bridge'
import { Vibration } from '@yandeu/js-bridge/lib/plugins/vibration.js'
if (WebView.isReady) {
await WebView.statusBar.setColor('#000000')
}
document.getElementById('vibrate')?.addEventListener('click', () => {
Vibration.vibrate()
})