diff --git a/README.md b/README.md
index 0bec521..e04a6e6 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# React-Native-Wechat-Lib
-
+



@@ -36,7 +36,7 @@
目前最新代码版本为 3.0.x,但 NPM Last 版本暂时只到 1.1.26,因为 **3.0.x 暂时还处于开发阶段**,有小部分功能**未经过测试**。
-如果你需要使用 3.0.x 版本,请在 package.json 中加上版本号 react-native-wechat-lib@3.0.4,切换前请你清楚了解该版本的风险,该版本为开发版。
+如果你需要使用 3.0.x 版本,请在 package.json 中加上版本号 **react-native-wechat-lib@3.0.4**,切换前请你清楚了解该版本的风险,该版本为开发版。
我会尽快推出 3.0.x 发行版。
@@ -62,6 +62,9 @@
NPM 安装
```sh
npm install react-native-wechat-lib --save
+# 3.0.x 使用3.0.4
+npm install react-native-wechat-lib@3.0.4 --save
+
# 3.0.0 开始弃用
react-native link react-native-wechat-lib
```
diff --git a/android/src/main/java/com/wechatlib/WeChatLibModule.java b/android/src/main/java/com/wechatlib/WeChatLibModule.java
index 9c1bd99..e51fd18 100644
--- a/android/src/main/java/com/wechatlib/WeChatLibModule.java
+++ b/android/src/main/java/com/wechatlib/WeChatLibModule.java
@@ -120,7 +120,7 @@ public class WeChatLibModule extends ReactContextBaseJavaModule implements IWXAP
@Override
public String getName() {
- return "RCTWeChat";
+ return "WeChat";
}
/**
diff --git a/ios/WechatLib.h b/ios/WechatLib.h
index 615f1ec..dabcf62 100644
--- a/ios/WechatLib.h
+++ b/ios/WechatLib.h
@@ -24,7 +24,7 @@
#define RCTWXEventName @"WeChat_Resp"
#define RCTWXEventNameWeChatReq @"WeChat_Req"
-@interface WechatLib : NSObject
+@interface WeChat : NSObject
@property NSString* appId;
diff --git a/ios/WechatLib.mm b/ios/WechatLib.mm
index ce0f9f4..f6e85ef 100644
--- a/ios/WechatLib.mm
+++ b/ios/WechatLib.mm
@@ -8,12 +8,12 @@
#import "WechatAuthSDK.h"
-@interface WechatLib ()
+@interface WeChat ()
@property (nonatomic, strong) WechatAuthSDK *authSDK;
@property (nonatomic, strong) RCTResponseSenderBlock scanCallback;
@end
-@implementation WechatLib
+@implementation WeChat
// Define error messages
#define NOT_REGISTERED (@"registerApp required.")
diff --git a/src/index.js b/src/index.js
index 638ca8f..f4aa52c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -5,11 +5,7 @@ import { sha1 } from 'js-sha1';
import { DeviceEventEmitter, NativeEventEmitter, NativeModules, Platform } from 'react-native';
let isAppRegistered = false;
-let { WeChat, WechatLib } = NativeModules;
-
-if (WeChat == null) {
- WeChat = WechatLib;
-}
+let { WeChat } = NativeModules;
// Event emitter to dispatch request and response from WeChat.
const emitter = new EventEmitter();