Skip to content

Commit

Permalink
iOS 接口调整
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLipan committed Aug 9, 2021
1 parent 0e067b4 commit 682d897
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export default class JPush {
if (Platform.OS == "android") {
JPushModule.setMaxGeofenceNumber(params)
} else {
JPushModule.setGeofenecMaxCount(params)
JPushModule.setGeofenceMaxCount(params)
}
}

Expand Down
4 changes: 2 additions & 2 deletions ios/RCTJPushModule/RCTJPushModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 682d897

Please sign in to comment.