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

reactotron-react-native-mmkv

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactotron-react-native-mmkv

A Reactotron plugin for react-native-mmkv.

  • 0.2.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
increased by14.14%
Maintainers
1
Weekly downloads
 
Created
Source

reactotron-react-native-mmkv

Log updates to your react-native-mmkv store in the Reactotron timeline.

Installing

npm i --save-dev reactotron-react-native-mmkv
# or
yarn add -D reactotron-react-native-mmkv

Usage

Import your mmkv storage instance:

import { MMKV } from "react-native-mmkv"
export const storage = new MMKV()

To use the mmkvPlugin, add the additional plugin on the import line.

import Reactotron from "reactotron-react-native"
import type { ReactotronReactNative } from "reactotron-react-native"
import mmkvPlugin from "reactotron-react-native-mmkv"
import { storage } from "./mmkv/storage/instance/location" // <--- update this location
...
Reactotron.configure()
  .use(mmkvPlugin<ReactotronReactNative>({ storage })) // <--- here we go!
  .connect()

And you're done! Now you can see your MMKV in Reactotron.

Advanced Usage

mmkvPlugin() accepts an object with an ignore key. The value is an array of strings you would like to prevent sending to Reactotron.

mmkvPlugin<ReactotronReactNative>({
  storage,
  ignore: ["secret"],
})

FAQs

Package last updated on 26 Aug 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