isConnected() {
    NetInfo.isConnected.addEventListener('change', (isConnected) => {
      this.setState({isConnected})
    })

    NetInfo.isConnected.fetch().done((isConnected) => {
      this.setState({isConnected})
    })
  }
/**
   * Listens to hear if there's an active internet connection, if there is then set the connection state to true.
   *
   * @return {void}
   */
Listens to hear if there's an active internet connection, if there is then set the connection state to true.
@return {void}
Listens to hear if there ' s an active internet connection if there is then set the connection state to true . @return { void }
isConnected() {
    NetInfo.isConnected.addEventListener('change', (isConnected) => {
      this.setState({isConnected})
    })
    NetInfo.isConnected.fetch().done((isConnected) => {
      this.setState({isConnected})
    })
  }
isConnected ( ) { NetInfo . isConnected . addEventListener ( 'change' , ( isConnected ) => { this . setState ( { isConnected } ) } ) NetInfo . isConnected . fetch ( ) . done ( ( isConnected ) => { this . setState ( { isConnected } ) } ) }
Listens to hear if there's an active internet connection, if there is then set the connection state to true.
Listens to hear if there ' s an active internet connection if there is then set the connection state to true .