We were working on Data connectivity application in React Native. Here we want to switch internet connection from wifi to mobile data. But before switching we wanted to check if user is having Data connectivity enabled with internet access. Is there any way to detect the same in React Native or in Android or Swift natively.
Any help or suggestions is appreciated.