3.6 Persist Redux Store

In this tutorial, you will learn to use redux-persist to persist the state of your Redux store, and rehydrate it when you restart your app. At the end of this tutorial, you will be able to:

  • Set up and configure redux-persist
  • Persist your store and rehydrate on restart of the app


3.6.1 How to

1. Install redux-persist (tested on v6.0.0) and async-storage (tested on v1.17.3).

  • $ expo install redux-persist
  • $ expo install @react-native-async-storage/async-storage

2. Update 'redux/ConfigureStore.js' file (store).

3. Update 'App.js' file.


3.6.2 Screenshots