Closed
Description
The native network api uses RN's NetInfo module under the hood in a deprecated manner.
The "change" event is deprecated in favor of the "connectionChange" event. Also the NetInfo.getConnectionInfo() method is deprecated. The current xp flow uses both (you subscribe to change events, and then call getInfo on change if you want more details than a boolean)
"change: This event is deprecated. Listen to connectionChange instead. Fires when the network status changes. The argument to the event handler is one of the deprecated connectivity types listed above." - from the NetInfo docs
I think the XP API should change to simply exposing the connectionChange event and ideally mapping it to a simpler type (like the one in place today, which is nice).
Metadata
Metadata
Assignees
Labels
No labels