android netinfo check use-effect with retry configurations
problem statement: check for network connectivity and if network is not available the retry 3 times and stop.
solution: created a custom hook useNetInfoDetails.js it use netInfo community module.