diff options
Diffstat (limited to 'src/screens/main/NotificationsScreen.tsx')
-rw-r--r-- | src/screens/main/NotificationsScreen.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx index 84c15f66..b19107a7 100644 --- a/src/screens/main/NotificationsScreen.tsx +++ b/src/screens/main/NotificationsScreen.tsx @@ -29,6 +29,7 @@ import { import {RootState} from '../../store/rootReducer'; import {NotificationType, ScreenType} from '../../types'; import {getDateAge, normalize, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; +import PushNotificationIOS from '@react-native-community/push-notification-ios'; const NotificationsScreen: React.FC = () => { const {newNotificationReceived} = useSelector( @@ -111,6 +112,7 @@ const NotificationsScreen: React.FC = () => { : moment(previousLastViewed), ); await AsyncStorage.setItem(key, moment().toString()); + PushNotificationIOS.setApplicationIconBadgeNumber(0); }; getAndUpdateLastViewed(); }, [notifications]); |