UNPKG

@dev-plugins/react-native-mmkv

Version:

Expo DevTools Plugin for react-native-mmkv

26 lines (17 loc) 524 B
# @dev-plugins/react-native-mmkv A React Native MMKV DevTool that can run in an Expo App # Installation ### Add the package to your project ``` npx expo install @dev-plugins/react-native-mmkv ``` ### Integrate react-native-mmkv with the DevTool hook ```jsx import { useMMKVDevTools } from '@dev-plugins/react-native-mmkv'; import { MMKV } from 'react-native-mmkv'; const yourMmkvStorage = new MMKV({ id: 'any_id' }); export default function App() { useMMKVDevTools({ storage: yourMmkvStorage }); /* ... */ } ```