diff --git a/Libraries/Inspector/Inspector.js b/Libraries/Inspector/Inspector.js
index 0967f9dc3..f1121e1a6 100644
--- a/Libraries/Inspector/Inspector.js
+++ b/Libraries/Inspector/Inspector.js
@@ -44,6 +44,7 @@ class Inspector extends React.Component {
perfing: bool,
inspected: any,
inspectedViewTag: any,
+ networking: bool,
};
_subs: ?Array<() => void>;
@@ -60,6 +61,7 @@ class Inspector extends React.Component {
inspected: null,
selection: null,
inspectedViewTag: this.props.inspectedViewTag,
+ networking: false,
};
}
@@ -174,6 +176,7 @@ class Inspector extends React.Component {
perfing: val,
inspecting: false,
inspected: null,
+ networking: false,
});
}
@@ -191,6 +194,15 @@ class Inspector extends React.Component {
});
}
+ setNetworking(val: bool) {
+ this.setState({
+ networking: val,
+ perfing: false,
+ inspecting: false,
+ inspected: null,
+ });
+ }
+
render() {
var panelContainerStyle = (this.state.panelPos === 'bottom') ? {bottom: 0} : {top: 0};
return (
@@ -214,6 +226,8 @@ class Inspector extends React.Component {
setSelection={this.setSelection.bind(this)}
touchTargetting={Touchable.TOUCH_TARGET_DEBUG}
setTouchTargetting={this.setTouchTargetting.bind(this)}
+ networking={this.state.networking}
+ setNetworking={this.setNetworking.bind(this)}
/>
diff --git a/Libraries/Inspector/InspectorPanel.js b/Libraries/Inspector/InspectorPanel.js
index 9078a8e46..9c00b1eba 100644
--- a/Libraries/Inspector/InspectorPanel.js
+++ b/Libraries/Inspector/InspectorPanel.js
@@ -19,6 +19,7 @@ var ElementProperties = require('ElementProperties');
var PerformanceOverlay = require('PerformanceOverlay');
var Touchable = require('Touchable');
var TouchableHighlight = require('TouchableHighlight');
+var NetworkOverlay = require('NetworkOverlay');
var PropTypes = React.PropTypes;
@@ -51,6 +52,10 @@ class InspectorPanel extends React.Component {
contents = (
);
+ } else if (this.props.networking) {
+ contents = (
+
+ );
} else {
contents = (
@@ -71,6 +76,10 @@ class InspectorPanel extends React.Component {
pressed={this.props.perfing}
onClick={this.props.setPerfing}
/>
+