From f220bde4d7d556b3be83cccff0eec5da22921aba Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Mon, 9 Sep 2024 04:31:17 -0700 Subject: [PATCH] Remove Inspector Panel perf + network tabs under New Arch (#46307) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46307 Changelog: [General][Breaking] - Remove Inspector Panel perf + network tabs under New Arch (see https://github.com/react-native-community/discussions-and-proposals/pull/777) Reviewed By: christophpurrer Differential Revision: D62123634 fbshipit-source-id: 44ecc476943ccb33f8de96dcefa3e233e954841a --- .../Libraries/Inspector/InspectorPanel.js | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/react-native/Libraries/Inspector/InspectorPanel.js b/packages/react-native/Libraries/Inspector/InspectorPanel.js index 9b0fe2392c3..de33fb46882 100644 --- a/packages/react-native/Libraries/Inspector/InspectorPanel.js +++ b/packages/react-native/Libraries/Inspector/InspectorPanel.js @@ -80,16 +80,22 @@ class InspectorPanel extends React.Component { pressed={this.props.inspecting} onClick={this.props.setInspecting} /> - - + {global.RN$Bridgeless === true ? null : ( + // These Inspector Panel sub-features are removed under the New Arch. + // See https://github.com/react-native-community/discussions-and-proposals/pull/777 + <> + + + + )}