O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

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

Storing and retrieving data locally

When developing a mobile app, we need to consider the network challenges. A well-designed app will allow the user to continue using the app without internet connection. This will require the app to save data locally on the device when there's no internet connection, and then sync with the server when the network is available again.

Another challenge to overcome is the fact that network connectivity might be slow or limited. In order to improve the performance of our app, we should save some data on the local device to avoid stressing our server API.

In this recipe, we will learn about a simple and basic strategy to save and retrieve data locally from the device. We will create a simple app with a text input and ...

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