diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index 9cfa969cf..7e21a44c2 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -789,6 +789,7 @@ static id _latestJSExecutor; * This runs only on the main thread, but crashes the subclass * RCTAssertMainThread(); */ + [[NSNotificationCenter defaultCenter] removeObserver:self]; [self invalidate]; } @@ -1174,7 +1175,6 @@ RCT_INNER_BRIDGE_ONLY(_invokeAndProcessModule:(NSString *)module method:(NSStrin void (^mainThreadInvalidate)(void) = ^{ - [[NSNotificationCenter defaultCenter] removeObserver:self]; [_mainDisplayLink invalidate]; _mainDisplayLink = nil;