Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@athrok/react-native-mmkv

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@athrok/react-native-mmkv

React Native MMKV persistence wrapper for Athrok state management library.

  • 0.0.1-alpha
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@athrok/react-native-mmkv

React Native MMKV Persistence Wrapper for Athrok State Management Library

Introduction

@athrok/react-native-mmkv is a utility package that provides seamless integration between React Native's MMKV and Athrok state management library. This package offers a convenient way to persist application state managed by Athrok using MMKV, a fast key-value storage library for React Native.

Features

  • Adapts MMKV storage methods to conform to Athrok's state persistence requirements.
  • Allows easy integration of MMKV with Athrok's StorageManager for managing application state persistence.
  • Provides a simple and straightforward API for asynchronous storage operations.

Installation

You can install @athrok/react-native-mmkv via npm or yarn:

npm install @athrok/react-native-mmkv

or

yarn add @athrok/react-native-mmkv

Peer Dependencies: Make sure you have athrok installed as a peer dependency.

npm install athrok

or

yarn add athrok

Usage

To use @athrok/react-native-mmkv, follow these steps:

  1. Import the necessary modules:
import React from "react";
import { PersistenceProvider } from "@athrok/react-native-mmkv";
  1. Wrap your application's components with PersistenceProvider:
export default function App() {
  return (
    <PersistenceProvider>
      {
        // Place your application's child components and data here
      }
    </PersistenceProvider>
  );
}

In this example, the PersistenceProvider component ensures that Athrok's MMKV persistence is initialized and ready for use throughout the application. You can place your application's child components and data inside the PersistenceProvider component to manage the persistence of the application state across app sessions seamlessly.

Contributing

Contributions to @athrok/react-native-mmkv are welcome! Feel free to submit bug reports, feature requests, or pull requests on GitHub.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 12 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc