title: How can I get the network status?
body: <p>In react native, Is there a way to get the network status of the device? For example, I would like to know if the current device is online or offline. Also I would like to detect when de device get online or offline in order to show a message to the user or any other process that I need to run.</p>
  
  <p>So far all I could find is to send a request to the API, and set a <code>catch</code> callback to the <code>fetch</code>, if there's not connection the <code>catch</code> callback will run, this seems to work but I'm wondering if there's a better way to solve this.</p>
  
  <p>I would also like to know if the device is using wifi or lte connection.</p>
  
  <p>Any help?</p>