rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.95k stars 866 forks source link

Support for @react-native-community/async-storage v2 #1168

Open jpaas opened 4 years ago

jpaas commented 4 years ago

This looks like its coming soon and the interface has changed.

In the meantime I am using a simple adapter...

import AsyncStorage from "services/AsyncStorage"

AsyncStorage.getItem = AsyncStorage.get
AsyncStorage.removeItem = AsyncStorage.remove
AsyncStorage.setItem = AsyncStorage.set

export default AsyncStorage
yckbilly1929 commented 4 years ago

I'm using the same workaround, and the situation gets more complex when integrated with Typescript.