O'Reilly logo

React and React Native by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 23. Going Offline

The expectation that applications will operate seamlessly with an unreliable network connection is the new norm. If your mobile application can't cope with transient network issues, then your users will simply use a different app. When there's no network, you have to persist data locally on the device. Or perhaps your app doesn't even require network access, in which case, you'll still need to store data locally.

In this chapter, you'll learn how to do three things with React Native. First, you'll learn how to detect the state of the network connection. Second, you'll learn how to store data locally. Lastly, you'll learn how to synchronize local data that's been stored due to network problems, once it comes back online. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required