diff --git a/index.js b/index.js index ebc4665..c35c7f8 100644 --- a/index.js +++ b/index.js @@ -350,7 +350,7 @@ export default class JPush { if (Platform.OS == "android") { JPushModule.setMaxGeofenceNumber(params) } else { - JPushModule.setGeofenecMaxCount(params) + JPushModule.setGeofenceMaxCount(params) } } diff --git a/ios/RCTJPushModule/RCTJPushModule.m b/ios/RCTJPushModule/RCTJPushModule.m index 9062fcc..c1f9cf8 100644 --- a/ios/RCTJPushModule/RCTJPushModule.m +++ b/ios/RCTJPushModule/RCTJPushModule.m @@ -343,10 +343,10 @@ - (id)init } } -RCT_EXPORT_METHOD(setGeofenecMaxCount:(NSDictionary *)params) +RCT_EXPORT_METHOD(setGeofenceMaxCount:(NSDictionary *)params) { if(params[GEO_FENCE_MAX_NUMBER]){ - [JPUSHService setGeofenecMaxCount:[params[GEO_FENCE_MAX_NUMBER] integerValue]]; + [JPUSHService setGeofenceMaxCount:[params[GEO_FENCE_MAX_NUMBER] integerValue]]; } } diff --git a/package.json b/package.json index 8935a58..710baea 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "index.d.ts", "license": "ISC", "author": "wicked.tc130", - "version": "2.8.5", + "version": "2.8.6", "repository": { "type": "git", "url": "https://github.com/jpush/jpush-react-native"