0

I have a problem with my application. I am actually doing a network connection check in the application before I can make an API call. I'm not connected to the internet but I'm getting a contrary response from the library #@react-native-community/netinfo

Can anyone help me?

android-emulator, terminal, code

1 Answers1

0

If you are testing it on emulator then it does not work on emulator. Suppose you got disconnected from the internet and connect back but the emulator will stay in the disconnected mode until and unless you restart your app.

Make sure to test it on real device.

abdemirza
  • 629
  • 4
  • 16