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;
|
return this.deviceToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
setBadgeCount = (count?: number) => {
|
setBadgeCount = (count = 0) => {
|
||||||
if (isIOS && count) {
|
if (isIOS) {
|
||||||
Notifications.ios.setBadgeCount(count);
|
Notifications.ios.setBadgeCount(count);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue