Skip to content

Commit d79c037

Browse files
committedApr 19, 2022
Update MmkvHostObject.cpp
1 parent c76aac7 commit d79c037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎android/src/main/cpp/MmkvHostObject.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ jsi::Value MmkvHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID& pro
222222
}
223223

224224
if (propName == "recrypt") {
225-
// MMKV.recrypt(key)
225+
// MMKV.recrypt(encryptionKey)
226226
return jsi::Function::createFromHostFunction(runtime,
227227
jsi::PropNameID::forAscii(runtime, funcName),
228-
0,
228+
1, // encryptionKey
229229
[this](jsi::Runtime& runtime,
230230
const jsi::Value& thisValue,
231231
const jsi::Value* arguments,

0 commit comments

Comments
 (0)
Please sign in to comment.