1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: Add getApiVersion props.

This commit is contained in:
jaywcjlove
2020-08-02 02:04:01 +08:00
parent 70405ecbf5
commit 0ee0690846
6 changed files with 68 additions and 23 deletions

View File

@@ -1,7 +1,5 @@
import { NativeModules, Platform } from 'react-native';
// const { RNWechat } = NativeModules;
export default class Wechat {
/**
* 向微信注册应用
@@ -28,4 +26,10 @@ export default class Wechat {
static isWXAppSupportApi() {
return NativeModules.RNWechat.isWXAppSupportApi();
}
/**
* 获取当前微信SDK的版本号
*/
static getApiVersion() {
return NativeModules.RNWechat.getApiVersion();
}
}