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.getConnectionInfo() return unknown for android #31

Closed
Vikas2408 opened this issue Mar 13, 2019 · 1 comment
Closed

NetInfo.getConnectionInfo() return unknown for android #31

Vikas2408 opened this issue Mar 13, 2019 · 1 comment

Comments

@Vikas2408
Copy link

Vikas2408 commented Mar 13, 2019

I am using the following code to get the connection info but it return unknown for android:

componentDidMount() { NetInfo.getConnectionInfo().then(connectionInfo => { console.log("Connection type", connectionInfo.type); console.log("Connection effective type", connectionInfo.effectiveType); }); }

React Native Version: 0.59.0

@matt-oakes
Copy link
Collaborator

Hello 👋 Thanks for submitting this issue. To help us triage your issue, can you please resubmit this issue using the templates provided.

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

2 participants