Skip to content

VomPom/J2V8_tutorial

Repository files navigation

J2V8_tutorial

J2V8 tutorial on Android.

  • Simple call JavaScript method.
  • Call a method that returns a promise.
  • Made two native plugins(console,setTimeout)

Usage

Package js

cd js
npm install
./node_modules/.bin/webpack --config webpack.config.js

Android

init

J2V8Helper.init(this, "example.js", "libExample")

run

// run method returns with normal type.
J2V8Helper.runJS(moduleName, funName, params)

// run method returns with [Promise] type.
J2V8Helper.runJSPromise(moduleName, funName, params)

Snapshot

Environment

npm 6.14.17

node.js v14.20.0

About

J2V8 tutorial on Android.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published