Open flixyudh opened 1 year ago
MMKV isn't async, I've set a new StorageController with MMKV this way:
const storage = new MMKV();
Parse.CoreManager.setStorageController({
async: 0,
getItem(path: string): string | null {
return storage.getString(path) || null;
},
setItem(path: string, value: string) {
storage.set(path, value);
},
removeItem(path: string) {
storage.delete(path);
},
getAllKeys() {
return storage.getAllKeys();
},
clear() {
storage.clearAll();
},
});
It would be great if that's an option within the library however, not just ASyncStorage
is it possible to use another local storage like RN MMKV-storage instead of
AsyncStorage
?I've tried something like this:
and an error appear
dependencies:
but when i used
"parse": "^3.4.4",
there's no error and i thinkParse
class get stuck in