Skip to content

Commit 3e94519

Browse files
committed
修复 iOS bool 问题
1 parent 99c2d27 commit 3e94519

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"test": "jest"
1111
},
1212
"dependencies": {
13-
"jcore-react-native": "^2.2.8",
14-
"jpush-react-native": "^3.1.5",
13+
"jcore-react-native": "^2.3.0",
14+
"jpush-react-native": "^3.1.7",
1515
"react": "18.2.0",
1616
"react-native": "0.74.1"
1717
},

ios/RCTJPushModule/RCTJPushModule.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ - (id)init
126126
}
127127

128128

129-
RCT_EXPORT_METHOD(setDebugMode: (BOOL *)enable)
129+
RCT_EXPORT_METHOD(setDebugMode: (BOOL )enable)
130130
{
131131
if(enable){
132132
[JPUSHService setDebugMode];
@@ -378,7 +378,7 @@ - (id)init
378378
[JPUSHService setCollectControl:control];
379379
}
380380

381-
RCT_EXPORT_METHOD(setSmartPushEnable:(BOOL *)enable)
381+
RCT_EXPORT_METHOD(setSmartPushEnable:(BOOL )enable)
382382
{
383383
[JPUSHService setSmartPushEnable:enable];
384384
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "index.d.ts",
77
"license": "ISC",
88
"author": "wicked.tc130",
9-
"version": "3.1.6",
9+
"version": "3.1.7",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/jpush/jpush-react-native"

0 commit comments

Comments
 (0)