Skip to content

Commit f220bde

Browse files
huntiefacebook-github-bot
authored andcommitted
Remove Inspector Panel perf + network tabs under New Arch (facebook#46307)
Summary: Pull Request resolved: facebook#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
1 parent 7041ed2 commit f220bde

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

packages/react-native/Libraries/Inspector/InspectorPanel.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,22 @@ class InspectorPanel extends React.Component<Props> {
8080
pressed={this.props.inspecting}
8181
onClick={this.props.setInspecting}
8282
/>
83-
<InspectorPanelButton
84-
title={'Perf'}
85-
pressed={this.props.perfing}
86-
onClick={this.props.setPerfing}
87-
/>
88-
<InspectorPanelButton
89-
title={'Network'}
90-
pressed={this.props.networking}
91-
onClick={this.props.setNetworking}
92-
/>
83+
{global.RN$Bridgeless === true ? null : (
84+
// These Inspector Panel sub-features are removed under the New Arch.
85+
// See https://github.com/react-native-community/discussions-and-proposals/pull/777
86+
<>
87+
<InspectorPanelButton
88+
title={'Perf'}
89+
pressed={this.props.perfing}
90+
onClick={this.props.setPerfing}
91+
/>
92+
<InspectorPanelButton
93+
title={'Network'}
94+
pressed={this.props.networking}
95+
onClick={this.props.setNetworking}
96+
/>
97+
</>
98+
)}
9399
<InspectorPanelButton
94100
title={'Touchables'}
95101
pressed={this.props.touchTargeting}

0 commit comments

Comments
 (0)