Skip to content

Commit

Permalink
Fixes #627 - First foreground notification is not visible (#685)
Browse files Browse the repository at this point in the history
I can't see a reason why `RNNotifications.m` should have its own instance of `RNNotificationsStore` so I'm certain it's a bug. That  was what caused the notifications to not be shown the first time
  • Loading branch information
erkie authored Oct 28, 2020
1 parent 1f3e998 commit 349209a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ios/RNNotifications.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ @implementation RNNotifications {

- (instancetype)init {
self = [super init];
_store = [RNNotificationsStore new];
_store = [RNNotificationsStore sharedInstance];
_notificationEventHandler = [[RNNotificationEventHandler alloc] initWithStore:_store];
return self;
}
Expand Down

0 comments on commit 349209a

Please sign in to comment.