Skip to content

[Deprecation] NetInfo Dependency Moved #342

Description

@pkcwong

NetInfo has been moved from react-native to react-native-community. The original import is deprecated and will soon be removed.

import { NetInfo, Platform, View } from 'react-native';

The current library throws a warning:

Warning: NetInfo has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. See https://github.com/react-native-community/react-native-netinfo

Propose to update the dependency to react-native-community in order to suppress the warning.

React Native NetInfo Website: https://facebook.github.io/react-native/docs/netinfo.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions