Permalink
Browse files

Disable RCTPerfMonitor on new bridge

Reviewed By: mhorowitz

Differential Revision: D4446988

fbshipit-source-id: f36360b1ea049e64e2a6a9bffce0af8d0ab6839a
  • Loading branch information...
javache authored and facebook-github-bot committed Jan 23, 2017
1 parent 4aac5cd commit 9681583cf3a19dee330f20a74b73b523cd7e59b1
Showing with 5 additions and 1 deletion.
  1. +5 −1 React/Profiler/RCTPerfMonitor.m
@@ -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 @@ - (void)setBridge:(RCTBridge *)bridge
{
_bridge = bridge;
- [_bridge.devMenu addItem:self.devMenuItem];
+ // TODO: enable on cxx bridge
+ if ([_bridge isKindOfClass:[RCTBatchedBridge class]]) {
+ [_bridge.devMenu addItem:self.devMenuItem];
+ }
}
- (void)invalidate

0 comments on commit 9681583

Please sign in to comment.