NetInfo.isConnected.addEventListener: diverging behaviors on Android and iOS #22954
Closed
3 tasks done
Labels
API: NetInfo
Bug
🌐Networking
Related to a networking API.
Platform: Android
Android applications.
Platform: iOS
iOS applications.
Resolution: Locked
This issue was locked by the bot.
Environment
Description
#11041
NetInfo.isConnected.addEventListener diverging behaviors on Android and iOS:
Solution (?): Make iOS not trigger the handler when it is added, only when the connection changes.
Reproducible Demo
https://snack.expo.io/S1PS-UrzV
Notice
Handler triggered: false
on Android, butHandler triggered: true
for iOSThe text was updated successfully, but these errors were encountered: