-
Notifications
You must be signed in to change notification settings - Fork 14
Add support for React Native. #76
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
Add support for React Native. #76
Conversation
How can this be tested? Some sort of test like what is done with karma should be added so we know this works and regressions are caught over time. |
238443b
to
686fd6e
Compare
@dlongley @davidlehn - I updated this PR with what we discussed (moved the |
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.
LGTM -- @davidlehn?
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.
This looks like a fairly simple solution, thanks. I hope externalizing the fixes is ok from a user perspective. I do still have a concern about how to test this. I'm guessing that would add quite a bit of complexity if done here. Is it tested somewhere else indirectly?
Yeah, there's no easy way to test it here in this lib. If it's any comfort, it'll be constantly tested downstream, in the DCC mobile wallet. |
In practice will people be able to determine the polyfill requirement? If someone installs a higher up lib/app that indirectly uses I think there was talk of having code somewhere to throw errors if the required APIs were missing. Ideally would like to avoid that since it adds bloat that will never be used in properly setup app. |
Agreed, yeah (and in any case, we can handle that question in a separate PR). My strategy is -- I'm going to add these usage examples in downstream libraries (the VC lib etc), which is the most likely place devs will encounter this lib. |
@davidlehn Sounds like comments have been addressed, can we merge this? (into the 3.4.0 branch?) |
Manually fixed conflict and merged. Thanks. |
Add support for React Native (RN-specific support for TextEncoder,
crypto
).Shouldn't affect any existing code.