Skip to content

[Deprecated API] The native Network implementation uses a deprecated RN API #667

Closed
@luisnaranjo733

Description

@luisnaranjo733

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions