Skip to content

Repository files navigation

unstorage React Native MMKV

A React Native MMKV driver for unstorage.

Installation

Both unstorage and react-native-mmkv are required to be installed.

Install this package as a dependency in the project:

# npm
npm i unstorage-react-native-mmkv

# Yarn
yarn add unstorage-react-native-mmkv

# pnpm
pnpm add unstorage-react-native-mmkv

# Deno
deno add npm:unstorage-react-native-mmkv

# Bun
bun add unstorage-react-native-mmkv

Usage

import { createStorage } from "unstorage";
import { mmkvDriver } from "unstorage-react-native-mmkv";

const storage = createStorage({
    driver: mmkvDriver(),
});

Options

mmkvDriver accepts React Native MMKV Configuration as options.

Storage APIs

For the storage APIs, please refer to the unstorage guide.

Contributing

For contributing, please refer to the contributing guide.

License

This project is licensed under the terms of the MIT license.