Skip to content

Commit

Permalink
feat: add if for better mimicing of the original method
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLewicki authored and cipolleschi committed May 20, 2024
1 parent ee0590e commit 34c3ac4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ - (void)_notifyEventDispatcherObserversOfEvent_DEPRECATED:(NSNotification *)noti
{
NSDictionary *userInfo = notification.userInfo;
id<RCTEvent> event = [userInfo objectForKey:@"event"];
[self notifyObserversOfEvent:event];
if (event) {
[self notifyObserversOfEvent:event];
}
}

- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
Expand Down

0 comments on commit 34c3ac4

Please sign in to comment.