react-native-mmkv icon indicating copy to clipboard operation
react-native-mmkv copied to clipboard

Return success state for `set` and `recrypt` calls

Open antondalgren opened this issue 11 months ago • 0 comments

The underlying MMKV library returns booleans on these calls wether the set or recrypt was made successfully or not. It would be nice if these boolean values were to be exposed in the JS world as the application developer may want to do different actions based on the outcome of these method calls.

https://github.com/Tencent/MMKV/blob/272e5aa1fb57b4ee8cc0ff37e70b7885d99832a7/Core/MMKV_IO.cpp#L1101

https://github.com/Tencent/MMKV/blob/272e5aa1fb57b4ee8cc0ff37e70b7885d99832a7/Core/MMKV_IO.cpp#L557

antondalgren avatar Sep 26 '23 08:09 antondalgren