File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -196,19 +196,15 @@ All apis can find in jpush-react-native/index.js.
196196set 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
206204get application's badge.
207205
208206``` javascript
209- JPushModule .getBadge ((badge ) => {
210- console .log (badge)
211- });
207+ JPushModule .getBadge ( (badge ) => { } );
212208```
213209
214210#### setLocalNotification
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments