0.5.3 • Published 2 years ago

zebview-bridge v0.5.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

ZebView

npm.io

Bridge between javascript and java on Android WebView

Get Start

There are two parts for getting start

Android Part

See ZebView for more information

Frontend Part

Add dependency

npm install zebview-bridge
//or
yarn add zebview-bridge

Call service

//Import
//If not in a ZebView's environmnet, api will be null
import {api} from 'zebview-bridge'

//Call native api
const res=api.TestService.test(789,"string",false)

//Support promise
api.TestService.manyWork().then(()=>{
    //promise resolve
}).catch(()=>{
    //promise reject
})

//Support return in callback
api.TestService.notifyJs((name)=>{
    return "my name is "+name
})
0.5.3

2 years ago

0.3.5

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.5.2

3 years ago

0.3.4

3 years ago

0.5.1

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago