Skip to content

Commit 7aa1990

Browse files
committed
udpate docs
1 parent 0216591 commit 7aa1990

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

example/documents/APIs.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,19 +196,15 @@ All apis can find in jpush-react-native/index.js.
196196
set application's badge.
197197

198198
```js
199-
JPushModule.setBadge(5, (success) => {
200-
console.log(success)
201-
});
199+
JPushModule.setBadge(5, (success) => { } );
202200
```
203201

204202
#### getBadge
205203

206204
get application's badge.
207205

208206
```javascript
209-
JPushModule.getBadge((badge) => {
210-
console.log(badge)
211-
});
207+
JPushModule.getBadge( (badge) => { } );
212208
```
213209

214210
#### setLocalNotification

example/documents/APIs_zh.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Android 和 iOS 通用 API。
213213
- removeReceiveCustomMsgListener(function)
214214

215215
```
216-
JPushModule.removeReceiveCustomMsgListener(callback);
216+
JPushModule.removeReceiveCustomMsgListener(callback);
217217
```
218218

219219

@@ -225,19 +225,15 @@ Android 和 iOS 通用 API。
225225
设置应用 badge 值,该方法还会同步 JPush 服务器的的 badge 值,JPush 服务器的 badge 值用于推送 badge 自动 +1 时会用到。
226226

227227
```js
228-
JPushModule.setBadge(5, (success) => {
229-
console.log(success)
230-
});
228+
JPushModule.setBadge(5, (success) => {} );
231229
```
232230

233231
#### getBadge
234232

235233
获取应用 badge 值。
236234

237235
```javascript
238-
JPushModule.getBadge((badge) => {
239-
console.log(badge)
240-
});
236+
JPushModule.getBadge((badge) => { } );
241237
```
242238

243239
#### setLocalNotification

0 commit comments

Comments
 (0)