Regression: Fix badge count logic on iOS (#4154)
* fix badge count logic * set count default value
This commit is contained in:
parent
bd55fe44ba
commit
06a0c4f730
|
@ -73,8 +73,8 @@ class PushNotification {
|
|||
return this.deviceToken;
|
||||
}
|
||||
|
||||
setBadgeCount = (count?: number) => {
|
||||
if (isIOS && count) {
|
||||
setBadgeCount = (count = 0) => {
|
||||
if (isIOS) {
|
||||
Notifications.ios.setBadgeCount(count);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue