Tried in iOS simulator in a case like Internet - on first, then turn off. The two states were detected, but afterwards when i turned the network ON again, it remained as false forever. Why so? Any idea. I've re used the same component you have given without any modifications

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Aravind Madhusudhanan Nair
Aravind Madhusudhanan Nair

Written by Aravind Madhusudhanan Nair

Writes about JS, React and React-Native development and other technology stuff.

Responses (1)

Write a response

there are some breaking changes on NetInfo. This is an almost one-year-old example. For now, you can refer to official docs for the new changes. Whenever I will get time will check and update the sample code.

--