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
This commit is contained in:
Alex Hunt
2024-09-09 04:31:17 -07:00
committed by Facebook GitHub Bot
parent 7041ed28f0
commit f220bde4d7
+16 -10
View File
@@ -80,16 +80,22 @@ class InspectorPanel extends React.Component<Props> {
pressed={this.props.inspecting}
onClick={this.props.setInspecting}
/>
<InspectorPanelButton
title={'Perf'}
pressed={this.props.perfing}
onClick={this.props.setPerfing}
/>
<InspectorPanelButton
title={'Network'}
pressed={this.props.networking}
onClick={this.props.setNetworking}
/>
{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
<>
<InspectorPanelButton
title={'Perf'}
pressed={this.props.perfing}
onClick={this.props.setPerfing}
/>
<InspectorPanelButton
title={'Network'}
pressed={this.props.networking}
onClick={this.props.setNetworking}
/>
</>
)}
<InspectorPanelButton
title={'Touchables'}
pressed={this.props.touchTargeting}