Skip to content

H5与小火箭APP交互的SDK,Android & iOS通用

License

Notifications You must be signed in to change notification settings

juicecube/rocket-app-bridge

Repository files navigation

rocket-app-bridge

H5与小火箭APP交互的SDK,Android & iOS通用。

使用

基于小火箭APP开发者文档小火箭 H5 Bridge协议开发。

安装

npm i @mlz/rocket-app-bridge@latest

按需引入

  1. 安装babel-plugin-import
npm i -D babel-plugin-import
  1. .babelrc
{
  "plugins": [
    ["import", {
      "libraryName": "@mlz/rocket-app-bridge",
      "camel2DashComponentName": false
    }]
  ]
}
  1. 引入(省略前两步时就不是按需引入了)
import { getUrlQuery } from '@mlz/rocket-app-bridge';

getUrlQuery('https://rab.ithen.cn?name=rocket-app-bridge');
  1. 若不想安装babel-plugin-import,又想按需引入:
import getUrlQuery from '@mlz/rocket-app-bridge/lib/getUrlQuery';

getUrlQuery('https://rab.ithen.cn?name=rocket-app-bridge');

更多使用文档详看Doraemon

TODO

开发

常用命令

# 单个文件测试
jest test/limitStringToTarget.test.ts

须知

  • 如有问题或提需求请提issue

文档

About

H5与小火箭APP交互的SDK,Android & iOS通用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published