Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between redux-persist and AsyncStorage?

Are they the same or not, what is difference, can't understand?

like image 965
John Smith Avatar asked Jul 01 '18 09:07

John Smith


1 Answers

redux-persist is a Redux library that can be used to store and rehydrate your redux store in a lot of different storage engines.

AsyncStorage is just one of these storage engines, and is the React Native equivalent to LocalStorage on the web, except that it is asynchronous.

like image 83
Tholle Avatar answered Oct 18 '22 17:10

Tholle