-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web5.connect() with react-native #51
base: main
Are you sure you want to change the base?
Web5.connect() with react-native #51
Conversation
void DwnService.initSqliteDwn(); | ||
async function init() { | ||
void DwnService.initMemoryDwn(); | ||
const { web5, did: myDid } = await Web5.connect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that Web5.connect()
won't be called from the identity agents like the wallet. This concept is going through a pretty major refactor currently by @frankhinek on the web5-js side.
Would like to hold off on thoroughly reviewing this in until we have a solid understanding of what this re-write entails for clients. @frankhinek if you have any insights here, would greatly appreciate it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to achieve the goals of this PR as soon as refactors upstream are complete. I'm uncertain of whether we can use asyncstorage at all given that it only stores strings and DWN stores binary.
I was able to come a little bit more closer to running Findings:
I will keep an eye on your react-native progress, but we need to progress with our demo and I'm forced to mock the following methods, bypass dwn entirely and store data in async-storage directly as k:v JSONs:
We relied on web5 to build our sdk around it, works great on web, but our product is mobile, and we're now burned haha Thanks for your effort! |
You can now use Web5.connect() with react-native.
Need to add ReadableStream and Blob polyfills. Haven't found anything out of the box, might need to write one myself.