Disable RCTPerfMonitor on new bridge

Reviewed By: mhorowitz

Differential Revision: D4446988

fbshipit-source-id: f36360b1ea049e64e2a6a9bffce0af8d0ab6839a
This commit is contained in:
Pieter De Baets 2017-01-23 10:07:46 -08:00 committed by Facebook Github Bot
parent 4aac5cd02e
commit 9681583cf3
1 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#import "RCTPerformanceLogger.h"
#import "RCTRootView.h"
#import "RCTUIManager.h"
#import "RCTBridge+Private.h"
static NSString *const RCTPerfMonitorKey = @"RCTPerfMonitorKey";
static NSString *const RCTPerfMonitorCellIdentifier = @"RCTPerfMonitorCellIdentifier";
@ -141,7 +142,10 @@ RCT_EXPORT_MODULE()
{
_bridge = bridge;
[_bridge.devMenu addItem:self.devMenuItem];
// TODO: enable on cxx bridge
if ([_bridge isKindOfClass:[RCTBatchedBridge class]]) {
[_bridge.devMenu addItem:self.devMenuItem];
}
}
- (void)invalidate