Skip to content

Commit

Permalink
Fixes wix#627 - First foreground notification is not visible (wix#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 and mburmistrov committed Jan 10, 2021
1 parent 76c0af9 commit 70a966c
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 70a966c

Please sign in to comment.