dev-plugins icon indicating copy to clipboard operation
dev-plugins copied to clipboard

Add mmkv v4 support for MMKV dev tools

Open theafolayan opened this issue 1 month ago • 0 comments

This pull request updates the @dev-plugins/react-native-mmkv package to support the latest versions of its dependencies and aligns the code with breaking changes in the react-native-mmkv API. The main focus is on upgrading to react-native-mmkv v4 and updating the usage of its API in the codebase.

Dependency upgrades:

  • Upgraded react-native-mmkv from ^3.1.0 to ^4.0.0 in package.json, and updated expo to ^54.0.0 to ensure compatibility with the latest ecosystem.
  • Bumped the package version from 0.4.0 to 0.4.1 to reflect these changes.

Code changes for react-native-mmkv v4 compatibility:

  • Replaced the deprecated MMKV constructor with the new createMMKV factory function in useMMKVDevTools.ts. [1] [2]
  • Updated the storage removal method from delete to remove to match the new API in react-native-mmkv v4.

theafolayan avatar Nov 03 '25 07:11 theafolayan