When calling client.initRustCrypto() from React Native (Expo) running on hermes engine, I always get the following output from matrix_sdk_crypto_wasm.js:
WARN TextEncoder constructor called with encoding label, which is ignored.
ERROR ReferenceError: Property 'FinalizationRegistry' doesn't exist, js engine: hermes
ERROR setup error: [TypeError: RustCrypto.initRustCrypto is not a function (it is undefined)]
I can't seem to find a way to polyfill FinalizationRegistry in React Native, and the regular/legacy initCrypto is also not working in this runtime. What should I do?
When calling
client.initRustCrypto()
from React Native (Expo) running on hermes engine, I always get the following output frommatrix_sdk_crypto_wasm.js
:I can't seem to find a way to polyfill
FinalizationRegistry
in React Native, and the regular/legacyinitCrypto
is also not working in this runtime. What should I do?