Skip to content

Commit

Permalink
Remove Inspector Panel perf + network tabs under New Arch (#46307)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #46307

Changelog:
[General][Breaking] - Remove Inspector Panel perf + network tabs  under New Arch (see react-native-community/discussions-and-proposals#777)

Reviewed By: christophpurrer

Differential Revision: D62123634

fbshipit-source-id: 44ecc476943ccb33f8de96dcefa3e233e954841a
  • Loading branch information
huntie authored and facebook-github-bot committed Sep 9, 2024
1 parent 7041ed2 commit f220bde
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions packages/react-native/Libraries/Inspector/InspectorPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit f220bde

Please sign in to comment.