安装
npm install react-native-ugen-plugin --registry=http://192.168.2.91:7001
引用
import NativePlugin from 'react-native-ugen-plugin'
参数:
参数名 | 参数类型 | 是否必选 | 默认值 | 描述 |
---|---|---|---|---|
shopId | String | Y | 跳转的商铺ID |
返回值:无
NativePlugin.gotoTmall('62890059');
参数:无
返回值:Promise
参数名 | 参数类型 | 是否必选 | 默认值 | 描述 |
---|---|---|---|---|
AppName | String | Y | App名称 | |
AppVersion | String | Y | App版本号 |
NativePlugin.getCurrentAppMessage();
参数:无
返回值:Promise
参数名 | 参数类型 | 是否必选 | 默认值 | 描述 |
---|---|---|---|---|
isSuccess | Bool | Y | 是否打开成功 |
NativePlugin.openUrlByWebBrowser('www.baidu.com');
参数:无
返回值:无
NativePlugin.openAppStore();
参数:
参数名 | 参数类型 | 是否必选 | 默认值 | 描述 |
---|---|---|---|---|
permissonArr | Array | Y | 要打开的权限数组 |
返回值:Promise
参数名 | 参数类型 | 是否必选 | 默认值 | 描述 |
---|---|---|---|---|
stateArr | Array | Y | 权限结果回调数组 |
参数:无
返回值:无
参数:无
返回值:Promise
参数名 | 参数类型 | 是否必选 | 默认值 | 描述 |
---|---|---|---|---|
ssid | String | Y | wifi名 |