i am struggling about this point, that if in my mobile i am in poor network connection, Some how i am calling the service, it will take more time to call the service
How to tell the user that u are in poor internet connection.
For checking of internet connection i used the networkInfo, But it help only for connection is there are or not, But it doesn't giving any information about the Speed of the network.
If Possible can any one give me suggestions that, How can i solve this, Any help much appreciated I am using the react-native version:0.29.0
If you just want to know whether the device has an active internet connection, you can use e.g. isConnected from React Native's NetInfo:
import { NetInfo } from "react-native";
NetInfo.isConnected.addEventListener(
"connectionChange",
hasInternetConnection =>
console.debug("hasInternetConnection:", hasInternetConnection)
);
However I'm not sure how to find out how good the connection is.