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