Browse Source

兼容0.4+ 版本

zhangzy 8 years ago
parent
commit
c886561372

+ 6 - 2
README.md

@@ -2,7 +2,7 @@
 
 该项目基于小米推送,使用前,请先在小米开发者后台注册app,并获取对应的appid与appkey。
 
-开发环境:xcode8、react-native 0.35
+开发环境:xcode8、react-native
 
 ##作者
 
@@ -14,7 +14,11 @@ QQ群: 161263093
 ##安装
 
 ```
-npm install react-native-xmpush --save
+// rn > 0.4.x
+npm install react-native-xmpush --save 
+
+// rn < 0.4.x
+npm install react-native-xmpush@0.1.2 --save 
 react-native link
 ```
 

BIN
ios/RCTMIPushModule/RCTMIPushModule.xcodeproj/project.xcworkspace/xcuserdata/zhangzy.xcuserdatad/UserInterfaceState.xcuserstate


+ 2 - 2
ios/RCTMIPushModule/RCTMIPushModule/RCTMIPushModule.h

@@ -9,8 +9,8 @@
 #import <Foundation/Foundation.h>
 #import <UIKit/UIKit.h>
 #import <UserNotifications/UserNotifications.h>
-#import "RCTBridgeModule.h"
-#import "RCTPushNotificationManager.h"
+#import <React/RCTBridgeModule.h>
+#import <React/RCTPushNotificationManager.h>
 #import "MiPushSDK.h"
 
 @interface RCTMIPushModule : NSObject <RCTBridgeModule, MiPushSDKDelegate>

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "react-native-xmpush",
-  "version": "0.1.2",
+  "version": "0.2.0",
   "description": "集成小米推送",
   "main": "index.js",
   "scripts": {