react-native-mmkv
react-native-mmkv copied to clipboard
⚡️ The fastest key/value storage for React Native. ~30x faster than AsyncStorage!
This is to help with having a clean code with minimal dependancies (and probably fewer re-renders) For e.g. ```js const [user, setUser] = useMMKVObject("user"); let newName = "BLAHBLAH"; setUser((prevState) =>...
I got this error when building app in andoird ``` * What went wrong: Execution failed for task ':react-native-mmkv:configureCMakeDebug[arm64-v8a]'. > [CXX1428] exception while building Json A problem occurred starting process...
The following warning is generated during build: gradle warning: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] This occurs in the generated MMKV.cpp on the `bool MMKV::getBytes` method, calls...
It would be nice if we could name events to be used with the `useMMKVListner`, so that when we do something like this `storage.set('user', JSON.stringify(user))`, we could also pass a...
Hi, I am getting this issue while syncing gradle and couldn't fix the issue by following this https://github.com/mrousavy/react-native-mmkv/issues/145#issuecomment-1379126046 `"react-native": "0.70.13"` `"react-native-mmkv": "2.5.1"` [CXX1405] error when building with cmake using /node_modules/react-native-mmkv/android/CMakeLists.txt:...
 Based on this sentence in the docs, it is not clear to me if data I save with MMKV is encrypted and safe or...
This PR adds MultiProcess mode support on Android. iOS already supports this mode using AppGroups. On android, widgets run in a different processus and this needs to be enabled to...
```ts const storage = new MMKV() storage.batch((s) => { s.set('hello', 'world') s.set('test', 'another') s.set('someLargeBuffer', buffer) }) ```