mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Disable RCTPerfMonitor on new bridge
Reviewed By: mhorowitz Differential Revision: D4446988 fbshipit-source-id: f36360b1ea049e64e2a6a9bffce0af8d0ab6839a
This commit is contained in:
committed by
Facebook Github Bot
parent
4aac5cd02e
commit
9681583cf3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user