Permalink
Browse files

Make RCTUIManager and RCTDeviceInfo unsubscribe from NSNotificationCe…

…nter on

Reviewed By: fromcelticpark

Differential Revision: D5986167

fbshipit-source-id: 18131572361c4b3f5e0ed5c8f97833a21902cad1
  • Loading branch information...
Dmitry Zakharov authored and facebook-github-bot committed Oct 10, 2017
1 parent bbc3f60 commit 04ff184c12e48f683c5758556917b7a41e7d2e65
Showing with 10 additions and 0 deletions.
  1. +5 −0 React/Modules/RCTDeviceInfo.m
  2. +5 −0 React/Modules/RCTUIManager.m
@@ -86,6 +86,11 @@ static BOOL RCTIsIPhoneX() {
};
}
- (void)dealloc
{
[NSNotificationCenter.defaultCenter removeObserver:self];
}
- (void)invalidate
{
RCTExecuteOnMainQueue(^{
@@ -79,6 +79,11 @@ + (BOOL)requiresMainQueueSetup
return NO;
}
- (void)dealloc
{
[NSNotificationCenter.defaultCenter removeObserver:self];
}
- (void)invalidate
{
/**

0 comments on commit 04ff184

Please sign in to comment.