ignite-dev-screens
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "ignite-dev-screens", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -45,7 +45,7 @@ // An All Components Screen is a great way to dev and quick-test components | ||
componentDidMount () { | ||
NetInfo.isConnected.addEventListener('change', this.setConnected) | ||
NetInfo.isConnected.addEventListener('connectionChange', this.setConnected) | ||
NetInfo.isConnected.fetch().done(this.setConnected) | ||
NetInfo.addEventListener('change', this.setConnectionInfo) | ||
NetInfo.fetch().done(this.setConnectionInfo) | ||
NetInfo.addEventListener('change', this.updateConnectionInfoHistory) | ||
NetInfo.addEventListener('connectionChange', this.setConnectionInfo) | ||
NetInfo.getConnectionInfo().done(this.setConnectionInfo) | ||
NetInfo.addEventListener('connectionChange', this.updateConnectionInfoHistory) | ||
@@ -65,5 +65,5 @@ // an example of how to display a custom Reactotron message | ||
componentWillUnmount () { | ||
NetInfo.isConnected.removeEventListener('change', this.setConnected) | ||
NetInfo.removeEventListener('change', this.setConnectionInfo) | ||
NetInfo.removeEventListener('change', this.updateConnectionInfoHistory) | ||
NetInfo.isConnected.removeEventListener('connectionChange', this.setConnected) | ||
NetInfo.removeEventListener('connectionChange', this.setConnectionInfo) | ||
NetInfo.removeEventListener('connectionChange', this.updateConnectionInfoHistory) | ||
} | ||
@@ -88,3 +88,3 @@ | ||
{title: 'Connection', info: (this.state.isConnected ? 'Online' : 'Offline')}, | ||
{title: 'Connection Info', info: this.state.connectionInfo}, | ||
{title: 'Connection Info', info: JSON.stringify(this.state.connectionInfo)}, | ||
{title: 'Connection Info History', info: JSON.stringify(this.state.connectionInfoHistory)} | ||
@@ -91,0 +91,0 @@ ]) |
@@ -7,3 +7,3 @@ // An All Components Screen is a great way to dev and quick-test components | ||
class ComponentExamplesScreen extends React.Component { | ||
class FaqScreen extends React.Component { | ||
render () { | ||
@@ -60,2 +60,2 @@ return ( | ||
export default ComponentExamplesScreen | ||
export default FaqScreen |
778657