decentralized-identity / decentralized-identity/web5-js
Swappable storage for react-native
- Dominant language
- TypeScript
- Stars
- 142
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
Web5.connect() cannot be used in react-native because the `cache` property inside [`did-resolution-cache.ts`](https://github.com/TBD54566975/web5-js/blob/72facd44f0d70c3a9dc5f89719cadc51220fb8ce/packages/web5/src/did-resolution-cache.ts) defaults to `new Level()`. Anyway there are other places where `Level` is used and cannot be swapped.
I have opened a draft PR a while back, [Swappable abstract-level storage](https://github.com/TBD54566975/web5-js/pull/104), that fixes this issue.
Similarly, in the `web5-wallet` repo, there is an issue, [Create a file-based DataStore for mobile's local DWN](https://github.com/TBD54566975/web5-wallet/issues/47), that I was able to fix with a lib that we previously developed specifically for react-native storage.
If I bring the swappable draft PR up to date, would you be kind to review and merge it?
Contributor guide
Assessment
This issue has not been assessed yet.