React Native State Management
HoangNguyen0403/agent-skills-standard
Implement local and global state with Context, Zustand, and Redux Toolkit in React Native.
Fast synchronous key-value storage for React Native via react-native-mmkv (Nitro-backed).
$ npx skills add margelo/react-native-skills --skill react-native-mmkv -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install margelo/react-native-skills react-native-mmkv --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/margelo/react-native-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/react-native-mmkv .claude/skills/react-native-mmkv && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "react-native-mmkv" agent skill from https://github.com/margelo/react-native-skills/tree/main/skills/react-native-mmkv into .claude/skills/react-native-mmkv/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-native-mmkv", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/margelo/react-native-skills/tree/main/skills/react-native-mmkvType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add margelo/react-native-skills --skill react-native-mmkv -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install margelo/react-native-skills react-native-mmkv --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/margelo/react-native-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/react-native-mmkv .agents/skills/react-native-mmkv && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "react-native-mmkv" agent skill from https://github.com/margelo/react-native-skills/tree/main/skills/react-native-mmkv into .agents/skills/react-native-mmkv/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-native-mmkv", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add margelo/react-native-skills --skill react-native-mmkv -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install margelo/react-native-skills react-native-mmkv --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/margelo/react-native-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/react-native-mmkv .cursor/skills/react-native-mmkv && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "react-native-mmkv" agent skill from https://github.com/margelo/react-native-skills/tree/main/skills/react-native-mmkv into .cursor/skills/react-native-mmkv/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-native-mmkv", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/margelo/react-native-skills.git --path skills/react-native-mmkv--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add margelo/react-native-skills --skill react-native-mmkv -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install margelo/react-native-skills react-native-mmkv --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/margelo/react-native-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/react-native-mmkv .gemini/skills/react-native-mmkv && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "react-native-mmkv" agent skill from https://github.com/margelo/react-native-skills/tree/main/skills/react-native-mmkv into .gemini/skills/react-native-mmkv/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-native-mmkv", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install margelo/react-native-skills react-native-mmkvInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add margelo/react-native-skills --skill react-native-mmkv -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/margelo/react-native-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/react-native-mmkv .github/skills/react-native-mmkv && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "react-native-mmkv" agent skill from https://github.com/margelo/react-native-skills/tree/main/skills/react-native-mmkv into .github/skills/react-native-mmkv/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-native-mmkv", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add margelo/react-native-skills --skill react-native-mmkv -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install margelo/react-native-skills react-native-mmkv --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/margelo/react-native-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/react-native-mmkv .opencode/skills/react-native-mmkv && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "react-native-mmkv" agent skill from https://github.com/margelo/react-native-skills/tree/main/skills/react-native-mmkv into .opencode/skills/react-native-mmkv/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-native-mmkv", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
react-native-mmkvFast synchronous key-value storage for React Native via react-native-mmkv (Nitro-backed).
React Native Mmkv is an agent skill from margelo/react-native-skills. Fast synchronous key-value storage for React Native via react-native-mmkv (Nitro-backed). Covers creating and configuring MMKV instances, reading/writing all value types (string, number, boolean, buffer), React hooks for reactive UI, value-change listeners, encryption, AsyncStorage migration, and state-management integrations (zustand, redux-persist, jotai, react-query). Also covers storage limits, multi-process mode, and the V4 upgrade from the class-based API.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files (for example `references/create-instance.md`, `references/crud-operations.md` and `references/encryption.md`).
It sits in Mobile, covering Cross-platform mobile apps and State management. It works with React Native, React, Redux and TanStack. The repository describes itself as: The best react-native Agent Skills. Forget 10x, this is 100x. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 1e9e17b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
React Native Mmkv loads about 2.1k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 121 tokens; SKILL.md has 600 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from margelo/react-native-skills at commit 1e9e17b, republished under its MIT licence (© margelo). 600 words, ~2,147 tokens.
.claude/skills/react-native-mmkv/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.A focused reference for AI coding assistants working in a project that uses react-native-mmkv. Answer using the real APIs from this library — not invented ones — by routing to the matching references/*.md file below.
react-native-mmkv is a high-performance, synchronous key-value storage library for React Native, backed by Tencent's MMKV C++ engine via Nitro Modules (JSI). It is ~30x faster than AsyncStorage.
The three things that trip people up:
await, no Promises. storage.getString('key') returns the value immediately. This is the whole point — MMKV memory-maps files and reads/writes in-process.new MMKV() to createMMKV(), .delete() became .remove(), and react-native-nitro-modules is now a required peer dependency. See the upgrade guide.V4 requires React Native 0.75+. It works on both the New Architecture and the old architecture (Nitro is backwards compatible).
Load the matching file from references/ before writing code. Each reference cites real APIs from the library.
| User is asking about… | Read |
|---|---|
Creating an MMKV instance, configuration options (id, path, encryptionKey, mode, readOnly, compareBeforeSet), the createMMKV() factory | references/create-instance.md |
Getting/setting values, all data types (string, number, boolean, buffer, objects via JSON), key management (contains, getAllKeys, remove, clearAll), size, trim, importAllFrom | references/crud-operations.md |
React hooks (useMMKVString, useMMKVNumber, useMMKVBoolean, useMMKVBuffer, useMMKVObject, useMMKV, useMMKVListener, useMMKVKeys), reactive UI | references/hooks.md |
Listening for value changes outside of React, addOnValueChangedListener, cleaning up listeners | references/listeners.md |
Encryption (encrypt, decrypt, recrypt), AES-128 vs AES-256, encryptionKey config | references/encryption.md |
| Migrating from AsyncStorage, data transfer pattern, completion flag | references/migrate-from-async-storage.md |
zustand persist middleware, redux-persist, jotai atomWithMMKV, react-query persister, MobX | references/state-management.md |
V4 upgrade, breaking changes from V3, new MMKV() → createMMKV(), .delete() → .remove() | references/upgrade-v4.md |
| Storage size limits, memory warnings, when to use a database instead | references/limits-and-gotchas.md |
If the question doesn't match any row, read references/create-instance.md first — most setup questions start there.
npm install react-native-mmkv react-native-nitro-modules
cd ios && pod installExpo:
npx expo install react-native-mmkv react-native-nitro-modules
npx expo prebuildAfter install, rebuild the app. No additional native wiring is required.
import { createMMKV, existsMMKV, deleteMMKV } from 'react-native-mmkv'
const storage = createMMKV({ id: 'my-store' })
// Properties (read-only)
storage.id // string
storage.length // number of keys
storage.byteSize // total file size in bytes
storage.size // (deprecated — use byteSize)
storage.isReadOnly // boolean
storage.isEncrypted // boolean
// Write
storage.set('key', 'string' | 42 | true | arrayBuffer)
// Read
storage.getString('key') // string | undefined
storage.getNumber('key') // number | undefined
storage.getBoolean('key') // boolean | undefined
storage.getBuffer('key') // ArrayBuffer | undefined
// Keys
storage.contains('key') // boolean
storage.getAllKeys() // string[]
storage.remove('key') // boolean (NOTE: was .delete() in V3)
storage.clearAll() // void
// Encryption
storage.encrypt('password')
storage.encrypt('password', 'AES-256')
storage.decrypt()
storage.recrypt('newPassword' | undefined) // (deprecated — use encrypt()/decrypt())
// Maintenance
storage.trim() // free unused space
storage.importAllFrom(otherStorage) // returns count imported
// Listeners
const sub = storage.addOnValueChangedListener((key) => { ... })
sub.remove()
// Static helpers
existsMMKV('my-store') // boolean
deleteMMKV('my-store') // booleanA mocked MMKV instance is automatically used when testing with Jest or Vitest. Use createMMKV() as normal in tests — no manual mocking needed.
Good test questions:
StateStorage adapter using storage.set, storage.getString, storage.remove — not AsyncStorage wrappers.| File | Description |
|---|---|
| create-instance.md | createMMKV() factory, all configuration options |
| crud-operations.md | Set/get all types, key management, objects, buffers |
| hooks.md | All React hooks for reactive MMKV usage |
| listeners.md | addOnValueChangedListener, cleanup |
| encryption.md | Encrypt/decrypt instances, AES options |
| migrate-from-async-storage.md | Full migration pattern from AsyncStorage |
| state-management.md | zustand, redux-persist, jotai, react-query, MobX |
| upgrade-v4.md | V3 → V4 breaking changes and migration |
| limits-and-gotchas.md | Storage limits, multi-process, logging, common pitfalls |
| Problem | Reference | Action |
|---|---|---|
| Don't know where to start | create-instance.md | Create instance with createMMKV() |
| Need reactive UI updates | hooks.md | Use useMMKVString / useMMKVObject etc. |
| Encrypting sensitive data | encryption.md | Call storage.encrypt(key) |
| App uses AsyncStorage, want to switch | migrate-from-async-storage.md | Batch migrate then swap calls |
| Zustand/Redux/Jotai persistence | state-management.md | Wire adapter for your state lib |
| Upgrading from V3 to V4 | upgrade-v4.md | new MMKV() → createMMKV(), .delete() → .remove() |
| Storage growing too large | limits-and-gotchas.md | Trim or move to SQLite |
| Multi-process data sharing | limits-and-gotchas.md | Set mode: 'multi-process' |
© margelo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 9 other files (references) in skills/react-native-mmkv of margelo/react-native-skills.
Open the folder on GitHubat commit 1e9e17b
React Native Mmkv next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| React Native Mmkv this skillmargelo/react-native-skills | 175 | — | ~2.1k | Automated safety check: Pass | MIT | |
| React Native State ManagementHoangNguyen0403/agent-skills-standard | 570 | — | ~484 | Automated safety check: Pass | MIT | |
| React Native Experttech-leads-club/agent-skills | 7k | — | ~3.2k | Automated safety check: Pass | CC-BY-4.0 | |
| React NativeEliasOulkadi/shokunin | 114 | — | ~3k | Automated safety check: Pass | MIT | |
| Olore Tanstack Form Latestolorehq/olore | 103 | — | ~1.1k | Automated safety check: Pass | MIT | |
| React ExpertJeffallan/claude-skills | 12k | — | ~1.4k | Automated safety check: Pass | MIT |
HoangNguyen0403/agent-skills-standard
Implement local and global state with Context, Zustand, and Redux Toolkit in React Native.
tech-leads-club/agent-skills
Guides React Native and Expo work for cross-platform apps: Expo Router navigation, fast lists, Reanimated animation, platform-specific code and project structure.
EliasOulkadi/shokunin
Build production React Native apps with Expo SDK 53+, Expo Router (file-based navigation), New Architecture (Fabric + TurboModules), FlashList, Reanimated 4, Zustand for state, Hermes, EAS Build…
olorehq/olore
Local TanStack Form documentation reference (latest, v1.33.5).
Jeffallan/claude-skills
Builds React 19 components in TypeScript with Server Components, useActionState forms, custom hooks and state libraries, checked with tsc and React Testing Library.
anolilab/lunora
Wires Lunora's live data into a client. An agent skill from anolilab/lunora.
margelo/react-native-skills
Builds and designs React Native Nitro Modules with Nitrogen, HybridObject TypeScript specs, Nitro View components, generated native implementations, zero-copy and native-state APIs, Swift/Kotlin/C++…
margelo/react-native-skills
Design, implement, and review Kotlin and Android APIs. An agent skill from margelo/react-native-skills.
margelo/react-native-skills
Design, implement, and review Swift APIs and Apple-platform code.
margelo/react-native-skills
Fast native networking primitives for React Native built on Nitro Modules — react-native-nitro-fetch, react-native-nitro-websockets, and react-native-nitro-text-decoder.
margelo/react-native-skills
Design and review production-grade low-latency VisionCamera v5 pipelines.
margelo/react-native-skills
Design and review predictable public APIs for TypeScript, JavaScript, React, and React Native libraries.
Works with
Categories
Fast synchronous key-value storage for React Native via react-native-mmkv (Nitro-backed). React Native Mmkv is an agent skill from margelo/react-native-skills. Fast synchronous key-value storage for React Native via react-native-mmkv (Nitro-backed).
React Native Mmkv fits situations like: tasks that involve Cross-platform mobile apps; tasks that involve State management.
Run `npx skills add margelo/react-native-skills --skill react-native-mmkv -a claude-code`. Or copy the skill folder (skills/react-native-mmkv in margelo/react-native-skills) into .claude/skills/react-native-mmkv in your project. Claude Code loads it when a task matches its description.
Run `npx skills add margelo/react-native-skills --skill react-native-mmkv -a codex`. Or copy the skill folder (skills/react-native-mmkv in margelo/react-native-skills) into .agents/skills/react-native-mmkv in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add margelo/react-native-skills --skill react-native-mmkv -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-native-mmkv, .gemini/skills/react-native-mmkv, .github/skills/react-native-mmkv and .opencode/skills/react-native-mmkv in your project.
Going by SKILL.md and its folder, React Native Mmkv needs the command-line tools its instructions call (npx and npm). Our summary lists: Node.js.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
React Native Mmkv is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with React Native Mmkv: React Native State Management (HoangNguyen0403/agent-skills-standard, 570 stars), React Native Expert (tech-leads-club/agent-skills, 7k stars), React Native (EliasOulkadi/shokunin, 114 stars) and Olore Tanstack Form Latest (olorehq/olore, 103 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
margelo (a GitHub organization) maintains it in margelo/react-native-skills, which has 175 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 21, 2026.
Source: margelo/react-native-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.