AsyncStorage store is deprecated due to the small size limit. Please use MMKVStorage store instead

The warning shows “AsyncStorage store is deprecated due to the small size limit. Please use MMKVStorage store instead.”

I already setup mmkv using the snippet below but it still showing

const mmkvStorage = new MMKV();

const localCacheStorage: LocalCacheStorage = {
  async getAllKeys() {
    return mmkvStorage.getAllKeys();
  },
  async setItem(key: string, value: string) {
    return mmkvStorage.set(key, value);
  },
  async getItem(key: string) {
    return mmkvStorage.getString(key) ?? null;
  },
  async removeItem(key: string) {
    return mmkvStorage.delete(key);
  },
};


I’m seeing the exact same thing.
We migrated from AsyncStorage to MMKV to remove this warning but we’re still seeing it.

Actually, the docs say that we should pass an instance of MMKV directly as localCacheStorage. See sendbird-uikit-react-native/packages/uikit-react-native/README.md at main · sendbird/sendbird-uikit-react-native · GitHub.

But when I do so, I’m getting this TS error:

Type 'MMKV' is missing the following properties from type 'LocalCacheStorage': getItem, setItem, removeItem

@Simon_Reggiani_Kindred @Gerald
Thank you for reporting this issue; we are working on fixing the problem and updating the document.
The released version will be updated in the second week of August.

1 Like

I am also facing the same warning. Did you get any solution?