![]() It takes a lot of time and effort to keep this maintained and address issues and bugs. If you are using the library in one of your projects, consider supporting with a star. Consider supporting with a ⭐️ star on GitHub It supports logging and manipulating storage values on the fly. Thanks to pnthach95 Flipper plugin is finally here. You can use this library with expo bare workflow. Support for redux persist is also added starting from v0.3.2. Simple indexer and data queryingįor each database instance, there is one global key index and then there are indexes of each type of data. withEncryption ( ) // Generates a random key and stores it securely in Keychain. It doesn't matter if you reload the app or restart it.Ĭonst storage = new MMKVLoader ( ). Think of it like a persisted state that will always write every change in storage and update your app UI instantly. Starting from v0.5.5, thanks to the power of JSI, we now have our very own useMMKVStorage Hook. Hooks let's the storage update your app when a change takes place in storage. You can see the benchmarks here: Android & iOS Reactive using useMMKVStorage & useIndex Hooks MMKV uses mmap to keep memory synced with file, and protobuf to encode/decode values to achieve best performance. Fast and Efficient (0.0002s Read/Write Speed) (~ 50K Android/30K iOS) and even smaller when packaged. It employs React Native JSI making it the fastest storage option for React Native. Starting from v0.5.0 the library has been rewritten in C++ on Android and iOS both. If you are on older version of react native, keep using 0.8.x. Works only with react native 0.71.0 and above. ![]() ![]() ![]() Learn how to build your own module with JSI on my blog 0.9.0 Breaking change Read about it on this blog post I wrote on dev.to Unlike other storage solutions for React Native, this library lets you store any kind of data type, in any number of database instances, with or without encryption in a very fast and efficient way. It uses MMKV by Tencent under the hood on Android and iOS both that is used by their WeChat app(more than 1 Billion users). This library aims to provide a fast & reliable solution for you data storage needs in react-native apps. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |