The doc recently has been updated to say that ShareTransferModule is now the replacement module over storage module for react native.
I am trying to follow the given sample code snippet but get an error.
Here is the snippet:
const requests = await (tKey.modules.shareTransfer as ShareTransferModule).lookForRequests();
const newShare = await tKey.generateNewShare();
const s = await tKey.outputShareStore(newShare.newShareIndex)
await (tKey.modules.shareTransfer as ShareTransferModule).approveRequest(requests[0], s);
And here is the error: [ShareTransferError: Missing current enc key]