Getting connected status on React Native

added by JavaScript Kicks
6/8/2018 7:28:34 AM

418 Views

We may need to know if a device is connected to the internet sometimes on React Native. We should be using NetInfo.isConnected.fetch() to get a boolean denoting the device is connected or not. Up until the current newest v0.55, it is still observed that NetInfo.isConnected.fetch() works properly on Android only.


0 comments