Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deprecation] NetInfo Dependency Moved #342

Open
pkcwong opened this issue Jun 21, 2019 · 2 comments
Open

[Deprecation] NetInfo Dependency Moved #342

pkcwong opened this issue Jun 21, 2019 · 2 comments

Comments

@pkcwong
Copy link

pkcwong commented Jun 21, 2019

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

@musemind
Copy link

With React Native 0.61 (used in Expo SDK 36) this causes an error.

@nikhilgoswami
Copy link

#363 This is update fix pull from here + AsyncStorage dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants