Reprex for NetInfo Issue #248
Note: the following behavior is only reproducible on IOS DEVICES. Please do not try to reproduce it on the simulator.
yarn install
cd ios && pod install && cd ..
Open the ios/netinfo.xcworkspace
file in XCode and configure signing by following this article
- Connect your device to WiFi (the internet should be reachable)
- Run the code on your IOS device. After opening the app the screen should say that the internet is reachable
- Lock the screen.
- Wait for 30+ seconds
- Unlock the screen. The screen should say that the internet is not reachable.