ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.56k stars 109 forks source link

fix: Encryption typings #331

Closed Mookiies closed 1 year ago

Mookiies commented 1 year ago

Currently if trying to use defafult for encryption we hit a type error

mmkvInstance.encryption.encrypt() //TS2554: Expected 4 arguments, but got 0.

All params for changeEncryptionKey are also required by typescript

mmkvInstance.encryption.changeEncryptionKey('new-key'); // An argument for 'secureKeyStorage' was not provided

This PR fixes the above and also makes some small docs updates

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rnmmkv ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 0:35am