taro-flappybird
v0.0.2
Published
flappybird
Downloads
5
Readme
flappybird
简介
使用Taro封装飞翔鸟插件,在taro项目中使用此插件,可进行飞翔鸟。
本地测试
cd flappybird
npm install
[sudo] npm link
会生成npm包 /usr/local/lib/node_modules/@aimcheap/flappybird
cd example
npm install
npm link @aimcheap/flappybird
生产使用
- 安装插件
yarn add @aimcheap/flappybird
- 引入插件
import WidgetFlappybird from '@aimcheap/flappybird'
- taro页面添加标签
<WidgetFlappybird api='your-server-api' phoneNumber='手机号' userInfo={用户信息}/>
api: String类型
phoneNumber: String类型
userInfo: Object类型