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

NetInfo's "change" event is deprecated #75

Closed
ghost opened this issue Sep 2, 2017 · 2 comments
Closed

NetInfo's "change" event is deprecated #75

ghost opened this issue Sep 2, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 2, 2017

After upgrading to latest React Native (0.48.0) I keep getting this warning:

NetInfo's "change" event is deprecated. Listen to the "connectionChange" event instead.

I guess this is due to:

NetInfo.isConnected.addEventListener('change', this.handleConnectivityChange);

@chrusart
Copy link
Contributor

chrusart commented Sep 4, 2017

Could you make a PR?

@ghost
Copy link
Author

ghost commented Sep 4, 2017

@chrusart working on it.

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

1 participant