Browse Source

修改android 注销事件的bug

a289459798 8 years ago
parent
commit
78a03f8bdf

+ 1 - 1
index.js

@@ -111,7 +111,7 @@ class MIPush extends NativeEventEmitter {
             PushNotificationIOS.removeEventListener(type);
         } else {
 
-            this.removeEventListener(type);
+            this.removeListener(type);
         }
     }
 

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


+ 1 - 1
package.json

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