Skip to content

Releases: ammarahm-ed/react-native-mmkv-storage

v0.7.2

29 Apr 18:51

Choose a tag to compare

What's New

  1. Remote Debugging with in-memory adapter
  2. Add type assertions when setting values to storage #240

What's Fixed

  1. Fix CI issues when building project on android #242
  2. Fix useMMKVStorage hook not updating when removing a value or setting it to null/undefined #163 @autoreleasefool

What's Changed

The default MMKVStorage.Loader import has been deprecated in favor of direct importing. @unfernandito

Before:

import MMKVStorage from "react-native-mmkv-storage";

const MMKV  = new MMKVStorage.Loader().initialize();

Now more simple and clear:

import {MMKVLoader} from "react-native-mmkv-storage";

const MMKV = new MMKVLoader().initialize();

v0.7.1

13 Apr 18:29

Choose a tag to compare

  • fix: add missing types on async functions

v0.7.0

12 Apr 20:23
c10a624

Choose a tag to compare

What's New

  1. Migrate codebase to typescript
  2. Add support for RN 0.68 #230
  3. Add new builder function withPersistedDefaultValues. Use it to persist default value passed to hook
  4. Added in-memory storage adapter which can be used for testing with jest.
  5. Run example app with local symlinks
  6. Expo support in docs
  7. Add support for type generics in useMMKVStorage hook

What's Fixed

  1. fix: secure storage unable to read data from keychain closes #195 Huge thanks to @JoniVR for this
  2. fix: incorrect return type for hooks
  3. Fix mmkv not init on main thread on iOS

v0.6.12

01 Feb 15:01

Choose a tag to compare

  • Fix build failing on android when upgrading from 0.6.10

v0.6.11

29 Jan 13:34

Choose a tag to compare

  • Fix #195 & #141
  • Change theme of documentation to improve readability

v0.6.10

21 Jan 10:26

Choose a tag to compare

  • Fixed auto linking in React Native 0.67.x

v0.6.9

15 Jan 04:30

Choose a tag to compare

What's New

  • Fixed migration from 0.3.7 to 0.6.x
  • Fixed defaultValue not passed as a param when using a mutator function in setValue.

v0.6.8

08 Jan 17:42

Choose a tag to compare

  1. Fix multiple META-INF/MANIFEST.MF path error during detox build #199 Thanks to @andreialecu and @gersomvg
  2. Fixed support for android API 21 & 22. #196

v0.6.7

29 Dec 19:30

Choose a tag to compare

  • Fix google developer console security warning/app review rejection #194
  • Fix typescript compilation errors @hatem-72
  • Fix multiple META-INF/MANIFEST.MF path error @gersomvg
  • Fix migration issue when upgrading from v0.4.4
  • Refactor C++ code on android @Waqar144
  • Add notice about the Map data type not being supported @DysphoricUnicorn
  • Fix return type for getKeys @Mookiies
  • Update docs related to useIndex/useMMKVStorage hooks

v0.6.6

18 Oct 04:38

Choose a tag to compare

New

Auto linking on android

Thanks to @retyui. Now you can simply link library with your project with a single command.

`npx mmkv-link`

withServiceName prop on iOS

Now you can set a custom service name for iOS keychain. This helps you solve any issues when you use any other library for storing sensitive information such as react-native-keychain. Thanks to Andrei Tofan

Fixed

  • Fixed build issues on android, especially on older versions of react-native.
  • Added missing dependencies to setNewValue function in useMMKVStorage hook