Native2Web

Communication from native to web

Embed example:

npm run build
<script src="/dist/web2native2web.global.js"></script>
<script>
Web2Native2Web.Native2Web.CMP.handleShowFirstLayer(() => {
console.log('Show first layer requested')
})
</script>

Module example:

npm i web2native2web
import type { Native2Web } from 'Web2Native2Web'

Native2Web.CMP.handleShowFirstLayer(() => {
console.log('Show first layer requested')
})

Rebuild docs:

npm run docs