React Native Mmkv Storage

screenshot of React Native Mmkv Storage

React Native Mmkv Storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI


This product analysis focuses on a library designed for react-native apps to address data storage needs efficiently. Utilizing MMKV by Tencent for Android and iOS, the library allows users to store various data types, in multiple database instances, with or without encryption. Notable features include being written in C++, fast and efficient processing speed, reactive hooks for instant app updates, and support for lifecycle control and multi-process access.


  • Written in C++ using JSI: Utilizing React Native JSI for fast performance.
  • Simple and lightweight: Approximately 50K on Android and 30K on iOS.
  • Fast and Efficient: Achieving a quick Read/Write Speed of 0.0002s.
  • Reactive using useMMKVStorage & useIndex Hooks: Hooks for real-time app updates.
  • Lifecycle Control with Transaction Manager: Allows for managing the lifecycle of values.
  • Multi-Process Support: Supports concurrent access between processes.
  • Create unlimited Database instances: For separate logics/modules and better performance.
  • Full encryption support: Supports AES CFB-128 encryption for data security.


To install this library, ensure that you are using React Native version 0.71.0 and above. To get started, follow the steps below:

  1. Install the library using npm:
npm install react-native-data-storage
  1. Link the library to your project:
react-native link react-native-data-storage
  1. Include the library in your code files:
import { MMKVStorage, useMMKVStorage, useIndex } from 'react-native-data-storage';
  1. Start using the features provided by the library in your react-native app.


In conclusion, the data storage library for react-native apps offers a reliable and efficient solution for managing data storage needs. With features like C++ implementation, fast processing speeds, reactive hooks for instant updates, and support for encryption, this library provides a comprehensive solution for developers looking to streamline data storage in their applications. By following the installation guide provided, developers can seamlessly integrate this library into their react-native projects and leverage its powerful features for efficient data management.


React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.


ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.


An open-source platform for making universal native apps with React. Expo runs on Android, iOS, and the web.


TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.